Generate workflow JSON files from webhook prompts using Azure OpenAI GPT-4o-mini
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 7 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Azure OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Sanitize & Normalize Prompt (Code): runs custom JavaScript code
- Generate Workflow via AI Agent (AI Agent): runs an AI agent, with model: Azure OpenAI Chat Model
- Parse & Validate AI JSON Output (Code): runs custom JavaScript code
- Convert Workflow to JSON File (Convert to File): converts data to a file (to json)
- Return JSON File to Caller (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Convert to File
n8n-nodes-base.convertToFile - Respond to Webhook
n8n-nodes-base.respondToWebhook - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
From the author
📊 Description Automate the creation of production-ready n8n workflows using AI 🤖. This template receives a plain-text automation idea via webhook, processes it with Azure OpenAI, and instantly generates a fully valid, import-ready n8n workflow JSON file.…