add_connection
Establish connections between nodes in n8n workflows by defining source and target nodes with specific input and output handles, ensuring proper workflow configuration.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
source_node_id | Yes | The ID of the source node for the connection | |
source_node_output_name | Yes | The name of the output handle on the source node (e.g., 'main') | |
target_node_id | Yes | The ID of the target node for the connection | |
target_node_input_index | No | The index for the target node's input handle (default: 0) | |
target_node_input_name | Yes | The name of the input handle on the target node (e.g., 'main') | |
workflow_name | Yes | The Name of the workflow to add the connection to |