This workflow follows the Agent → Ollama Chat 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": "ollama works copy",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "77e9b827-6815-4200-921a-4baeda087db3",
"responseMode": "lastNode",
"options": {}
},
"id": "3fd9a7fa-a7d1-4eb0-a4ef-46cc032a0018",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
0,
0
]
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.body.message }}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
220,
0
],
"id": "8cac66c9-d479-4774-8c5b-2036bbb593bc",
"name": "AI Agent"
},
{
"parameters": {
"model": "phi3:latest",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"typeVersion": 1,
"position": [
260,
220
],
"id": "9492999e-138e-4ee1-9d97-c09b7e2c9135",
"name": "Ollama Chat Model",
"credentials": {
"ollamaApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $json.body.sessionId }}"
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
420,
220
],
"id": "523d7ee8-1c1e-45c6-a11d-0524117784ab",
"name": "Simple Memory"
},
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.4,
"position": [
580,
0
],
"id": "488090d8-e7e4-43d9-bdc9-029cb98ec69a",
"name": "Respond to Webhook"
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Ollama Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "411e1f5c-d9eb-4759-bfa0-8b1cd305ae77",
"id": "NPwo5Nez14PJolZr",
"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.
ollamaApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
ollama works copy. Uses agent, lmChatOllama, memoryBufferWindow. Webhook trigger; 5 nodes.
Source: https://github.com/fg0611/fran-with-ai/blob/7258a939d5a09ad4d226602c8635a609af7d7bc9/n8n/ollama_works_v1.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.
W_ADMIN_AGENT - Autonomous AI Admin Assistant. Uses httpRequest, agent, lmChatOllama, memoryBufferWindow. Webhook trigger; 11 nodes.
NGSS Agent v2.2 github. Uses memoryBufferWindow, toolWorkflow, chatTrigger, agent. Chat trigger; 13 nodes.
Workflow Hcmute. Uses agent, lmChatGoogleGemini, memoryBufferWindow, googleSheetsTool. Webhook trigger; 13 nodes.
N8N Workflow. Uses httpRequest, toolHttpRequest, memoryBufferWindow, lmChatGoogleGemini. Webhook trigger; 13 nodes.
Agent for cloudbase. Uses agent, lmChatDeepSeek, memoryBufferWindow, mcpClientTool. Webhook trigger; 12 nodes.