An AI voice agent is software that holds a phone conversation by itself. It listens to the caller, works out what they want, decides what to say or do, and answers out loud, turn after turn, until the call is done. At a clinic, it’s the phone side of an AI receptionist: the part that answers calls and books appointments while the patient is on the line.
HeyCAi is an AI receptionist for health clinics, and CAi is the voice that answers its calls. This page covers the mechanics: what happens between a patient speaking and CAi replying, where each step can go wrong, and what to listen for when you test any voice agent. For what an AI receptionist does at a clinic day to day, start with what an AI receptionist is. The other terms are on our AI receptionist concepts page.
The pipeline in brief
Most voice agents chain three pieces, in a loop that repeats every time the caller speaks:
- Speech-to-text turns the caller’s voice into text as they talk.
- A language model reads that text, together with the conversation so far and the clinic’s information, and decides the reply. When it needs to, it uses tools: it checks the calendar, saves a booking or transfers the call.
- Text-to-speech turns the reply into a voice, and the caller hears it down the phone line.
Each piece can fail on its own, and a failure early in the chain spreads. An agent that hears “Wednesday” when the patient said “Friday” books the wrong day, however good the rest of it is.
Speech-to-text (voice recognition)
Speech-to-text, also called speech recognition or voice recognition, turns audio into words. On a call it works while the patient is still talking, producing a running transcript that settles as each sentence ends.
It has a second, less obvious job: deciding when the patient has finished. This is called endpointing. Decide too early and the agent talks over someone who was only pausing to think; wait too long and the line goes quiet. Phone audio makes both jobs harder. A phone line carries less of the voice than a recording made on a mobile, and calls come with traffic, kitchens, children and speakerphones.
What trips it up at a clinic is predictable: surnames and street names, the names of practitioners and techniques, dates and numbers (“the fourth” or “the fourteenth”), and strong accents. When you test a voice agent, ring from somewhere noisy, spell a surname, give a date in a roundabout way, then read the transcript.
The language model: understanding and deciding (NLP)
NLP, natural language processing, is the broad name for software that works with human language. In a voice agent today, most of that work is done by a large language model (LLM), and it has two jobs.
The first is understanding. It pulls out what the patient wants (to book, move, cancel or ask something) and the details that matter (day, time, type of visit, practitioner, name), even when they put it casually: “my back’s gone again, can you fit me in?”
The second is deciding what happens next: ask for what’s missing, offer slots, confirm, or hand the call to a person. To offer real slots, the model doesn’t guess. It queries the calendar through the integration, reads the availability and only offers what’s free; then it writes the booking into the clinic software rather than just promising it.
What keeps it on track is the information and the instructions it works from. The model answers with what the clinic has given and approved, gives no clinical advice, and doesn’t make an answer up when it doesn’t know. With HeyCAi, that information comes from the clinic itself: CAi learns from your clinic, from the last 6 months of WhatsApp conversations, your protocols, your tone and your cancellation policy.
Text-to-speech (natural voice synthesis)
Text-to-speech (TTS) turns the written reply into audio. Today’s synthetic voices sound natural enough that pace and tone matter more than whether a voice sounds slightly artificial. What’s worth adjusting for a clinic is the pace (slower if many of your patients are older), the tone, and the pronunciation of words the voice won’t know, such as the names of your techniques or your practitioners. With CAi, you choose the assistant’s name, tone, pace and style, and the voice and script are fitted to your clinic during setup.
The voice also adds to the wait. It has to produce audio before the caller hears anything, which is why voice agents usually stream it: they start speaking as soon as the first words of the reply are ready, rather than waiting for the whole sentence.
Response latency
Response latency is the time between the caller finishing a sentence and hearing the first word of the reply. On a phone call, it’s the thing callers notice first.
People are fast at this. A 2009 study published in PNAS timed the answers to questions in everyday conversations in 10 languages. In every language, the most common gap between the end of a question and the start of the answer was between 0 and 200 milliseconds, and the average across the whole dataset was 208 milliseconds. Even Danish, the slowest language in the study, averaged under half a second. A pause nobody would notice in a WhatsApp chat feels long on the phone, and a few seconds of silence makes callers wonder whether the line has dropped.
In a voice agent, the delay is the sum of several small waits:
- making sure the caller has really finished (endpointing);
- the final transcript of what they said;
- the language model working out the reply;
- any tool it uses, such as a calendar lookup;
- the voice producing its first audio;
- the phone network, in both directions.
None of them is long on its own, but they add up, and a calendar lookup can add the most. That’s why a well-built agent says something short while it checks, the way a receptionist says “let me have a look”, instead of leaving the line silent.
When you try any voice agent, listen for the pauses more than for the voice. Callers forgive a voice that sounds a little synthetic; they’re less forgiving of not knowing whether anyone is still there. And test it live: an edited recording hides the gaps.
Interruptions (barge-in)
People interrupt. A patient hears “Thursday at 10:00” and says “no, mornings are no good” before the agent has finished the sentence. Handling that is called barge-in: the agent has to notice that the caller is speaking, stop talking and listen.
The hard part is telling a real interruption from a cough, background noise or a “mm-hm” that only means “go on”. An agent that stops at every sound keeps breaking off; one that never stops talks over the patient. To test it, interrupt mid-sentence, change your mind, and say “sorry, what?” halfway through an answer.
When it doesn’t understand
Misunderstandings happen on any call, with people too. What matters is what the agent does next. A good one asks again in different words instead of repeating itself, reads back the details that matter (day, time, name) before it books, and after a couple of failed attempts stops trying and passes the call on. CAi doesn’t make up an answer: if it doesn’t have the information, it says so.
Handing over to a person
Every voice agent needs a way out, for the questions it can’t answer and for patients who ask for a person. With CAi, if something falls outside what it knows, it puts the call through to you or an on-call number, or takes a message and alerts your team on WhatsApp. You decide which during setup, and the summary of the call reaches your team either way.
The same pipeline works the other way round, on outbound calls: CAi can make reminder calls 24 hours and 2 hours before the appointment, with the option to reschedule there and then.
The providers behind the demo call
A voice agent is usually built from specialist providers, one per piece. For the live demo call, HeyCAi’s privacy policy lists these: Vapi places the call, records it and transcribes it; Twilio connects it to the phone network, through Vapi; Deepgram turns what’s said into text; OpenAI writes CAi’s replies; and ElevenLabs gives CAi its voice. The policy also gives each one’s country and explains how transfers outside the European Economic Area are covered.
Sources
- Stivers T. et al., “Universals and cultural variation in turn-taking in conversation”, Proceedings of the National Academy of Sciences, vol. 106, no. 26, 2009: the timing of replies to questions in 10 languages.
Frequently asked questions
How fast should an AI voice agent reply?
As close to a normal conversation as it can. In a 2009 study of 10 languages, the most common gap before an answer was under 200 milliseconds, so any delay is easy to hear on the phone. No agent matches that on every turn, especially while it checks a calendar. Judge it on a live call: a short pause is fine; silence that makes you wonder whether the line has dropped isn’t.
Does it understand accents?
Speech-to-text copes with most accents, but strong accents, background noise and unusual surnames are where any voice agent makes mistakes. CAi understands Spanish from Spain and Latin America, and English from the UK and the US. Before going live, test it with the accents your patients actually have, then read the transcript.
Can patients interrupt it?
A good voice agent lets them. One that handles interruptions stops talking when the caller starts and listens to the new request. Test it by cutting in mid-sentence and changing your mind: if it carries on talking over you, your patients will notice.
What happens if it mishears a date or a name?
A good agent reads the key details back before booking, so the patient can correct them, and asks again in different words when it isn’t sure. If it still can’t resolve the request, it should pass the call on rather than guess. With CAi, that means putting the call through or taking a message for your team, as you’ve set it up.
Which languages does it speak?
CAi answers in Spanish and English. It picks up the language from the patient’s first few words and carries on in that language, and if the patient switches halfway through, it switches with them.
Do I have to change my phone number?
No. You keep your number, and calls go to CAi when you can’t answer, out of hours or all the time, depending on how you set it up.
The quickest way to judge latency, interruptions and the voice is to hear them. Try the demo: enter your clinic’s website and your mobile number, and CAi rings you in about 30 seconds.