Topic 4 of 5 · 4 min read
Recovering from misheard and silent turns
Goal: Design the reprompt and fallback sequence for a voice step that fails twice so the caller is never stuck in a loop.
When a voice step fails, change what you do on each retry, limit the retries to two, and then offer a choice or a person instead of looping.
Check yourself · 1 of 3
A caller does not answer a question for several seconds. What kind of failure is this?
Why it matters
On a phone, callers cannot see what went wrong. They hear "Sorry, I didn't catch that" a third time in the same words and feel stuck. Speech recognition fails in everyday ways: a noisy street, an accent the model handles less well, a name it has never heard, a caller who is silent because they are looking for a card. Failures will happen, so recovery is part of the design, not an afterthought.
Two failures, two responses
- No input. The caller said nothing. A no-input timeout is how long the agent waits before it speaks again, often about five seconds for simple questions and longer for tasks such as finding a number. Tune it for the task.
- No match. The caller spoke, but the system could not understand or use it.
A recovery sequence
Use a ladder, with a different move at each step:
- First failure: short reprompt in new words. "Sorry, I missed that. What date would you like?" Repeating the same sentence tends to give the same failure.
- Second failure: help and a narrower question. "I'm still not getting it. You can say a day, like Tuesday, or say 'help'." Or switch to choices: "Is it this week or next week?"
- Third step: exit. "Let me put you through to someone who can help." Transfer with context: pass what was already collected so the caller does not repeat it.
Keep the loop short. Two failed attempts is enough for most steps. Count failures per step, not per call, and reset the count after a success. Add an escape the caller can always use: "operator", "agent" or "help" should work at any point.
You can describe this in the system prompt, but control the counters in code where you can. A model asked to "try twice then transfer" can miscount. A small state machine is more reliable:
# Fail count per step decides the next move
def next_move(fails: int) -> str:
if fails == 0:
return "ask"
if fails == 1:
return "reprompt_new_words"
if fails == 2:
return "offer_choices"
return "handoff_to_human"
Before and after
Before: Agent: What's your postcode? Caller: (noise) Agent: Sorry, what's your postcode? Caller: (noise) Agent: Sorry, what's your postcode?
After: Agent: What's your postcode? ... Sorry, I missed that. Could you say it slowly, one letter at a time? ... I'm having trouble hearing you. I'll connect you to a colleague who can help.
What goes wrong
- The same prompt is repeated word for word, so the same failure repeats.
- The timeout is too short, and the agent talks over a caller who is still thinking.
- The caller is sent to a person but has to start again from the beginning.
- The agent never gives up, because nobody set a limit.
Examples
A three-step ladder for a failed name
- 'Sorry, I didn't catch your surname. Could you say it again?'
- 'Could you spell it for me, one letter at a time?'
- 'I'm going to connect you to a colleague. They'll have what you've told me so far.'
Each step changes the request, and the third ends the loop.
A silent caller
After five seconds of silence: 'Take your time. I'm here when you're ready.' After another five: 'Would you like me to call you back later?'
Silence is treated as a person busy finding something, not as an error to scold.
Key points
- No-input (silence) and no-match (not understood) are different failures and need different responses.
- Each reprompt should change something: new wording first, then a narrower question or choices.
- Limit retries per step, usually to two, then hand over to a person or another channel.
- Pass collected details to the human so the caller does not start over.
- Count failures in code where possible, because a model may miscount.
Common mistakes
- Repeating the same reprompt word for word.
- Setting the silence timeout so short that the agent interrupts a caller who is thinking.
- Looping with no limit and no way out.
- Transferring to a person without passing along what was already collected.
Check yourself · 2 of 3
The agent asks for a date of birth and gets no match. What is the best first reprompt?
Check yourself · 3 of 3
After two failed attempts at a step, what should a well-designed agent do?
Practice items, not counted towards your mastery.
Start here
- Voice prompting guide (OpenAI API) (opens in a new tab)DocsFree
OpenAI's guide to prompting speech agents: brevity, tone, pace and how to structure a voice system prompt.
- Text to speech best practices (ElevenLabs docs) (opens in a new tab)DocsFree
Practical tips on writing text so the voice reads numbers, abbreviations and pauses correctly.
- Speech Synthesis Markup Language 1.1 (W3C) (opens in a new tab)StandardFree
The standard behind SSML tags such as say-as, break and phoneme.
More for this topic
- Conversation Design (Google for Developers) (opens in a new tab)ArticleFree
Covers error handling patterns such as no-input and no-match, and escalating reprompts.
Where to go in your country
- Article 50: Transparency obligations (EU AI Act) (opens in a new tab)DocsFreeEU
The EU rule that people must be told they are interacting with an AI system.