This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Example agent workflow",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.3,
"position": [
48,
-16
],
"id": "e8f63522-9daf-4b61-8692-8df64cf26632",
"name": "When chat message received"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
336,
-16
],
"id": "61966f52-65a4-4f40-bebb-56fff958dc4b",
"name": "AI Agent"
},
{
"parameters": {
"model": "llama3.2:3b",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"typeVersion": 1,
"position": [
128,
208
],
"id": "aa08fa80-9f2d-4957-ac0f-5d85c9dc863c",
"name": "Ollama Chat Model",
"credentials": {
"ollamaApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"toolDescription": "Get my external IP",
"url": "http://ifconfig.io",
"options": {}
},
"type": "n8n-nodes-base.httpRequestTool",
"typeVersion": 4.2,
"position": [
512,
240
],
"id": "24b786d1-95cd-4267-a8ec-9e1cb586a871",
"name": "HTTP Request"
},
{
"parameters": {
"toolDescription": "ping command to see if the internet is up",
"command": "ping -c 1 1.1.1.1"
},
"type": "n8n-nodes-base.executeCommandTool",
"typeVersion": 1,
"position": [
672,
176
],
"id": "ad7ce0fe-5598-4187-9fee-eb2e5447ca83",
"name": "Execute Command"
},
{
"parameters": {},
"type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
"typeVersion": 1.5,
"position": [
320,
176
],
"id": "5909dd71-b85c-4257-9d0b-b381ac3520e0",
"name": "Redis Chat Memory",
"credentials": {
"redis": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Ollama Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"HTTP Request": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[]
]
},
"Execute Command": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Redis Chat Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "a1656738-7647-40a4-9e80-ff7641c2da74",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "Qhq7WRNFYsOmqnoQ",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
ollamaApiredis
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Example agent workflow. Uses chatTrigger, agent, lmChatOllama, httpRequestTool. Chat trigger; 6 nodes.
Source: https://github.com/jrespeto/Local-LLM/blob/6200d3d57006fa5400744fe48b43b7a0dc3f5732/Examples/n8n-workflows/example-agent.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Orquestador Normativa. Uses chatTrigger, textClassifier, lmChatOllama, agent. Chat trigger; 12 nodes.
Complete Airtable database management system using MCP (Model Context Protocol) for AI agents. Create bases, tables with complex field types, manage records, and maintain state with Redis storage. Add
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
NGSS Agent v2.2 github. Uses memoryBufferWindow, toolWorkflow, chatTrigger, agent. Chat trigger; 13 nodes.
This is an n8n workflow designed to implement an advanced AI chatbot with real-time conversation and search capabilities. Configured with a minimalist European design, this chatbot is ready to be inte