Integration · n8n

Give your n8n workflow a phone number

An n8n voice agent is a workflow that answers a phone call. CallNode provides the number, turns each thing the caller says into a JSON request to a Webhook node, and speaks whatever your workflow returns. The same number receives and sends SMS, and an HTTP Request node can place outbound calls. No SDK and no telephony nodes: Webhook, AI Agent, Respond to Webhook.

n8n integration validated end to end: the voice assistant below is a ready-to-run template with setup notes on the canvas.

How an n8n voice agent works

  1. 1

    Point a number at your Webhook node

    Get a local or toll-free number in the dashboard and paste the Webhook node’s production URL into the number’s voice webhook. Add a header or bearer secret if you want the node to check it.

  2. 2

    CallNode posts each turn as JSON

    When the call connects you receive call_started; after every finished sentence you receive user_speech with the transcript and the whole conversation so far. Keypad presses arrive as user_dtmf.

  3. 3

    Reply with text; the caller hears it

    Return replyText and CallNode speaks it in the number’s voice. Add hangup or transfer when the workflow decides the call is done. Reply within a few seconds; CallNode waits up to 30 per turn.

What the Webhook node receives, and what it returns

This is the whole voice contract. The request below is what arrives after the caller speaks; the response is what a Respond to Webhook node sends back. Full field reference in the conversational webhook docs.

CallNode → your Webhook node

JSON
{
  "callId":     "cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a",
  "event":      { "type": "user_speech" },
  "transcript": "I'd like to book a demo for next Wednesday at 10 AM.",
  "conversationHistory": [
    { "role": "assistant", "content": "Hi, this is Hal from CallNode...", "timestamp": 1780173386556 },
    { "role": "user",      "content": "Yes, I'm interested.",              "timestamp": 1780173401200 }
  ],
  "meta": {
    "from":   "+15145550199",
    "to":     "+16135551234",
    "callId": "cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a"
  }
}

Your Respond to Webhook node → CallNode

JSON
{
  "callId":         "cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a",
  "replyText":      "Got it. What's the biggest bottleneck with your current calling setup?",
  "publicAudioUrl": "https://cdn.yourdomain.example/audio/reply-xyz456.mp3"
}

publicAudioUrl is optional. Leave it out and replyText is spoken in the voice chosen on the number, so a workflow needs no text-to-speech node at all.

Place phone calls from n8n

An HTTP Request node posts to the outbound calls endpoint. webhookUrl is the Webhook node that should run the conversation once the person answers, so the same agent handles both directions. Requests carry X-Api-Key, X-Timestamp and an HMAC X-Signature; the outbound download’s built-in Crypto node computes them. Details in the outbound calls docs and authentication.

HTTP Request node body · POST /api/v1/outbound/calls

JSON
{
  "to":                "+16135551234",
  "from":              "+15145550199",
  "webhookUrl":        "https://yourcrm.example.com/voice/n8n",
  "webhookAuth": {
    "type":            "header",
    "headerName":      "X-API-Key",
    "value":           "your-n8n-secret"
  },
  "metadata":          { "leadId": "lead_abc123" },
  "statusWebhookUrl":  "https://yourcrm.example.com/voice/events",
  "maxDurationSecs":   600,
  "tcpaOverride":      false
}

Or let an AI assistant place the call: through the CallNode MCP server, Claude or ChatGPT can ring someone from your number, and either the CallNode voice agent or the number’s own voice webhook (your n8n workflow) runs the conversation.

SMS and MMS in the same workflow

Point the number’s messaging webhook at a second Webhook node. Each inbound text arrives as JSON, with any pictures as links in media; return reply and CallNode sends it in the same thread. Sending on your own schedule is an HTTP Request node against the messages endpoint, where media entries can be links or the file itself, so a picture your workflow just made needs no hosting. See the messaging docs.

Inbound text → your Webhook node

JSON
{
  "messageId":   "1788350712-8f2c1a9e4b7d",
  "from":        "+14155551234",
  "to":          "+18005551234",
  "body":        "What are your hours?",
  "media":       [],
  "messageType": "sms",
  "timestamp":   "2026-09-02T14:05:12.000Z",
  "direction":   "inbound"
}

Reply in-thread from Respond to Webhook:

JSON
{
  "reply": "We're open 9am to 6pm ET, Monday to Friday. How can we help?",
  "media": []
}

Send a message · POST /api/v1/messages

