{ "id": "qww129cm4TM9N8Ru", "meta": { "instanceId": "workflow-83d799f8", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:51.802568", "updatedAt": "2025-09-29T07:07:51.802596", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "name": "InstaTest", "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "nodes": [ { "id": "51dcaa84-d1f9-4abc-aebc-24a06801e42d", "name": "Set your system promt for AI", "type": "n8n-nodes-base.set", "notes": "In this node in \"prompt\" variable you can set your system prompt", "position": [ 1120, 620 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "0b3c3d71-5627-4b8c-91f0-ac44eaedf196", "name": "prompt", "type": "string", "value": "=Persona: You are a instagram influencer.\nContext: You receive a messages from your subscribers\nTask: Answer questions in your writing style and patterns according to your previous posts text. Use your post only for style and patterns reference.\nStyle rules:\nsimple answers" }, { "id": "c2a9e272-5c0d-4685-ad0e-ce6995f92a1c", "name": "sessionId", "type": "string", "value": "={{ $json.body.session_id }}" }, { "id": "b3c20ee3-07a1-4584-b0d9-7310a2c6b723", "name": "chatInput", "type": "string", "value": "={{ $json.body.text }}" } ] } }, "typeVersion": 3.3 }, { "id": "0fb36573-d632-4403-8809-3973f9caa32a", "name": "Local n8n memory", "type": "n8n-nodes-base.noOp", "position": [ 1500, 780 ], "parameters": { "sessionKey": "YOUR_CREDENTIAL_HERE", "sessionIdType": "customKey", "contextWindowLength": 20 }, "typeVersion": 1.3, "notes": "This memoryBufferWindow node performs automated tasks as part of the workflow." }, { "id": "2f0471a7-2a84-41ce-aab1-896d5ea95ac3", "name": "ChatGPT model", "type": "n8n-nodes-base.noOp", "position": [ 1360, 780 ], "parameters": { "options": {} }, "credentials": { "openAiApi": { "id": "HxWZhtJcnqTXVHAA", "name": "General" } }, "typeVersion": 1, "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow." }, { "id": "49abc3a3-faf9-4249-b874-908138a84aea", "name": "Send respond ", "type": "n8n-nodes-base.respondToWebhook", "position": [ 1720, 620 ], "parameters": { "options": {} }, "typeVersion": 1.1, "notes": "This respondToWebhook node performs automated tasks as part of the workflow." }, { "id": "49382508-9307-4ffa-8b31-78fac3a7db10", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [ 320, 360 ], "parameters": { "color": 5, "width": 458.4028599661066, "height": 447.98321744507007, "content": "## Easy Instagram(via ManyChat) bot\n---\n### Description:\nThis template is a main part of Entire solution. It's getting new message from Instagram via ManyChat(Extra No-Code tool for getting and sending message in Instagram). Generating message using ChatGPT and send back to ManyChat that sends it to Instagrtam.\n\n### Logic:\n1. Getting message from Instagram(from ManyChat)\n2. Set you system prompt for AI\n3. Create simple answer for message in AI block\n4. Send answer to Instagram(to ManyChat)\n\n---\n*Helpful links:*\n- [Guide in Notion how to create full bot]({{ $env.WEBHOOK_URL }}\n- [ManyChat]({{ $env.WEBHOOK_URL }}" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "5d14544c-7039-435f-a53c-615b5722bb99", "name": "Getting message from Instagram", "type": "n8n-nodes-base.webhook", "position": [ 900, 620 ], "webhookId": "68d3fbc9-6e49-4bdc-851c-2a532be911ab", "parameters": { "path": "instagram_chat", "options": {}, "httpMethod": "POST", "responseMode": "responseNode" }, "typeVersion": 2, "notes": "This webhook node performs automated tasks as part of the workflow." }, { "id": "3770f558-341b-4d67-a7f0-0bb2fecf51a3", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [ 1320, 300 ], "parameters": { "width": 313.9634922216307, "height": 614.7475040550845, "content": "## 3) AI block\n---\nThere is 3 nodes:\n- AI Agent\n- Chat GPT model\n- Memory for history messages\n\n### To do:\n- in ChatGPT node you can choose the best model for you\n- in Memory Block you can change number of messages in history\n\n" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "cbb6c5a2-9b96-4305-afce-5ac560ae2dec", "name": "AI Agent", "type": "n8n-nodes-base.noOp", "position": [ 1340, 620 ], "parameters": { "text": "={{ $json.chatInput }}", "options": { "systemMessage": "={{ $json.prompt }}" }, "promptType": "define" }, "typeVersion": 1.7, "notes": "This agent node performs automated tasks as part of the workflow." }, { "id": "4e28119f-b1aa-4b20-a8ed-28bd137f9627", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [ 820, 360 ], "parameters": { "height": 440, "content": "## 1) HTTP Post webhook\n\n**To do:**\nJust copy production link from this node and insert to custom action in ManyChat\n\nNo edits needed" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "b18a8890-b420-4086-91c8-8edbc845c8af", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [ 1080, 480 ], "parameters": { "width": 220, "height": 320, "content": "## 2) Edit prompt\n\n**To do:**\nGo inside and change input\n" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." }, { "id": "74d4e6f5-069e-4b37-8005-8c03226b05df", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [ 1660, 480 ], "parameters": { "height": 300, "content": "## 4) Respond webhook\n\nNo edits needed" }, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow." } ], "active": true, "pinData": {}, "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000 }, "versionId": "2f36fc7a-0a69-4af3-a958-25e9d278f058", "connections": { "49abc3a3-faf9-4249-b874-908138a84aea": { "main": [ [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-826559d3", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-87fff98f", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-4336634f", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-1ff31477", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-c17f0341", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-1b88491e", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-7ee3d74e", "type": "main", "index": 0 } ], [ { "node": "error-handler-49abc3a3-faf9-4249-b874-908138a84aea-f5e86570", "type": "main", "index": 0 } ] ] }, "5d14544c-7039-435f-a53c-615b5722bb99": { "main": [ [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-1b7bd19b", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-63db3229", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-bb2ec00c", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-1173ea20", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-11570a76", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-584aeb8d", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-7fb080da", "type": "main", "index": 0 } ], [ { "node": "error-handler-5d14544c-7039-435f-a53c-615b5722bb99-5b2e79e1", "type": "main", "index": 0 } ] ] }, "2f0471a7-2a84-41ce-aab1-896d5ea95ac3": { "main": [ [ { "node": "error-handler-2f0471a7-2a84-41ce-aab1-896d5ea95ac3-1c214ebc", "type": "main", "index": 0 } ] ] } }, "description": "Automated workflow: InstaTest. This workflow integrates 8 different services: webhook, stickyNote, agent, respondToWebhook, set. It contains 16 nodes and follows best practices for error handling and security.", "notes": "Excellent quality workflow: InstaTest. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }