{"meta":{"instanceId":"workflow-4ff9f2b8","versionId":"1.0.0","createdAt":"2025-09-29T07:07:51.442049","updatedAt":"2025-09-29T07:07:51.442072","owner":"n8n-user","license":"MIT","category":"automation","status":"active","priority":"high","environment":"production"},"nodes":[{"id":"trigger-54db0dfd","name":"Manual Trigger","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[100,100],"parameters":{}},{"id":"d08a2559-17fd-4bdb-a976-795c3823a88a","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[-520,240],"parameters":{"content":"## Try me out\nClick the 'chat' button at the bottom of the canvas and paste in:\n\n_Which tables are available?_"},"typeVersion":1,"notes":"This stickyNote node performs automated tasks as part of the workflow."},{"id":"3019b559-6100-4ead-8e1a-a7dece2a6982","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[-380,-60],"parameters":{"color":7,"width":677,"height":505,"content":"This workflow uses a Postgres DB, but you could swap it for a MySQL or SQLite one"},"typeVersion":1,"notes":"This stickyNote node performs automated tasks as part of the workflow."},{"id":"73786411-5383-4921-82ee-06b3b582bab7","name":"When chat message received","type":"n8n-nodes-base.noOp","position":[-320,40],"webhookId":"1c0d08f0-abd0-4bdc-beef-370c27aae1a0","parameters":{"options":{}},"typeVersion":1,"notes":"This chatTrigger node performs automated tasks as part of the workflow."},{"id":"e65a1558-e0c0-4c4a-a306-90dc6dcb618a","name":"Postgres","type":"n8n-nodes-base.postgresTool","position":[140,260],"parameters":{"query":"{{ $fromAI('sql_statement') }}","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"elRn5sxKOfCdlEs6","name":"Postgres account"}},"typeVersion":2.5,"notes":"This postgresTool node performs automated tasks as part of the workflow."},{"id":"9df537e7-3ca2-4e72-bc85-ae0d944fbdd1","name":"Simple Memory","type":"n8n-nodes-base.noOp","position":[0,260],"parameters":{},"typeVersion":1,"notes":"This memoryBufferWindow node performs automated tasks as part of the workflow."},{"id":"57b2b959-9f25-475f-b6bb-842139725411","name":"AI Agent","type":"n8n-nodes-base.noOp","position":[-100,40],"parameters":{"options":{}},"typeVersion":1,"notes":"This agent node performs automated tasks as part of the workflow."},{"id":"f21ac2dc-56ff-4ea6-a29e-168e7dfaf3fa","name":"OpenAI Chat Model","type":"n8n-nodes-base.noOp","position":[-160,260],"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4o-mini"},"options":{}},"credentials":{"openAiApi":{"id":"8gccIjcuf3gvaoEr","name":"OpenAi account"}},"typeVersion":1,"notes":"This lmChatOpenAi node performs automated tasks as part of the workflow."},{"id":"error-2941316a","name":"Error Handler","type":"n8n-nodes-base.stopAndError","typeVersion":1,"position":[1000,400],"parameters":{"message":"Workflow execution error","options":{}}}],"connections":{"OpenAI Chat Model":{"main":[[]]}},"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 7 different services: postgresTool, stickyNote, agent, stopAndError, lmChatOpenAi. It contains 8 nodes and follows best practices for error handling and security.","notes":"Excellent quality workflow: Stickynote Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}