Give your n8n workflow a phone number
Build an n8n voice agent that answers real calls with three standard nodes: Webhook, AI Agent and Respond to Webhook. CallNode is the phone layer: it owns the number, turns the caller's speech into JSON and speaks your workflow's reply.
What you'll build
- An inbound voice agent: someone calls your number and your n8n workflow answers.
- Two-way SMS on the same number.
- Outbound calls placed from an HTTP Request node.
You don't need a CallNode node, an SDK or a text-to-speech node. Your workflow stays the agent; CallNode handles the number, the carrier and the speech.
What you'll need
- A CallNode account and a number: a local number is $2.99 a month (callnode.io/pricing: "Local numbers $2.99 a month, toll-free $4.99 a month").
- An n8n instance reachable over HTTPS: n8n Cloud, or self-hosted with a public URL. CallNode calls the Webhook node's production URL.
- A chat model credential for the AI Agent node. The CallNode downloads use an OpenAI chat model; any model n8n supports works the same way.
Step 1: Get a number and the voice assistant workflow
- Create a CallNode account. You don't need a credit card to sign up; usage is prepaid, so add funds when you're ready to buy a number.
- In the dashboard, buy a local or toll-free number.
- Download the Voice assistant (inbound calls) workflow,
callnode-voice-assistant.n8n.json, from callnode.io/integrations/n8n. The workflows need a free CallNode account to download, so sign in first. - In n8n, import the file and add your chat model credential to the AI Agent node.
The workflow is a Webhook node, an AI Agent with a chat model and per-call memory, and Respond to Webhook. Sticky notes on the canvas walk you through the rest, and a short setup video is pinned to the canvas. Answering calls needs no CallNode API key.
Step 2: Point the number at your Webhook node
- Publish the workflow in n8n (in older versions, set it to Active), so its Webhook node's production URL is live, and copy that URL.
- In the CallNode dashboard, open Phone Numbers, choose your number and paste the URL into its voice webhook.
- Optional but recommended: add a header, bearer or basic secret on the number, and have the Webhook node check it.
Step 3: Call your number
Ring the number from your own phone. CallNode posts to your Webhook node when the call connects, and the AI Agent's reply is spoken to you in the number's voice. Say something, and the agent answers.
That's a working n8n voice agent. The rest of this guide explains what's going on, then adds texting and outbound calls.
How the voice contract works
CallNode sends three kinds of events to the Webhook node:
call_startedwhen the caller connects. Reply with your greeting.user_speechafter every finished sentence, with the transcript and the whole conversation so far.user_dtmfwhen the caller presses keys on the keypad.
This is what arrives after the caller speaks (from callnode.io/integrations/n8n):
{
"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"
}
}
And this is what Respond to Webhook sends back:
{
"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 you don't need a text-to-speech node.
Memory. Every user_speech request carries the full conversationHistory, so even a stateless workflow has context. The voice assistant download also attaches n8n's Simple Memory to the AI Agent node, keyed by callId.
Speed. Reply within a few seconds per turn; CallNode waits up to 30, and the caller hears nothing while it waits. Long-running tool calls should answer first and finish in the background.
Hang up, transfer, and keypad menus
Two fields in the reply end or hand off the call:
{"replyText": "Thanks for calling. Goodbye.", "hangup": true}
{"replyText": "One moment, I’ll connect you.", "transfer": true, "transferDestination": "+15551234567"}
The included Voice Assistant workflow already ends calls. To turn on transfers, put a real number in its Settings node's transferNumber. A keypad press arrives as a user_dtmf event with the digits, so a "press 1 for sales" menu is one If node.
Step 4: Add SMS to the same number
- Download the SMS and MMS workflow (
callnode-messaging.n8n.json) from the same page and import it. - Point the number's messaging webhook at that workflow's Webhook node.
Each inbound text arrives as JSON, with any pictures as links in media:
{
"messageId": "1788350712-8f2c1a9e4b7d",
"from": "+14155551234",
"to": "+18005551234",
"body": "What are your hours?",
"media": [],
"messageType": "sms",
"timestamp": "2026-09-02T14:05:12.000Z",
"direction": "inbound"
}
Return reply from Respond to Webhook and CallNode sends it in the same thread:
{
"reply": "We're open 9am to 6pm ET, Monday to Friday. How can we help?",
"media": []
}
To send a text on your own schedule, use an HTTP Request node against POST /api/v1/messages. The messaging download includes a form that does this through the signed endpoint, so that part needs an API key and secret from the dashboard in place of the YOUR_API_KEY placeholders.
Before you send texts: your number has to be cleared for messaging. That means 10DLC for a local number (otherwise the send returns 403 campaign_not_registered) and toll-free verification for a toll-free number (tollfree_not_verified). The dashboard walks you through it. CallNode also enforces these rules server-side:
- Quiet hours: sends outside 8 AM–9 PM in the recipient's local time are blocked.
- STOP: when a recipient texts STOP (or UNSUBSCRIBE, CANCEL, END, QUIT), they're suppressed. START re-enables them.
Step 5: Place outbound calls from n8n
The Outbound calling workflow (callnode-outbound.n8n.json) takes a name and a number from a form, signs the request with n8n's Crypto node and places the call through the API. When the person answers, the same AI agent pattern talks to them and greets them by name.
The HTTP Request node posts to POST /api/v1/outbound/calls. webhookUrl is the Webhook node that runs the conversation once the person answers, so one agent handles both directions:
{
"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
}
Requests carry X-Api-Key, X-Timestamp and an HMAC X-Signature, which the download's Crypto node computes, so you don't need a Code node. Replace the YOUR_API_KEY placeholders with an API key and secret from the dashboard.
Before your first outbound call:
- Verify your caller ID. The
fromnumber must be verified as a caller ID: Numbers, open the number, Caller ID card. Verification is automatic and takes about a minute. Until it's done, calls answer403 caller_id_not_verified. - Calling hours. A call to a phone number outside 8 AM–9 PM at the called party's local time is refused. To test against your own mobile at any hour, add it once under Dashboard → Phone Book, where you certify that you own the line.
What it costs to run
From the CallNode side, on pay as you go (callnode.io/pricing and /integrations/n8n):
| Price | |
|---|---|
| Local number | "Local numbers $2.99 a month, toll-free $4.99 a month" |
| Inbound and outbound minutes (US and Canada) | "$0.02/minute", "Billed per whole minute, rounded up, from a prepaid balance" |
| Spoken replies | "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." |
| Texts | "SMS $0.01, MMS $0.04 per message" (local number) |
| The integration | "The integration itself is free." |
Your n8n and model costs are separate.
Troubleshooting
- The call connects but nobody speaks. Check that the workflow is published (Active in older n8n versions) and that the number has the production Webhook URL, not the test URL. Make sure Respond to Webhook returns
replyText. - Long pauses. Your workflow is taking too long per turn. Aim for a few seconds; move slow tool calls to the background.
- Outbound call refused with
403 caller_id_not_verified. Verify thefromnumber on its Caller ID card (automatic, about a minute). - Text refused with
403 campaign_not_registeredortollfree_not_verified. Register the local number for 10DLC, or finish toll-free verification.
Where to go next
- Want your assistant to place calls instead? See the MCP tutorial for Claude, ChatGPT and Cursor.
- Building in code? The webhook and WebSocket quick-start uses the same contract.
- Every phone-layer option: a phone number for your AI agent.