dispatch_idempotent_n8n_workflow
Dispatch deterministic, idempotent webhook payloads to self-hosted n8n workflows; use unique keys to prevent race conditions from Vapi, Twilio, or WhatsApp.
Instructions
Dispatches a deterministic, lock-verified webhook payload to a self-hosted n8n workflow from Vapi, Twilio, or WhatsApp Cloud API.
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": {
"workflowId": "<workflowId>",
"idempotencyKey": "<idempotencyKey>",
"channel": "<channel>",
"payload": "<payload>"
},
"name": "dispatch_idempotent_n8n_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| payload | Yes | Structured lead or session state payload | |
| workflowId | Yes | Target n8n webhook path or deterministic workflow ID | |
| idempotencyKey | Yes | Unique call_id or message_id to prevent race conditions |