add_node
Add nodes to specified workflows in n8n, defining type, position, parameters, and optional attributes like webhook ID or type version for streamlined workflow customization.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
node_name | No | The name for the new node (e.g., 'My Gmail Node') | |
node_type | Yes | The type of node to add (e.g., 'gmail', 'slack', 'openAi'). You can specify with or without the 'n8n-nodes-base.' prefix. The system will handle proper casing (e.g., 'openai' will be converted to 'openAi' if that's the correct casing). | |
parameters | No | The parameters for the node | |
position | No | The position of the node {x,y} - will be converted to [x,y] for N8nWorkflowNode | |
typeVersion | No | The type version for the node (e.g., 1, 1.1). Defaults to 1 if not specified. | |
webhookId | No | Optional webhook ID for certain node types like triggers. | |
workflow_name | Yes | The Name of the workflow to add the node to |