{ "meta": { "instanceId": "workflow-8c69ac04", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:54.891133", "updatedAt": "2025-09-29T07:07:54.891146", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "nodes": [ { "id": "trigger-8917334a", "name": "Manual Trigger", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ 100, 100 ], "parameters": {} }, { "id": "100f23d3-cbe9-458a-9ef1-7cc5fcba8f3c", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [ 640, 540 ], "parameters": { "width": 300, "height": 205, "content": "### The conversation history(last 20 messages) is stored in a buffer memory" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "b48f989f-deb9-479c-b163-03f098d00c9c", "name": "On new manual Chat Message", "type": "n8n-nodes-base.noOp", "position": [ 380, 240 ], "parameters": {}, "typeVersion": 1, "notes": "This manualChatTrigger node performs automated tasks as part of the workflow." }, { "id": "add8e8df-6b2a-4cbd-84e7-3b006733ef7d", "name": "Wikipedia", "type": "n8n-nodes-base.noOp", "position": [ 1180, 640 ], "parameters": {}, "typeVersion": 1, "notes": "This toolWikipedia node performs automated tasks as part of the workflow." }, { "id": "a97454a8-001d-4986-9cb5-83176229ea70", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [ 980, 540 ], "parameters": { "width": 300, "height": 205, "content": "### Tools which agent can use to accomplish the task" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "52b57e72-8cc9-4865-9a00-d03b2e7f1b92", "name": "Sticky Note6", "type": "n8n-nodes-base.stickyNote", "position": [ 600, 160 ], "parameters": { "width": 422, "height": 211, "content": "### Conversational agent will utilise available tools to answer the prompt. " }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "8f0653ab-376b-40b9-b876-e608defdeb89", "name": "Window Buffer Memory", "type": "n8n-nodes-base.noOp", "position": [ 740, 600 ], "parameters": { "contextWindowLength": 20 }, "typeVersion": 1, "notes": "This memoryBufferWindow node performs automated tasks as part of the workflow." }, { "id": "13237945-e143-4f65-b034-785f5ebde5bb", "name": "AI Agent", "type": "n8n-nodes-base.noOp", "position": [ 680, 240 ], "parameters": { "text": "={{ $json.input }}", "options": { "systemMessage": "=You are a helpful assistant, with weather tool and wiki tool. find out the latitude and longitude information of a location then use the weather tool for current weather and weather forecast. For general info, use the wiki tool." }, "promptType": "define" }, "typeVersion": 1.6, "notes": "This agent node performs automated tasks as part of the workflow." }, { "id": "ee06c0f4-b2de-4257-9735-3ec228f2b794", "name": "Weather HTTP Request", "type": "n8n-nodes-base.noOp", "position": [ 1020, 620 ], "parameters": { "url": "{{ $env.API_BASE_URL }}", "sendQuery": true, "parametersQuery": { "values": [ { "name": "latitude" }, { "name": "longitude" }, { "name": "forecast_days", "value": "1", "valueProvider": "fieldValue" }, { "name": "hourly", "value": "temperature_2m", "valueProvider": "fieldValue" } ] }, "toolDescription": "Fetch current temperature for given coordinates." }, "notesInFlow": true, "typeVersion": 1.1, "notes": "This toolHttpRequest node performs automated tasks as part of the workflow." }, { "id": "3e5608c8-281d-47e0-af9d-77707530fd6b", "name": "Ollama Chat Model", "type": "n8n-nodes-base.noOp", "position": [ 520, 620 ], "parameters": { "model": "llama3.2:latest", "options": {} }, "credentials": { "ollamaApi": { "id": "xHuYe0MDGOs9IpBW", "name": "Local Ollama service" } }, "typeVersion": 1, "notes": "This lmChatOllama node performs automated tasks as part of the workflow." }, { "id": "b3d794f4-37b5-46c8-9d7d-ad1087006ce5", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [ 1040, 140 ], "parameters": { "color": 4, "height": 240, "content": "### In System Message, add the following.\n\n\"You are a helpful assistant, with weather tool and wiki tool. find out the latitude and longitude information of a location then use the weather tool for current weather and weather forecast. For general info, use the wiki tool.\"" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." } ], "pinData": {}, "connections": { "ee06c0f4-b2de-4257-9735-3ec228f2b794": { "main": [ [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-ad3a2099", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-ebc8157a", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-b3e2816b", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-f8c629c2", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-cda3de3c", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-cbbf6513", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-8bbb2e17", "type": "main", "index": 0 } ], [ { "node": "error-handler-ee06c0f4-b2de-4257-9735-3ec228f2b794-2053557c", "type": "main", "index": 0 } ] ] } }, "name": "Stickynote Workflow", "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000 }, "description": "Automated workflow: Stickynote Workflow. This workflow integrates 8 different services: stickyNote, toolHttpRequest, agent, stopAndError, toolWikipedia. It contains 12 nodes and follows best practices for error handling and security.", "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "notes": "Excellent quality workflow: Stickynote Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }