n8n_create_workflow
Create an n8n workflow by providing name, array of nodes (each with id, name, type, typeVersion, position, parameters), and connections. Returns the inactive workflow with its unique ID.
Instructions
Create workflow. Requires: name, nodes[], connections{}. Created inactive. Returns workflow with ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"nodes": "<nodes>",
"connections": "<connections>"
},
"name": "n8n_create_workflow"
}
}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) | |
| connections | Yes | Workflow connections object. Keys are source node names (the name field, not id), values define output connections |