{"nodes":[{"id":"25a059ad-c3d1-4848-a729-cbb50254e94a","name":"When clicking ‘Test workflow’","type":"n8n-nodes-base.manualTrigger","position":[40,980],"parameters":{},"typeVersion":1,"notes":"This manualTrigger node performs automated tasks as part of the workflow."},{"id":"3ae8469e-cbb4-436a-b5c2-2e6a146c5666","name":"Sticky Note6","type":"n8n-nodes-base.stickyNote","position":[-40,600],"parameters":{"color":7,"width":2160,"height":1540,"content":"# Try me out !\n## Dummy Ugly Workflow\n---\nTry mixing it up of changing some connections to see how this workflow gets positionned !\n\n1. **Save this workfow** (Ctrl + S)\n2. **Execute the Magic Positioning Node**\n3. **Reload the page** (Ctrl + R)\n..watch the magic !"},"typeVersion":1,"notes":"This stickyNote node performs automated tasks as part of the workflow."},{"id":"4a67e81f-1638-4047-b9e7-85247f4cc291","name":"AI Agent","type":"n8n-nodes-base.noOp","position":[480,1420],"parameters":{"options":{}},"typeVersion":1,"notes":"This agent node performs automated tasks as part of the workflow."},{"id":"56293367-e676-44d6-ac05-8432c8181299","name":"OpenAI Chat Model","type":"n8n-nodes-base.noOp","position":[420,1660],"parameters":{"options":{}},"credentials":{"openAiApi":{"id":"{{ $credentials.openAiApi.id }}","name":"Together.ai (lucas.photos)"}},"typeVersion":1,"notes":"This lmChatOpenAi node performs automated tasks as part of the workflow."},{"id":"cacdff1d-f65d-40f3-b0b5-9913a8e249ed","name":"Window Buffer Memory","type":"n8n-nodes-base.noOp","position":[880,1760],"parameters":{},"typeVersion":1,"notes":"This memoryBufferWindow node performs automated tasks as part of the workflow."},{"id":"9ccd8613-ded7-421a-bf2d-95e6465d9a34","name":"Vector Store Retriever","type":"n8n-nodes-base.noOp","position":[1780,1800],"parameters":{},"typeVersion":1,"notes":"This retrieverVectorStore node performs automated tasks as part of the workflow."},{"id":"cc5df13b-2d2e-4c59-b3e3-dfbcbffcfdf9","name":"In-Memory Vector Store","type":"n8n-nodes-base.noOp","position":[1060,1880],"parameters":{},"typeVersion":1,"notes":"This vectorStoreInMemory node performs automated tasks as part of the workflow."},{"id":"8c71b8fc-0699-4000-8021-fab3529690c6","name":"Embeddings OpenAI","type":"n8n-nodes-base.noOp","position":[1660,1940],"parameters":{"options":{}},"credentials":{"openAiApi":{"id":"{{ $credentials.openAiApi.id }}","name":"Together.ai (lucas.photos)"}},"typeVersion":1,"notes":"This embeddingsOpenAi node performs automated tasks as part of the workflow."},{"id":"83bbca90-f9aa-4aae-9f1b-68d7eb1e7272","name":"Question and Answer Chain","type":"n8n-nodes-base.noOp","position":[760,1540],"parameters":{"options":{}},"typeVersion":1,"notes":"This chainRetrievalQa node performs automated tasks as part of the workflow."},{"id":"6d124c93-a476-4b54-ad65-391eaf948605","name":"Switch","type":"n8n-nodes-base.switch","position":[1360,1220],"parameters":{"rules":{"values":[{"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"operator":{"type":"string","operation":"equals"},"leftValue":"","rightValue":""}]}},{"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"5f1ec5b3-385c-4421-9791-a612f61cc634","operator":{"name":"filter.operator.equals","type":"string","operation":"equals"},"leftValue":"","rightValue":""}]}},{"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"737211eb-e4e2-4bb2-a32b-a6d819e158ba","operator":{"name":"filter.operator.equals","type":"string","operation":"equals"},"leftValue":"","rightValue":""}]}},{"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"3a420a92-cd22-46d4-b2fa-1dffa6b28374","operator":{"name":"filter.operator.equals","type":"string","operation":"equals"},"leftValue":"","rightValue":""}]}},{"conditions":{"options":{"version":2,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"29c0fce3-aefb-4caf-a076-a548c108b641","operator":{"name":"filter.operator.equals","type":"string","operation":"equals"},"leftValue":"","rightValue":""}]}}]},"options":{}},"typeVersion":3.2,"notes":"This switch node performs automated tasks as part of the workflow."},{"id":"886142ac-822e-4e25-875c-65632f682140","name":"If Node","type":"n8n-nodes-base.if","position":[440,1480],"parameters":{},"typeVersion":1,"notes":"This if node performs automated tasks as part of the workflow."},{"id":"3a247df2-ea43-40f0-a395-0ce160fcbc92","name":"Dummy Node","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[1360,1520],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"53e46b03-026a-4645-b9c7-e913eea62fe9","name":"Dummy Node (1)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[700,900],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"0d9a5f0a-e224-41b9-8ef0-4ba16e71c237","name":"Loop Over Items","type":"n8n-nodes-base.splitInBatches","position":[920,980],"parameters":{"options":{},"batchSize":"=1"},"typeVersion":3,"notes":"This splitInBatches node performs automated tasks as part of the workflow."},{"id":"2442eccb-8f95-4c2d-ae93-7e216e93e7f4","name":"Dummy Node (2)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[1140,940],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"2de8782c-f848-44cc-87b1-307506cdca38","name":"Dummy Node (3)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[700,1200],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"f1bb16c1-b330-4208-b629-5a6e074b9178","name":"Dummy Node (4)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[900,1460],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"93c393c5-d258-431e-ba22-c7de7f6560f1","name":"Dummy Node (5)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[1140,1200],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"c55e1584-4bab-4406-9b6c-a7ba96828c4b","name":"Dummy Node (6)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[1580,980],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"612a7a10-242e-4bd0-b4bd-6089e1fcd78b","name":"Dummy Node (7)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[1780,1300],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"eb5d2519-2f1e-4841-b8e8-58333cf9293d","name":"Dummy Node (8)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[1340,1720],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"661d3849-155b-4911-b923-4cd2a4227202","name":"Dummy Node (9)","type":"n8n-nodes-base.noOp","notes":"Big description of what happens here","position":[1580,1640],"parameters":{},"notesInFlow":true,"typeVersion":1},{"id":"af2cca30-302d-47e1-bebc-3f6a92cef939","name":"Dummy Tool","type":"n8n-nodes-base.noOp","position":[720,1660],"parameters":{"url":"{{ $env.WEBHOOK_URL }}"},"typeVersion":1,"notes":"This toolHttpRequest node performs automated tasks as part of the workflow."},{"id":"7dded6b7-c60a-45e4-a49f-338bf4b549b8","name":"Dummy Tool (1)","type":"n8n-nodes-base.noOp","position":[680,1760],"parameters":{"url":"{{ $env.WEBHOOK_URL }}"},"typeVersion":1,"notes":"This toolHttpRequest node performs automated tasks as part of the workflow."},{"id":"d4f0d637-abda-4e79-ae6b-7af7050d6768","name":"OpenAI Chat Model (1)","type":"n8n-nodes-base.noOp","position":[1360,1880],"parameters":{"options":{}},"credentials":{"openAiApi":{"id":"{{ $credentials.openAiApi.id }}","name":"Together.ai (lucas.photos)"}},"typeVersion":1,"notes":"This lmChatOpenAi node performs automated tasks as part of the workflow."},{"id":"e5ea3f5b-cd91-49b6-9191-f60a0d19bf40","name":"Update n8n Workflow","type":"n8n-nodes-base.n8n","position":[700,380],"parameters":{"operation":"update","workflowId":{"__rl":true,"mode":"id","value":"={{ $('POST /workflow/magic/position/id').last().json.body.workflow_id }}"},"requestOptions":{},"workflowObject":"={{ $json.toJsonString() }}"},"credentials":{"n8nApi":{"id":"{{ $credentials.n8nApi.id }}","name":"n8n account"}},"typeVersion":1,"notes":"This n8n node performs automated tasks as part of the workflow."},{"id":"5df2795d-f1fa-437f-9444-92a0ec4003da","name":"Magic Positioning IA2S","type":"n8n-nodes-base.httpRequest","position":[480,380],"parameters":{"url":"{{ $env.API_BASE_URL }}","method":"POST","options":{},"sendBody":true,"bodyParameters":{"parameters":[{"name":"workflow","value":"={{ $json }}"}]}},"typeVersion":4.2,"notes":"This httpRequest node performs automated tasks as part of the workflow."},{"id":"f6820c3e-d0ec-45ef-92ce-b6a7466997fb","name":"POST /workflow/magic/position/id","type":"n8n-nodes-base.webhook","position":[40,380],"webhookId":"3f637a82-df5e-4580-b1af-81ebec0b345a","parameters":{"path":"workflow/magic/positioning/id","options":{},"httpMethod":"POST","responseMode":"responseNode"},"typeVersion":2,"notes":"This webhook node performs automated tasks as part of the workflow."},{"id":"f0a4176b-1fa4-4884-8a51-ecc00af7d246","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[-40,-60],"parameters":{"color":6,"width":300,"height":380,"content":"## Put this node in any workflow.\n1. **Save the workfow** (Ctrl + S)\n2. **Execute the Magic Positioning Node**\n3. **Reload the page** (Ctrl + R)\n..and voilà !"},"typeVersion":1,"notes":"This stickyNote node performs automated tasks as part of the workflow."},{"id":"20d8af29-e07a-4205-a7b6-223b2cdb801a","name":"Get n8n Workflow","type":"n8n-nodes-base.n8n","position":[260,380],"parameters":{"operation":"get","workflowId":{"__rl":true,"mode":"id","value":"={{ $json.body.workflow_id }}"},"requestOptions":{}},"credentials":{"n8nApi":{"id":"{{ $credentials.n8nApi.id }}","name":"n8n account"}},"typeVersion":1,"notes":"This n8n node performs automated tasks as part of the workflow."},{"id":"468a95e2-11bc-4bf6-be8a-4eb5f89654ef","name":"Simple Webhook Response","type":"n8n-nodes-base.respondToWebhook","position":[920,380],"parameters":{"options":{},"respondWith":"text","responseBody":"Workflow Updated"},"typeVersion":1.1,"notes":"This respondToWebhook node performs automated tasks as part of the workflow."},{"id":"496ba599-cf72-4ba1-8e50-2e369f199b6f","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","position":[80,1260],"parameters":{"rule":{"interval":[{}]}},"typeVersion":1.2,"notes":"This scheduleTrigger node performs automated tasks as part of the workflow."},{"id":"107e6cb3-673b-4554-b42c-c9d2d7a00ce9","name":"Magic Positioning","type":"n8n-nodes-base.httpRequest","position":[40,160],"parameters":{"url":"{{ $env.BASE_URL }}","method":"POST","options":{},"sendBody":true,"bodyParameters":{"parameters":[{"name":"workflow_id","value":"={{ $workflow.id }}"}]}},"typeVersion":4.2,"notes":"This httpRequest node performs automated tasks as part of the workflow."},{"id":"55e8a9fc-1699-4890-b73e-a6201259a559","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[300,-60],"parameters":{"color":5,"width":400,"height":380,"content":"# Setup :\n---\n\n1. **Open the Webhook node** \n('Post /workflow/magic/position/id')\n2. Copy the **Production URL**\n3. Go to the **'Magic Positioning' Http Request** Node\n4. **Paste the URL**\n5. Select your **n8n credentials** in the n8n nodes"},"typeVersion":1,"notes":"This stickyNote node performs automated tasks as part of the workflow."}],"connections":{"Dummy Tool":{"main":[[],[],[],[],[],[],[],[],[]]},"Dummy Tool (1)":{"main":[[],[],[],[],[],[],[],[],[]]},"Magic Positioning IA2S":{"main":[[],[],[],[],[],[],[],[],[]]},"POST /workflow/magic/position/id":{"main":[[],[],[],[],[],[],[],[],[]]},"Simple Webhook Response":{"main":[[],[],[],[],[],[],[],[],[]]},"Magic Positioning":{"main":[[],[],[],[],[],[],[],[],[]]},"OpenAI Chat Model":{"main":[[]]},"Embeddings OpenAI":{"main":[[]]},"OpenAI Chat Model (1)":{"main":[[]]}},"name":"Manualtrigger 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: Manualtrigger Workflow. This workflow integrates 20 different services: stickyNote, vectorStoreInMemory, chainRetrievalQa, scheduleTrigger, switch. It contains 49 nodes and follows best practices for error handling and security.","meta":{"instanceId":"workflow-216805d5","versionId":"1.0.0","createdAt":"2025-09-29T07:08:00.387248","updatedAt":"2025-09-29T07:08:00.387338","owner":"n8n-user","license":"MIT","category":"automation","status":"active","priority":"high","environment":"production"},"notes":"Excellent quality workflow: Manualtrigger Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}