Skip to main content

Manage Appian tasks with Ollama Qwen LLM and Postgres memory

Workflow preview

Workflow preview
100%
Manage Appian tasks with Ollama Qwen LLM and Postgres memory preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow is a simple example of using n8n as an AI chat interface into Appian. It connects a local LLM, persistent memory, and API tools to demonstrate how an agent can interact with Appian ta...

Best for

  • AI Chatbot automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatollama, @n8n/n8n-nodes-langchain.memorypostgreschat, n8n-nodes-base.httprequesttool, n8n-nodes-base.respondtowebhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Joe Swink.

Original n8n.io source

1.1 Workflow description

Title
Manage Appian tasks with Ollama Qwen LLM and Postgres memory
Workflow name
Manage Appian tasks with Ollama Qwen LLM and Postgres memory

This workflow is a simple example of using n8n as an AI chat interface into Appian. It connects a local LLM, persistent memory, and API tools to demonstrate how an agent can interact with Appian tasks.

What this workflow does

  • Chat interface: Accepts user input through a webhook or chat trigger
  • Local LLM (Ollama): Runs on qwen2.5:7b with an 8k context window
  • Conversation memory: Stores chat history in Postgres, keyed by sessionId
  • AI Agent node: Handles reasoning, follows system rules (helpful assistant persona, date formatting, iteration limits), and decides when to call tools
  • Appian integration tools:
  • List Tasks: Fetches a user’s tasks from Appian
  • Create Task: Submits data for a new task in Appian (title, description, hours, cost)

How it works

  1. A user sends a chat message
  2. The workflow normalizes fields such as text, username, and sessionId
  3. The AI Agent processes the message using Ollama and Postgres memory
  4. If the user asks about tasks, the agent calls the Appian APIs
  5. The result, either a task list or confirmation of a new task, is returned through the webhook

Why this is useful

  • Demonstrates how to build a basic Appian connector in n8n with an AI chat front end
  • Shows how an LLM can decide when to call Appian APIs to list or create tasks
  • Provides a pattern that can be extended with more Appian endpoints, different models, or custom system prompts

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Template Vars

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 3 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 4 - Normalize Chat Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.6

Block 6 - Ollama Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOllama - lmChatOllama
Config choices
Version 1

Block 7 - Postgres Chat Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryPostgresChat - memoryPostgresChat
Config choices
Version 1.1

Block 8 - List Tasks (Appian)

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 9 - List Task Types (Appian)

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 10 - Create Task (Appian)

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 11 - Prepare Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.3

Block 13 - Notes

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Manage Appian tasks with Ollama Qwen LLM and Postgres memory
Complexity intermediate
Nodes 13
Categories AI Chatbot, Multimodal AI
Author Joe Swink
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7661/7661.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Manage Appian tasks with Ollama Qwen LLM and Postgres memory do?

This workflow is a simple example of using n8n as an AI chat interface into Appian. It connects a local LLM, persistent memory, and API tools to demonstrate how an agent can interact with Appian ta...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Chatbot, Multimodal AI use case.