Skip to main content
Numbers (PSTN)

Voice Calling

How an AI agent answers a PSTN call, and which integration path to use.

An AI voice agent answers an inbound phone call, transcribes the caller, generates a reply and speaks it back — with barge-in, so the caller can interrupt mid-sentence.

There are two ways to get a phone number onto an agent. Both run the same voice pipeline.

Choose a path

You want us to supply the number. Complete KYC, rent an Indian number, and bind it to a bot — all over the API with your cm_ key. See Telephony API.

You already own numbers. Connect a carrier account you control (Twilio, Plivo, or any SIP provider), import your existing numbers, and point them at an agent. See Bring Your Own Telephony.

Moving an existing deployment across? Migrate from Twilio covers the number-by-number cutover.

How a call actually runs

Both paths converge on the same flow:

Inbound PSTN call
  → your carrier's SIP trunk
  → CallMissed SIP endpoint (per-tenant inbound trunk)
  → a room is created and a voice agent is dispatched into it
  → the agent runs STT → LLM → TTS on the live audio
  → speech is streamed back to the caller

The agent pipeline is the same one WebRTC voice sessions use, so an agent you have already tuned in the dashboard behaves identically on a phone call. Turn-taking, interruption handling and the model stack all carry over.

Speaking style is per agent, not per call: pick the STT, LLM and TTS on the agent's Voice page, and tune the speech knobs your chosen TTS exposes on its Speech page.

Outbound calling

Outbound is available through the Telephony API — place a call, attach an agent, and fetch the recording afterwards.

Older TwiML webhook instructions

Earlier versions of these docs told you to set a CallMissed URL as a Twilio number's A call comes in webhook. That path is not supported and does not answer calls. If a number is still configured that way, switch it to one of the two paths above.

On this page