Generate Workflow
AI-generatedSummary
Generate an n8n workflow JSON from natural language description using Claude AI
Inputs
- workflowDescription (required) — Natural language description of the desired workflow
- workflowName — Optional name for the generated workflow; if omitted it will be inferred
- additionalOptions — Optional settings such as Max Tokens, Temperature, Include Comments, Auto Activate
Output shape
A JSON object containing the generated workflow definition plus validation results and optional creation details
The response includes workflowJson, nodeCount, validation.errors and warnings. If n8n API credentials are provided, also includes workflowId and workflowUrl.
Examples
Example 1: Create a simple workflow that triggers on webhook, fetches an API, processes data and posts to Slack
Leave workflowName empty, set Auto Activate false, keep default Max Tokens 8192 and Temperature 0.3
Example 2: Generate a multi-agent workflow with Claude AI and include comments in Code nodes
Enable Include Comments true, set Temperature 0.1, Max Tokens 4096
Example 3: Validate an existing workflow description without creating anything
Use operation 'Validate Workflow' (not a typical generate example)