An AI phone system looks simple from the outside: someone rings, a voice answers, something useful happens. Underneath, it is a chain of five or six systems that each have to work in real time, because on a phone call a one-second hiccup is an awkward silence the caller notices.
This guide walks through the chain, the choices at each link, and the mistakes that catch most first builds. It is written for technical founders and IT leads, but the decisions are ones every buyer should understand too.
The chain at a glance
- The number and the carrier. The public telephone network delivers the call.
- The call-control layer. Software that answers the call and decides where its audio goes.
- The audio bridge. A real-time connection that carries the caller's audio to your application and your voice back.
- The voice AI. Either one speech-to-speech model, or a pipeline of speech recognition, a language model and speech synthesis.
- Tools and business logic. The code that looks things up and takes actions, with its permissions.
- Records and review. Transcripts, outcomes and the queue your team works from.
1. The number and the carrier
You need a phone number that callers can reach, provided by a licensed operator or a communications platform that holds the right licences. You can buy a new number, forward an existing one, or bring calls in over a SIP trunk from your operator. Rules differ by country. In the UK, many providers can offer numbers to businesses. In the UAE, telecommunications services are provided by the licensed operators, e& and du, which narrows the options; see our UAE SIP trunking guide.
2. Call control
When a call arrives, something has to answer it and decide what to do. Communications platforms such as Twilio do this with a webhook: they send your server a request and your server replies with instructions. If you run your own phone system (PBX), the PBX does this job and hands calls to your AI over SIP.
Secure this step properly. Verify that requests genuinely come from your provider by checking their signatures, and decide which business or department a call belongs to from the number dialled, never from what the caller says.
3. The audio bridge
The call's audio has to reach the AI and come back with as little delay as possible. Common patterns:
- A media stream over WebSocket. Twilio's Media Streams, for example, send the caller's audio to your server as small chunks of 8 kHz G.711 μ-law audio and accept audio back the same way. You control the audio, so you can mix in background sound, record, or switch models.
- SIP straight to the model. Some speech-to-speech providers, including OpenAI, accept SIP calls directly. Fewer moving parts, but your application no longer sits in the audio path.
- A media server or framework. Open-source frameworks such as LiveKit Agents and Pipecat handle transport, turn-taking and model plumbing, and are worth evaluating before you write your own.
Pacing matters. Audio has to be sent in real time, neither in bursts nor late, or the caller hears stutters and gaps. Buffer carefully, and be able to stop playback instantly when the caller interrupts.
4. The voice AI
This is the choice that gets the most attention. You can use a speech-to-speech model that hears audio and replies in audio, or a cascaded pipeline of speech-to-text, a text language model and text-to-speech. Speech-to-speech tends to be faster and more natural; a cascade gives you more control over each step and a wider choice of voices and languages. Our comparison and model guide cover the trade-offs in depth.
Whichever you choose, test on real phone audio and in every language your callers use, including dialects. Results from studio audio do not carry over to a mobile phone on a motorway.
5. Tools, and who is allowed to use them
An AI receptionist becomes useful when it can look things up and act: check a booking, log a repair, send a confirmation. It becomes dangerous when it can act on anything a caller talks it into. Three principles help:
- Least privilege. Give the agent the smallest set of tools that does the job, scoped to the business the call belongs to.
- Separate talking from doing. In Clodia, the voice model runs no tools at all; it delegates to a backend model whose tools run on our servers. Whatever architecture you choose, keep a layer between the conversation and the action.
- Approval for anything consequential. Spending money, refunds and dispatching people should wait for a human decision.
6. Records and review
Every call should leave a record: who rang, what they wanted, what the agent said, and what happens next. Your team needs a queue of calls that need a person, and someone has to review samples regularly. Decide retention periods up front and tell callers what is recorded; see recording calls in the UAE and UK.
Pitfalls that catch first builds
- Testing only in the browser. Phone audio is narrower and noisier. Test on real calls early.
- Hanging up too early. If you drop the line the moment the AI decides to end, callers lose the goodbye and you may lose the end of the transcript. Wait for the voice session to confirm it has finished.
- Ignoring interruptions. Callers talk over the agent. It must stop speaking quickly and listen.
- Claiming things that didn't happen. An agent that says "I've sent that" when a message failed destroys trust. Report the real outcome.
- Tuning several things at once. Change one setting, then measure. Batched changes cannot be told apart.
- Treating the phone line as an afterthought. Operator approvals, number availability and porting can take longer than the software.
Build or buy?
Building your own is a good choice if telephony is core to your product, you have engineers who can own real-time systems, and you need control the market does not offer. Buying makes sense if you want the outcome, answered calls and a clean queue for your team, without running the plumbing. Either way, the questions in our buyer's guide are the ones to answer.
Sources and further reading
Hear Clodia for yourself.
Try a live conversation in your browser, or tell us about your front desk.