Back to use cases
Product5 min read· Nov 18, 2026

SMS and calls in n8n workflows with an AI agent

Two ways to put a real phone number into an n8n workflow: the MCP Client Tool sub-node on the AI Agent node pointed at AgentPhone, or the HTTP Request node against the REST API, plus inbound texts through a Webhook trigger.

AgentPhone TeamFounders
SMS and calls in n8n workflows with an AI agent

An ops lead at a solar installer already has an n8n workflow that watches a form, enriches the lead and drops it into the CRM. The missing step is the one that matters: someone has to text the homeowner within five minutes, answer "how much does it cost" and book a site visit. Right now that is a Slack alert and a human who is sometimes at lunch.

With an AgentPhone number in the workflow, the AI Agent node texts the homeowner, reads the reply when it comes back through a Webhook trigger and books the visit. Two ways to wire it. Pick based on whether you want the model to decide what to do or whether you want to script every step.

Way one: the MCP Client Tool sub-node

If your workflow has an AI Agent node, give it AgentPhone as a tool. Add the MCP Client Tool sub-node under the agent and fill in:

  • MCP Endpoint URL: https://mcp.agentphone.ai/mcp
  • Server Transport: HTTP Streamable
  • Authentication: Bearer, with your AgentPhone API key as the token
  • Tools to Include: pick the ones the agent should have, or all 28

The agent now has send_message, make_call, get_conversation and the rest as tools it can call when its reasoning says to. Your prompt reads something like "You are the scheduling assistant for Ridge Solar. Text the lead, answer pricing questions from the attached sheet, offer two site visit slots." The model decides when to send and what to say.

Use this when the conversation is open-ended. The model handles "my roof is slate, does that matter" without you anticipating it.

Way two: the HTTP Request node

If the step is deterministic, send a confirmation text after a booking is written, skip the model and call the REST API directly. An HTTP Request node with method POST, URL https://api.agentphone.ai/v1/messages, a bearer header and a JSON body. This is the equivalent curl:

bash
curl https://api.agentphone.ai/v1/messages \
-H "Authorization: Bearer $AGENTPHONE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"number_id": "num_5tk2we",
"to_number": "+16025550119",
"body": "Ridge Solar: your site visit is booked for Thu Nov 26, 10 to 12. Reply here with any questions. Reply STOP to opt out."
}'

Both ways can live in one workflow. Deterministic steps on HTTP Request, the conversation on the AI Agent node with the MCP tool.

Inbound: the Webhook trigger

Replies need a way in. Add a Webhook trigger node, copy its production URL into the AgentPhone dashboard as your webhook, and every inbound text arrives as an agent.message event with channel, the message, conversationId and recentHistory. The workflow branches from there.

Verify the signature. AgentPhone signs each delivery with an HMAC over {X-Webhook-Timestamp}.{raw body} in the X-Webhook-Signature header. A Code node with your webhook secret checks it before anything downstream runs. Deliveries retry with backoff if your workflow returns an error, so make the handler idempotent on the message ID.

An example flow

  1. 1Form submission trigger: a homeowner requests a quote.
  2. 2CRM node: create the lead.
  3. 3AI Agent node with the MCP Client Tool: text the homeowner, introduce Ridge Solar, ask one qualifying question.
  4. 4Webhook trigger (separate workflow): homeowner replies.
  5. 5AI Agent node again, now with recentHistory from the event in context: answer, offer slots, book the visit by calling your calendar.
  6. 6HTTP Request node: send the confirmation text.
  7. 7If the reply contains anything the agent flags, Slack node to a human with the conversationId.

That is one morning of n8n work. The number itself takes a minute to buy in the dashboard, and 10DLC registration, which outbound SMS needs, is submitted from there for $25 (sole proprietor or standard brand) and usually approved in one to three business days.

What it costs

ItemPrice
Number$3 per month
Text sent or received$0.02 per segment
Call, your own model over webhook$0.13 per minute
Call, hosted AI$0.22 per minute
10DLC registration$25 once for a sole proprietor or standard brand
MCP serverIncluded

n8n itself is your own cost, self-hosted or cloud. Prices for AgentPhone are from the pricing page.

FAQ

How do I connect AgentPhone to n8n? Add the MCP Client Tool sub-node under an AI Agent node with endpoint https://mcp.agentphone.ai/mcp, transport HTTP Streamable and bearer authentication using your API key. Or use the HTTP Request node against the REST API.

Can n8n receive inbound texts from AgentPhone? Yes. Point your AgentPhone webhook at a Webhook trigger node's production URL. Each inbound text arrives as an agent.message event with the thread history attached.

Should I use the MCP tool or the HTTP Request node? MCP when the model should decide what to send and when. HTTP Request when the step is fixed, like a confirmation after a booking. Both can sit in the same workflow.

Do I need 10DLC registration? For outbound SMS from a US local number, yes. Submit it from the AgentPhone dashboard for $25 (sole proprietor or standard brand). Inbound texts work before approval.

Ready to give your AI Agent a phone number?