JSON
{
  "to":               "+16135551234",
  "from":             "+15145550199",
  "body":             "Your demo is confirmed for Wednesday at 10am.",
  "media":            [],
  "statusWebhookUrl": "https://yourcrm.example.com/sms/events",
  "tcpaOverride":     false,
  "metadata":         { "leadId": "lead_abc123" }
}

Messages to US numbers need the number registered for messaging; the dashboard walks you through it. Sends outside 8am to 9pm in the recipient’s local time are declined by default, and the API response says so.

A number’s fax webhook can start a workflow too: every received fax arrives as a fax.received event with a download link. See fax webhooks.

Sending email from the same workflow? An HTTP Request node signs POST /api/v1/email/messages like every other CallNode call, and a Webhook node takes the delivery events. See the Email API reference.

Three workflows, ready to import

Start with the voice assistant: import it, add a chat model credential, and follow the notes on the canvas to connect a number and take your first call. Answering calls and texts needs no CallNode API key. Placing outbound calls, sending from the form and sending the pictures the messaging workflow makes go through the signed API, so those steps need an API key and secret from the dashboard in place of the YOUR_API_KEY placeholders. Each workflow has a short setup video on YouTube; the same video is pinned to its canvas.

The workflows need a free CallNode account to download: they only run with one. Sign in and the file starts.

What you need

  • A CallNode account and a number. Sign up, buy a local or toll-free number, and paste your webhook URL into it. No credit card to start.
  • An n8n instance reachable over HTTPS: n8n Cloud, or self-hosted with a public URL. The Webhook node’s production URL is what CallNode calls.
  • A chat model credential for the AI Agent node. The downloads use an OpenAI chat model; any model n8n supports works the same way.
  • Reply within a few seconds per turn; CallNode waits up to 30. Long-running tool calls should answer first and finish in the background.

Prefer a chatflow to a workflow? The same webhook contract drives Flowise. Building in code instead? The realtime WebSocket streams audio both ways. All integrations are listed under phone numbers for AI agents.

Frequently asked questions

Does n8n need a special CallNode node?

No. Inbound calls and texts arrive at a standard Webhook node as JSON, and you reply with Respond to Webhook. Outbound calls and messages are an HTTP Request node against the signed API. Nothing to install in n8n.

Do I need a text-to-speech node?

No. Return replyText alone and CallNode speaks it in the voice chosen on the number; the voice assistant download works this way. If you would rather generate speech inside the workflow, return your own audio URL in publicAudioUrl instead.

How does the workflow keep track of the conversation?

Every user_speech request carries the full conversationHistory so far, so a stateless workflow still has context. The voice assistant download also attaches n8n’s Simple Memory to the AI Agent node, keyed by callId, so the model remembers the call on its own with no database to set up.

Can n8n place phone calls, not just answer them?

Yes. An HTTP Request node posts to the outbound calls endpoint with the number to dial, your number, and the webhook URL that should run the conversation once the person answers. Requests are signed with your API key and secret; the outbound download signs them with n8n’s built-in Crypto node, so no Code node is needed.

Does this work with n8n Cloud and self-hosted n8n?

Both. CallNode only needs the Webhook node’s production URL to be reachable over HTTPS. It waits up to 30 seconds for each reply, but aim for a few seconds so the caller is not left waiting. Header, bearer or basic auth on the webhook is supported and set per number.

What does an n8n voice agent cost to run?

Pay as you go on the CallNode side: $2.99 a month for a local number and $0.02 a minute for inbound calls, with SMS and MMS billed per message. When your workflow answers in text, CallNode speaks it for you, billed at $0.02 per started minute on calls where a reply was spoken. The integration itself is free. Full rates are on the pricing table. Your n8n and model costs are separate.

Can the workflow transfer a call or hang up?

Yes, with two fields in the reply. hangup: true speaks the reply and then ends the call: {"replyText": "Thanks for calling. Goodbye.", "hangup": true}. transfer: true with a transferDestination speaks the reply and hands the caller to that number: {"replyText": "One moment, I’ll connect you.", "transfer": true, "transferDestination": "+15551234567"}. To hand them to a SIP address instead, set "transferDestination": "sip:+15551234567@203.0.113.10". A SIP address must be a public hostname or IP; a private one such as 192.168.x.x is refused and the call is not transferred. The included Voice Assistant workflow already ends calls; to turn on transfers, put a real number such as +1XXXXXXXXXX in its Settings node’s transferNumber. When the caller asks for a person, the agent then says it will connect them and ends its reply with [transfer], and the workflow sets both fields for you. A keypad press arrives as a user_dtmf event with the digits, so a “press 1 for sales” menu is one If node.

Your workflow can answer the phone this afternoon