n8n_create_workflow
Create an n8n workflow by defining its name, nodes, and connections. Returns the new workflow's ID; the workflow is created inactive, ready for later activation.
Instructions
Create workflow. Requires: name, nodes[], connections{}. Created inactive. Returns workflow with ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name (required) | |
| nodes | Yes | Array of workflow nodes. Each node must have: id, name, type, typeVersion, position, and parameters | |
| settings | No | Optional workflow settings (execution order, timezone, error handling). Any other key the n8n Public API accepts is forwarded as well, e.g. availableInMCP (expose the workflow to n8n's instance-level MCP server), callerPolicy, callerIds. | |
| projectId | No | Optional project ID to create the workflow in (enterprise feature) | |
| nodeGroups | No | Optional canvas groups (n8n 2.28+): named frames around a connected run of non-trigger nodes. Members are node IDs from nodes[]. Dropped automatically on older n8n. | |
| connections | Yes | Workflow connections object. Keys are source node names (the name field, not id), values define output connections | |
| parentFolderId | No | Optional folder ID to place the workflow in (n8n 2.32+). Omit for the project root. Find or create folders with n8n_manage_folders. |