Create Dynamic Workflows Programmatically via Webhooks & n8n API
Overview This workflow exposes an HTTP endpoint (webhook) that accepts a JSON definition of an n8n workflow, validates it, and—if everything is correct—dynamically creates that workflow in the n8n instance via its internal API. If any validation fails or the API call encounters an error, an explanatory message with details is returned. Workflow Diagram Step-by-Step Details 1. Webhook Type: Webhook (POST) Path: /webhook/create-workflow Purpose: Expose a URL to receive a JSON definition of a wo
At a glance
Create Dynamic Workflows Programmatically via Webhooks & n8n API is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects UNSUPPORTED_SLUG_FORMAT. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- UNSUPPORTED_SLUG_FORMAT
- Modules
- 8
- Price
- Free
- Version
- v1.0

About this workflow
Overview This workflow exposes an HTTP endpoint (webhook) that accepts a JSON definition of an n8n workflow, validates it, and—if everything is correct—dynamically creates that workflow in the n8n instance via its internal API. If any validation fails or the API call encounters an error, an explanatory message with details is returned. Workflow Diagram Step-by-Step Details 1. Webhook Type: Webhook (POST) Path: /webhook/create-workflow Purpose: Expose a URL to receive a JSON definition of a workflow. Expected Input: JSON containing the main workflow fields (name, nodes, connections, settings). 2. Validate JSON Type: Code Node (JavaScript) Validations Performed: Ensure that payload exists and contains both name and nodes. Verify that nodes is an array with at least one item. Check that each node includes the required fields: id, name, type, position. If missing, initialize connections, settings, parameters, and typeVersion. Output if Error: Output if Valid: 3. Validation Successful? Type: IF Node Condition: $json.success === true Branches: true: proceed to Create Workflow false: route to Validation Error 4. Create Workflow Type: HTTP Request (POST) URL: Authentication: Header Auth with internal credentials Body: The apiWorkflow object generated earlier Options: continueOnFail: true (to handle failures in the next IF) 5. API Successful? Type: IF Node Condition: $response.statusCode <= 299 Branches: true: proceed to Success Response false: route to API Error 6. Success Response Type: SET Node Output: 7. API Error Type: SET Node Output: 8. Validation Error Type: SET Node Output: Example Webhook Request Expected Success Response Validation Error Response API Error Response
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Generate recipes from ingredients with Ollama AI Chef Agent
Remote IOT sensor monitoring via MQTT and InfluxDB
Export Odoo company data via API endpoint with JSON/Excel output options
Send email reminder to the person 24 hours ahead of the due-date
Build your own Youtube MCP server
Send push notifications via Apple Safari for new RSS feed posts
Gmail AI Auto-Responder: Create Draft Replies to incoming emails
Let AI agents handle issues with the Jira MCP Server 💪 all 20 operations
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you