n8n_create_workflow
Create n8n workflows programmatically by specifying name, nodes, and connections. The workflow is created inactive and returns its ID for later use.
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) | |
| 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. |