{"workflow":{"id":13788,"name":"Optimize n8n workflow JSON using Azure OpenAI GPT-4o-mini","views":79,"recentViews":1,"totalViews":79,"createdAt":"2026-03-02T05:42:27.627Z","description":"## 📊 Description\nAutomate the optimization of your n8n workflows using AI-powered analysis and restructuring 🤖. This workflow receives any existing n8n JSON via webhook, analyzes it using Azure OpenAI, and returns a fully optimized, import-ready workflow file. It improves execution speed, reduces redundant nodes, enhances API efficiency, and ensures structural cleanliness — all while preserving the original logic. Perfect for automation builders who want cleaner, faster, and production-ready workflows instantly. 🚀\n\n## What This Template Does\n📥 Receives an n8n workflow JSON via a secure POST webhook.\n🔍 Extracts and validates the workflow body to ensure proper structure.\n🤖 Sends the workflow to Azure OpenAI for performance and structural optimization.\n🧹 Strips markdown, parses, and validates the AI-returned JSON.\n📄 Converts the optimized workflow into a downloadable .json file.\n📤 Returns the optimized workflow file directly to the caller.\n\n## Key Benefits\n✅ Automatically optimizes workflow performance and execution speed\n✅ Reduces redundant nodes and unnecessary API calls\n✅ Ensures clean, structured, import-ready n8n JSON\n✅ Preserves original business logic and integrations\n✅ Eliminates manual workflow refactoring\n✅ Adds structural clarity and best-practice improvements\n\n## Features\n- Webhook trigger for receiving workflow JSON\n- Azure OpenAI integration (GPT-4o-mini) for AI-driven optimization\n- Automated JSON parsing and structural validation\n- Markdown stripping and error-safe parsing logic\n- Binary file conversion for direct n8n re-import\n- Built-in validation to prevent broken or orphaned workflows\n- Production-safe response handling\n\n## Requirements\n- Azure OpenAI credentials (azureOpenAiApi)\n- Active Azure deployment (e.g., gpt-4o-mini)\n- n8n instance with webhook access enabled\n\n## Target Audience\n- Automation agencies optimizing client workflows\n- n8n template creators selling premium workflows\n- SaaS founders improving internal automation performance\n- Advanced n8n users maintaining large workflow libraries\n","workflow":{"id":"aDPH18fqfD2OikjK","meta":{"instanceId":"8443f10082278c46aa5cf3acf8ff0f70061a2c58bce76efac814b16290845177","templateCredsSetupCompleted":true},"name":"AI Json Optimiser","tags":[],"nodes":[{"id":"5f23ac9b-98ba-4612-a1ec-c5765aaad242","name":"Receive Workflow JSON","type":"n8n-nodes-base.webhook","position":[-96,512],"webhookId":"5efd92ae-c139-483a-814e-fbc888924ddc","parameters":{"path":"5efd92ae-c139-483a-814e-fbc888924ddc","options":{},"httpMethod":"POST","responseMode":"responseNode"},"typeVersion":2.1},{"id":"251e2698-77a5-4f72-813e-56873c405adc","name":"Extract & Validate Workflow Body","type":"n8n-nodes-base.code","position":[112,512],"parameters":{"jsCode":"if (!Array.isArray($input.all()) || $input.all().length === 0) {\n  throw new Error(\"No input data received\");\n}\n\nconst firstItem = $input.all()[0].json;\n\nif (!firstItem.body || !firstItem.body.workflow) {\n  throw new Error(\"Workflow not found in body\");\n}\n\nreturn [\n  {\n    json: firstItem.body.workflow\n  }\n];"},"typeVersion":2},{"id":"2c9de695-4eb8-40e3-b2b8-56f09f856c90","name":"Optimize Workflow via AI Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[320,512],"parameters":{"text":"=Optimize the following n8n workflow JSON for performance, cost efficiency, and structural cleanliness.\n\nMaintain the exact same functionality and outcome.\n\nImprove:\n- Execution speed\n- Node efficiency\n- API usage\n- Structural clarity\n- Remove redundant logic\n- Merge compatible nodes\n- Add batching if helpful\n\nHere is the workflow JSON:\n\n{{ JSON.stringify($json, null, 2) }}","options":{"systemMessage":"=You are a senior n8n performance optimization architect.\n\nYour task is to analyze and optimize an existing n8n workflow JSON.\n\nYou must return a COMPLETE, IMPORT-READY, VALID n8n workflow JSON.\n\nCRITICAL OUTPUT RULES:\n\n- Output ONLY raw JSON.\n- Do NOT wrap in markdown.\n- Do NOT explain anything.\n- Do NOT include comments.\n- Do NOT include backticks.\n- Do NOT include extra text before or after JSON.\n- The response must start with { and end with }.\n- JSON must be valid and parsable.\n- All nodes must be properly connected.\n- No orphan nodes.\n- Workflow must remain functionally equivalent.\n\nOPTIMIZATION GOALS:\n\n1. Remove unnecessary or redundant nodes.\n2. Merge multiple Function/Set nodes when possible.\n3. Reduce API calls if duplicate or unnecessary.\n4. Replace inefficient patterns with best-practice nodes.\n5. Add batching if multiple API calls are done sequentially.\n6. Add error handling IF missing and necessary.\n7. Improve node naming for clarity.\n8. Ensure logical and clean node positioning (200px spacing minimum).\n9. Ensure connections object exactly matches node names.\n10. Preserve all required credentials references.\n\nSTRUCTURE REQUIREMENTS:\n\nReturn a valid n8n workflow object containing:\n\n- name (string)\n- nodes (array)\n- connections (object)\n- active (false)\n- settings (object)\n- versionId\n- meta (object)\n- id (null)\n\nNODE REQUIREMENTS:\n\nEach node must include:\n\n- id (unique string)\n- name\n- type\n- typeVersion\n- position [x, y]\n- parameters (object)\n\nCONNECTION FORMAT MUST FOLLOW:\n\n\"connections\": {\n  \"Node Name\": {\n    \"main\": [\n      [\n        {\n          \"node\": \"Next Node Name\",\n          \"type\": \"main\",\n          \"index\": 0\n        }\n      ]\n    ]\n  }\n}\n\nIMPORTANT:\n\n- Do NOT change the business logic.\n- Do NOT remove required triggers.\n- Do NOT remove required integrations.\n- Only improve efficiency, structure, and performance.\n- Ensure workflow is directly importable into n8n without edits.\n\nIf optimization is not possible, return a cleaned and structurally improved version of the original workflow.\n\nReturn ONLY valid n8n JSON."},"promptType":"define"},"typeVersion":3},{"id":"851875ca-2e10-47c2-abcd-55510d1826b0","name":"Parse, Strip & Validate Optimized JSON","type":"n8n-nodes-base.code","position":[672,512],"parameters":{"jsCode":"// Ensure input exists\nconst items = $input.all();\n\nif (!items.length) {\n  throw new Error(\"No input received\");\n}\n\n// Get first item\nconst firstItem = items[0].json;\n\n// Validate output field\nif (!firstItem.output) {\n  throw new Error(\"Missing 'output' field\");\n}\n\nlet rawOutput = firstItem.output;\n\n// Ensure it is a string\nif (typeof rawOutput !== \"string\") {\n  throw new Error(\"Output is not a string\");\n}\n\n// Trim possible whitespace\nrawOutput = rawOutput.trim();\n\n// Remove accidental markdown wrapping if AI added it\nif (rawOutput.startsWith(\"```\")) {\n  rawOutput = rawOutput.replace(/```json|```/g, \"\").trim();\n}\n\n// Parse JSON safely\nlet parsedWorkflow;\n\ntry {\n  parsedWorkflow = JSON.parse(rawOutput);\n} catch (error) {\n  throw new Error(\"Invalid JSON returned by AI: \" + error.message);\n}\n\n// Optional: Basic structural validation\nif (!parsedWorkflow.nodes || !parsedWorkflow.connections) {\n  throw new Error(\"Parsed JSON is not a valid n8n workflow structure\");\n}\n\n// Return normalized workflow object\nreturn [\n  {\n    json: parsedWorkflow\n  }\n];"},"typeVersion":2},{"id":"6b5043b7-d442-486e-a67b-1ec941e8c3c8","name":"Convert Optimized Workflow to File","type":"n8n-nodes-base.convertToFile","position":[880,512],"parameters":{"options":{},"operation":"toJson"},"typeVersion":1.1},{"id":"e95135fd-5b86-4ab8-9022-7c40e03b15bc","name":"Return Optimized File to Caller","type":"n8n-nodes-base.respondToWebhook","position":[1088,512],"parameters":{"options":{},"respondWith":"binary"},"typeVersion":1.5},{"id":"f76804b3-61b0-4d60-ae0b-dea1cacc1cbc","name":"📋 Overview","type":"n8n-nodes-base.stickyNote","position":[-720,256],"parameters":{"color":3,"width":520,"height":930,"content":"## ⚡ AI JSON Optimiser\n\n### How it works\nThis workflow accepts an existing n8n workflow JSON via a POST webhook and uses an Azure OpenAI-powered AI Agent to analyze and return a fully optimized, import-ready version. The AI removes redundant nodes, merges compatible steps, reduces unnecessary API calls, adds missing error handling, and improves structural clarity — all while preserving the original business logic.\n\n**Data flow:**\n1. **Receive Workflow JSON** — Accepts a POST request with a `workflow` field inside the request body containing the raw n8n workflow JSON object.\n2. **Extract & Validate Workflow Body** — Confirms the payload is well-formed and extracts the workflow object, throwing clear errors on malformed input.\n3. **Optimize Workflow via AI Agent** — Sends the workflow to Azure OpenAI GPT-4o-mini with strict optimization instructions. Returns only raw, valid JSON.\n4. **Parse, Strip & Validate Optimized JSON** — Strips any accidental markdown, parses the AI output, and validates that it contains required `nodes` and `connections` fields.\n5. **Convert Optimized Workflow to File** — Wraps the parsed JSON into a downloadable `.json` binary file.\n6. **Return Optimized File to Caller** — Sends the binary file back as the HTTP response.\n\n### Setup steps\n1. Add your **Azure OpenAI credentials** (`azureOpenAiApi`) in n8n credentials — ensure deployment is named `gpt-4o-mini`.\n2. Activate the workflow and copy the generated webhook URL.\n3. Send a POST request with body: `{ \"workflow\": { ...your n8n workflow object... } }`\n4. The response will be a downloadable `.json` file ready to import into n8n.\n\n### Customization\n- Swap `gpt-4o-mini` for a more powerful Azure deployment (e.g. `gpt-4o`) for deeper optimizations.\n- Extend the AI system prompt to enforce specific node types or organizational standards."},"typeVersion":1},{"id":"474343c6-94c4-4d26-983e-3912e5949def","name":"📥 Section: Input & Extraction","type":"n8n-nodes-base.stickyNote","position":[-176,336],"parameters":{"width":440,"height":200,"content":"## 📥 Input & Extraction\nReceives the POST request containing the workflow JSON inside `body.workflow`. Validates the payload structure and extracts the workflow object, rejecting malformed or empty requests immediately."},"typeVersion":1},{"id":"846a9c9c-84c3-409f-bc0f-0c63b635f178","name":"🤖 Section: AI Optimization","type":"n8n-nodes-base.stickyNote","position":[304,336],"parameters":{"width":440,"height":200,"content":"## 🤖 AI Optimization Engine\nThe AI Agent sends the full workflow JSON to Azure OpenAI GPT-4o-mini with a strict system prompt focused on performance, structural clarity, and efficiency. Output must be raw JSON only — no markdown, no commentary."},"typeVersion":1},{"id":"415a6dab-46c6-49a1-81dc-625e83b77e67","name":"📤 Section: Output Processing","type":"n8n-nodes-base.stickyNote","position":[768,320],"parameters":{"width":580,"height":200,"content":"## 📤 Output Processing & Delivery\nStrips any accidental markdown from the AI response, parses the JSON, validates the n8n structure, converts it to a downloadable file, and returns it as a binary HTTP response to the caller."},"typeVersion":1},{"id":"5d712314-6e28-4862-86bf-c5472fde6e34","name":"⚠️ Warning: Azure OpenAI Credentials","type":"n8n-nodes-base.stickyNote","position":[96,864],"parameters":{"color":2,"width":320,"content":"⚠️ **Azure OpenAI Credentials Required**\nThis node requires a valid `azureOpenAiApi` credential linked to an active Azure deployment named `gpt-4o-mini`. An incorrect deployment name or missing API key will cause all optimization requests to fail silently."},"typeVersion":1},{"id":"b558c606-faa7-4dc8-938a-d2e699faded8","name":"Azure OpenAI Chat Model1","type":"@n8n/n8n-nodes-langchain.lmChatAzureOpenAi","position":[176,720],"parameters":{"model":"gpt-4o-mini","options":{}},"credentials":{"azureOpenAiApi":{"id":"C3WzT18XqF8OdVM6","name":"Azure Open AI account"}},"typeVersion":1}],"active":false,"pinData":{},"settings":{"executionOrder":"v1"},"versionId":"78b3fb40-907b-452a-9530-629477bf5961","connections":{"Receive Workflow JSON":{"main":[[{"node":"Extract & Validate Workflow Body","type":"main","index":0}]]},"Azure OpenAI Chat Model1":{"ai_languageModel":[[{"node":"Optimize Workflow via AI Agent","type":"ai_languageModel","index":0}]]},"Optimize Workflow via AI Agent":{"main":[[{"node":"Parse, Strip & Validate Optimized JSON","type":"main","index":0}]]},"Extract & Validate Workflow Body":{"main":[[{"node":"Optimize Workflow via AI Agent","type":"main","index":0}]]},"Convert Optimized Workflow to File":{"main":[[{"node":"Return Optimized File to Caller","type":"main","index":0}]]},"Parse, Strip & Validate Optimized JSON":{"main":[[{"node":"Convert Optimized Workflow to File","type":"main","index":0}]]}}},"lastUpdatedBy":1,"workflowInfo":{"nodeCount":12,"nodeTypes":{"n8n-nodes-base.code":{"count":2},"n8n-nodes-base.webhook":{"count":1},"n8n-nodes-base.stickyNote":{"count":5},"n8n-nodes-base.convertToFile":{"count":1},"@n8n/n8n-nodes-langchain.agent":{"count":1},"n8n-nodes-base.respondToWebhook":{"count":1},"@n8n/n8n-nodes-langchain.lmChatAzureOpenAi":{"count":1}}},"status":"published","readyToDemo":null,"user":{"name":"Rahul Joshi","username":"rahul08","bio":"Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.\n\n","verified":true,"links":["https://www.linkedin.com/in/callrahul/"],"avatar":"https://gravatar.com/avatar/b6cf57822463143589b36ada06fbf6cb1509223a740fae3160b28f1ce41ccc12?r=pg&d=retro&size=200"},"nodes":[{"id":47,"icon":"file:webhook.svg","name":"n8n-nodes-base.webhook","codex":{"data":{"alias":["HTTP","API","Build","WH"],"resources":{"generic":[{"url":"https://n8n.io/blog/learn-how-to-automatically-cross-post-your-content-with-n8n/","icon":"✍️","label":"Learn how to automatically cross-post your content with n8n"},{"url":"https://n8n.io/blog/running-n8n-on-ships-an-interview-with-maranics/","icon":"🛳","label":"Running n8n on ships: An interview with Maranics"},{"url":"https://n8n.io/blog/how-to-build-a-low-code-self-hosted-url-shortener/","icon":"🔗","label":"How to build a low-code, self-hosted URL shortener in 3 steps"},{"url":"https://n8n.io/blog/what-are-apis-how-to-use-them-with-no-code/","icon":" 🪢","label":"What are APIs and how to use them with no code"},{"url":"https://n8n.io/blog/5-tasks-you-can-automate-with-notion-api/","icon":"⚡️","label":"5 tasks you can automate with the new Notion API "},{"url":"https://n8n.io/blog/how-a-digital-strategist-uses-n8n-for-online-marketing/","icon":"💻","label":"How a digital strategist uses n8n for online marketing"},{"url":"https://n8n.io/blog/the-ultimate-guide-to-automate-your-video-collaboration-with-whereby-mattermost-and-n8n/","icon":"📹","label":"The ultimate guide to automate your video collaboration with Whereby, Mattermost, and n8n"},{"url":"https://n8n.io/blog/how-to-automatically-give-kudos-to-contributors-with-github-slack-and-n8n/","icon":"👏","label":"How to automatically give kudos to contributors with GitHub, Slack, and n8n"},{"url":"https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/","icon":"🤖","label":"5 workflow automations for Mattermost that we love at n8n"},{"url":"https://n8n.io/blog/why-this-product-manager-loves-workflow-automation-with-n8n/","icon":"🧠","label":"Why this Product Manager loves workflow automation with n8n"},{"url":"https://n8n.io/blog/creating-custom-incident-response-workflows-with-n8n/","label":"How to automate every step of an incident response workflow"},{"url":"https://n8n.io/blog/learn-to-build-powerful-api-endpoints-using-webhooks/","icon":"🧰","label":"Learn to Build Powerful API Endpoints Using Webhooks"},{"url":"https://n8n.io/blog/learn-how-to-use-webhooks-with-mattermost-slash-commands/","icon":"🦄","label":"Learn how to use webhooks with Mattermost slash commands"},{"url":"https://n8n.io/blog/how-goomer-automated-their-operations-with-over-200-n8n-workflows/","icon":"🛵","label":"How Goomer automated their operations with over 200 n8n workflows"}],"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/"}]},"categories":["Development","Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers"]}}},"group":"[\"trigger\"]","defaults":{"name":"Webhook"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCI+PHBhdGggZmlsbD0iIzM3NDc0ZiIgZD0iTTM1IDM3Yy0yLjIgMC00LTEuOC00LTRzMS44LTQgNC00IDQgMS44IDQgNC0xLjggNC00IDQiLz48cGF0aCBmaWxsPSIjMzc0NzRmIiBkPSJNMzUgNDNjLTMgMC01LjktMS40LTcuOC0zLjdsMy4xLTIuNWMxLjEgMS40IDIuOSAyLjMgNC43IDIuMyAzLjMgMCA2LTIuNyA2LTZzLTIuNy02LTYtNmMtMSAwLTIgLjMtMi45LjdsLTEuNyAxTDIzLjMgMTZsMy41LTEuOSA1LjMgOS40YzEtLjMgMi0uNSAzLS41IDUuNSAwIDEwIDQuNSAxMCAxMFM0MC41IDQzIDM1IDQzIi8+PHBhdGggZmlsbD0iIzM3NDc0ZiIgZD0iTTE0IDQzQzguNSA0MyA0IDM4LjUgNCAzM2MwLTQuNiAzLjEtOC41IDcuNS05LjdsMSAzLjlDOS45IDI3LjkgOCAzMC4zIDggMzNjMCAzLjMgMi43IDYgNiA2czYtMi43IDYtNnYtMmgxNXY0SDIzLjhjLS45IDQuNi01IDgtOS44IDgiLz48cGF0aCBmaWxsPSIjZTkxZTYzIiBkPSJNMTQgMzdjLTIuMiAwLTQtMS44LTQtNHMxLjgtNCA0LTQgNCAxLjggNCA0LTEuOCA0LTQgNCIvPjxwYXRoIGZpbGw9IiMzNzQ3NGYiIGQ9Ik0yNSAxOWMtMi4yIDAtNC0xLjgtNC00czEuOC00IDQtNCA0IDEuOCA0IDQtMS44IDQtNCA0Ii8+PHBhdGggZmlsbD0iI2U5MWU2MyIgZD0ibTE1LjcgMzQtMy40LTIgNS45LTkuN2MtMi0xLjktMy4yLTQuNS0zLjItNy4zIDAtNS41IDQuNS0xMCAxMC0xMHMxMCA0LjUgMTAgMTBjMCAuOS0uMSAxLjctLjMgMi41bC0zLjktMWMuMS0uNS4yLTEgLjItMS41IDAtMy4zLTIuNy02LTYtNnMtNiAyLjctNiA2YzAgMi4xIDEuMSA0IDIuOSA1LjFsMS43IDF6Ii8+PC9zdmc+"},"displayName":"Webhook","typeVersion":2,"nodeCategories":[{"id":5,"name":"Development"},{"id":9,"name":"Core Nodes"}]},{"id":535,"icon":"file:webhook.svg","name":"n8n-nodes-base.respondToWebhook","codex":{"data":{"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook/"}]},"categories":["Core Nodes","Utility"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers"]}}},"group":"[\"transform\"]","defaults":{"name":"Respond to Webhook"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCI+PHBhdGggZmlsbD0iIzM3NDc0ZiIgZD0iTTM1IDM3Yy0yLjIgMC00LTEuOC00LTRzMS44LTQgNC00IDQgMS44IDQgNC0xLjggNC00IDQiLz48cGF0aCBmaWxsPSIjMzc0NzRmIiBkPSJNMzUgNDNjLTMgMC01LjktMS40LTcuOC0zLjdsMy4xLTIuNWMxLjEgMS40IDIuOSAyLjMgNC43IDIuMyAzLjMgMCA2LTIuNyA2LTZzLTIuNy02LTYtNmMtMSAwLTIgLjMtMi45LjdsLTEuNyAxTDIzLjMgMTZsMy41LTEuOSA1LjMgOS40YzEtLjMgMi0uNSAzLS41IDUuNSAwIDEwIDQuNSAxMCAxMFM0MC41IDQzIDM1IDQzIi8+PHBhdGggZmlsbD0iIzM3NDc0ZiIgZD0iTTE0IDQzQzguNSA0MyA0IDM4LjUgNCAzM2MwLTQuNiAzLjEtOC41IDcuNS05LjdsMSAzLjlDOS45IDI3LjkgOCAzMC4zIDggMzNjMCAzLjMgMi43IDYgNiA2czYtMi43IDYtNnYtMmgxNXY0SDIzLjhjLS45IDQuNi01IDgtOS44IDgiLz48cGF0aCBmaWxsPSIjZTkxZTYzIiBkPSJNMTQgMzdjLTIuMiAwLTQtMS44LTQtNHMxLjgtNCA0LTQgNCAxLjggNCA0LTEuOCA0LTQgNCIvPjxwYXRoIGZpbGw9IiMzNzQ3NGYiIGQ9Ik0yNSAxOWMtMi4yIDAtNC0xLjgtNC00czEuOC00IDQtNCA0IDEuOCA0IDQtMS44IDQtNCA0Ii8+PHBhdGggZmlsbD0iI2U5MWU2MyIgZD0ibTE1LjcgMzQtMy40LTIgNS45LTkuN2MtMi0xLjktMy4yLTQuNS0zLjItNy4zIDAtNS41IDQuNS0xMCAxMC0xMHMxMCA0LjUgMTAgMTBjMCAuOS0uMSAxLjctLjMgMi41bC0zLjktMWMuMS0uNS4yLTEgLjItMS41IDAtMy4zLTIuNy02LTYtNnMtNiAyLjctNiA2YzAgMi4xIDEuMSA0IDIuOSA1LjFsMS43IDF6Ii8+PC9zdmc+"},"displayName":"Respond to Webhook","typeVersion":2,"nodeCategories":[{"id":7,"name":"Utility"},{"id":9,"name":"Core Nodes"}]},{"id":565,"icon":"fa:sticky-note","name":"n8n-nodes-base.stickyNote","codex":{"data":{"alias":["Comments","Notes","Sticky"],"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers"]}}},"group":"[\"input\"]","defaults":{"name":"Sticky Note","color":"#FFD233"},"iconData":{"icon":"sticky-note","type":"icon"},"displayName":"Sticky Note","typeVersion":1,"nodeCategories":[{"id":9,"name":"Core Nodes"}]},{"id":834,"icon":"file:code.svg","name":"n8n-nodes-base.code","codex":{"data":{"alias":["cpde","Javascript","JS","Python","Script","Custom Code","Function"],"details":"The Code node allows you to execute JavaScript in your workflow.","resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.code/"}]},"categories":["Development","Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Helpers","Data Transformation"]}}},"group":"[\"transform\"]","defaults":{"name":"Code"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTcxXzQ0MSkiPgo8cGF0aCBkPSJNMTcwLjI4MyA0OEgxOTYuNUMyMDMuMTI3IDQ4IDIwOC41IDQyLjYyNzQgMjA4LjUgMzZWMTJDMjA4LjUgNS4zNzI1OCAyMDMuMTI3IDAgMTk2LjUgMEgxNzAuMjgzQzEyNi4xIDAgOTAuMjgzIDM1LjgxNzIgOTAuMjgzIDgwVjE3NkM5MC4yODMgMjA2LjkyOCA2NS4yMTA5IDIzMiAzNC4yODMgMjMySDIzQzE2LjM3MjYgMjMyIDExIDIzNy4zNzIgMTEgMjQ0VjI2OEMxMSAyNzQuNjI3IDE2LjM3MjQgMjgwIDIyLjk5OTYgMjgwTDM0LjI4MyAyODBDNjUuMjEwOSAyODAgOTAuMjgzIDMwNS4wNzIgOTAuMjgzIDMzNlY0NDBDOTAuMjgzIDQ3OS43NjQgMTIyLjUxO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MjgwIDQ3OC45NzkgMjgwSDQ5MEM0OTYuNjI3IDI4MCA1MDIgMjc0LjYyOCA1MDIgMjY4VjI0NEM1MDIgMjM3LjM3MyA0OTYuNjI4IDIzMiA0OTAgMjMyTDQ3OC45NzkgMjMyQzQ0OC4wNTEgMjMyIDQyMi45NzggMjA2LjkyOCA0MjIuOTc4IDE3NlY4MEM0MjIuOTc4IDM1LjgxNzIgMzg3LjE2MSAwIDM0Mi45NzkgMEgzMTdDMzEwLjM3MyAwIDMwNSA1LjM3MjU4IDMwNSAxMlYzNloiIGZpbGw9IiNGRjk5MjIiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xMTcxXzQ0MSI+CjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="},"displayName":"Code","typeVersion":2,"nodeCategories":[{"id":5,"name":"Development"},{"id":9,"name":"Core Nodes"}]},{"id":1119,"icon":"fa:robot","name":"@n8n/n8n-nodes-langchain.agent","codex":{"data":{"alias":["LangChain","Chat","Conversational","Plan and Execute","ReAct","Tools"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Agents","Root Nodes"]}}},"group":"[\"transform\"]","defaults":{"name":"AI Agent","color":"#404040"},"iconData":{"icon":"robot","type":"icon"},"displayName":"AI Agent","typeVersion":3,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]},{"id":1234,"icon":"file:convertToFile.svg","name":"n8n-nodes-base.convertToFile","codex":{"data":{"alias":["CSV","Spreadsheet","Excel","xls","xlsx","ods","tabular","encode","encoding","Move Binary Data","Binary","File","JSON","HTML","ICS","iCal","RTF","64","Base64"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.converttofile/"}]},"categories":["Core Nodes"],"nodeVersion":"1.0","codexVersion":"1.0","subcategories":{"Core Nodes":["Files","Data Transformation"]}}},"group":"[\"input\"]","defaults":{"name":"Convert to File"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjc2MTkgMkMxMy4yNDM3IDIgMTIuODIzNiAyLjQyMDA5IDEyLjgyMzYgMi45MzgzMVYxNS4yNTI2QzEzLjMxOTkgMTUuNDY0MyAxMy43ODUxIDE1Ljc3MiAxNC4xOTEgMTYuMTc1N0wyMS4yMjgzIDIzLjE3MzlDMjIuMDU0OCAyMy45OTU4IDIyLjUxOTUgMjUuMTEzMiAyMi41MTk1IDI2LjI3ODhDMjIuNTE5NSAyNy40NDQzIDIyLjA1NDggMjguNTYxOCAyMS4yMjgzIDI5LjM4MzdMMTQuMTkxIDM2LjM4MTlDMTMuNzg1IDM2Ljc4NTYgMTMuMzE5OSAzNy4wOTMyIDEyLjgyMzYgMzcuMzA1VjM3LjM1MjdDMTIuODIzNiAzNy44NzA5IDEzLjI0MzcgMzguMjkxIDEzLjc2MTkgMzguMjkxSDM5LjA2MTdDMzkuNTc5OSAzOC4yOTEgNDAgMzcuODcwOSA0MCAzNy4zNTI3TDQwIDE1Ljc5NEgyNy4xNDQzQzI2LjYyNjEgMTUuNzk0IDI2LjIwNiAxNS4zNzM5IDI2LjIwNiAxNC44NTU3VjJIMTMuNzYxOVoiIGZpbGw9IiMzQTQyRTkiLz4KPHBhdGggZD0iTTI4Ljg2NDUgMkMyOC43NzgxIDIgMjguNzA4MSAyLjA3MDAyIDI4LjcwODEgMi4xNTYzOVYxMi44MjI3QzI4LjcwODEgMTMuMDgxOCAyOC45MT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core Nodes"}]},{"id":1253,"icon":"file:azure.svg","name":"@n8n/n8n-nodes-langchain.lmChatAzureOpenAi","codex":{"data":{"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatazureopenai/"}]},"categories":["AI","Langchain"],"subcategories":{"AI":["Language Models","Root Nodes"],"Language Models":["Chat Models (Recommended)"]}}},"group":"[\"transform\"]","defaults":{"name":"Azure OpenAI Chat Model"},"iconData":{"type":"file","fileBuffer":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMjQyIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iNTguOTcyJSIgeDI9IjM3LjE5MSUiIHkxPSI3LjQxMSUiIHkyPSIxMDMuNzYyJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzExNEE4QiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzA2NjlCQyIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iNTkuNzE5JSIgeDI9IjUyLjY5MSUiIHkxPSI1Mi4zMTMlIiB5Mj0iNTQuODY0JSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1vcGFjaXR5PSIuMyIvPjxzdG9wIG9mZnNldD0iNy4xJSIgc3RvcC1vcGFjaXR5PSIuMiIvPjxzdG9wIG9mZnNldD0iMzIuMSUiIHN0b3Atb3BhY2l0eT0iLjEiLz48c3RvcCBvZmZzZXQ9IjYyLjMlIiBzdG9wLW9wYWNpdHk9Ii4wNSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48b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VjNS4xNzUgMCA5Ljc3MyAzLjMwMSAxMS40MjggOC4yMDRMMTcwLjk0IDIyNS4zYTEyLjA2MiAxMi4wNjIgMCAwIDEtMTEuNDI4IDE1LjkyaDg0LjQyOWExMi4wNjIgMTIuMDYyIDAgMCAwIDExLjQyNS0xNS45MnoiLz48L3N2Zz4="},"displayName":"Azure OpenAI Chat Model","typeVersion":1,"nodeCategories":[{"id":25,"name":"AI"},{"id":26,"name":"Langchain"}]}],"categories":[{"id":5,"name":"Engineering"},{"id":49,"name":"AI Summarization"}],"image":[]}}