A caller confirms they want to check an existing service request. The assistant asks for the request number, hears an incomplete answer and repeats the question. When the answer fails again, the caller needs a way to continue from the request they already confirmed. A keypad can handle a numeric reference. A staff member can look up a reference the caller cannot find or a code with letters the recognizer keeps missing.
For a service desk manager, the decision is how much time the caller should spend recovering before reaching someone who can help. Set the fallback policy for each question, then make the call flow enforce it. The policy should say when to ask again, which inputs can move to the keypad, and what happens when no one can take the transfer.
Count failed attempts at the question that stalled
Give each question a stable identifier. Record an attempt when the call enters the input step, then record its outcome. A caller who stays silent has reached a different failure from one whose speech produces a transcript that fails validation. Treat an unavailable recognizer or a failed lookup as a system error. Asking the caller to pronounce a valid request number again will do little for an unavailable ticket system.
Keep a count of unsuccessful attempts for the current question and a limit on total recovery time for the call. Reset the question count when the caller completes the step or explicitly changes tasks. Preserve the count when the prompt is rephrased or the input mode changes. Handle repeated delivery of the same result once, using a call identifier and the attempt identifier issued for that turn. An old response should have no effect after the call has advanced. Otherwise duplicate events can push a caller into a transfer early or restart a prompt after they have answered it.
In Twilio Programmable Voice, <Gather> can collect speech or keypad input. SpeechResult carries transcribed speech and Digits carries keypad entries. When Twilio supplies Confidence, treat it as an estimated transcription score. Its presence and accuracy are unguaranteed. Check whether the result answers the current question, whether a reference has the expected format, and whether the caller still needs to confirm it. Twilio Voice Gather, action and input
Choose a retry, a keypad step or a staff transfer
| Option | When it fits | When to move on |
|---|---|---|
| Replay or shorten the spoken question | The caller may have missed the prompt or can answer a narrower version. Ask for the one missing value and say where to find it. | The same question keeps failing, the caller rejects the interpretation, or the caller asks for staff. |
| Offer keypad input | A short menu choice or a numeric field can move the call forward. Say what each key does or where to find the number. | The caller cannot use the keypad, enters an invalid choice again, or needs to provide a name, explanation or alphanumeric reference. |
| Forward to staff | A person can resolve ambiguity, handle an exception or help after an explicit request for staff. Use the most appropriate staffed destination the confirmed information supports. | The destination is closed, the call fails to connect or the wait reaches the desk’s limit. Offer the fallback the desk can actually fulfill. |
For the service request example, replay the question in shorter form if the caller may have missed it. If they heard the question but the number came through incomplete, offer a keypad step for a numeric reference. Provide a way to request staff at that step. Route invalid or empty keypad input to staff once the question’s recovery allowance is spent. Let an explicit request for staff skip the remaining attempts wherever the flow can detect that choice. A desk that uses alphanumeric references can still use a key to request an agent. Collecting only the digits of the reference would give the agent a partial identifier that could match the wrong request.
For a distinct keypad step on Twilio, set input="dtmf". A mixed dtmf speech step gives precedence to the first input Twilio detects. Test the mixed mode with interruptions and background speech if you intend to give the caller both options at once. Set an explicit action to process the result. Twilio defaults to the current document URL when action is omitted, which can replay the same prompt. By default, a no-input timeout continues to the next TwiML instruction. Set actionOnEmptyResult="true" if the same handler should receive empty results, or specify the next branch in the original TwiML. Twilio Voice Gather, action, actionOnEmptyResult and input
Carry the caller’s last confirmed intent into the next step
Store the confirmed task and the pending question independently. In the example, the task is to check an existing service request and the pending question is its reference number. A failed read of that number should leave the task available to the keypad branch and to staff. Record which turn or menu choice confirmed the task. Update it when the caller confirms a correction. If the caller rejects the current interpretation and the replacement is unclear, flag the prior confirmation as disputed and send the call to a general queue when needed.
When forwarding the call, make the confirmed task, unresolved question, methods already tried and transfer reason visible to staff. Keep identity verification independent of intent. A caller can confirm why they called while their account still requires verification. Prefer a reference to the call record for any supporting material staff need to inspect. The agent can start with the missing request number or offer a permitted lookup. For examples of carrying context into other support channels, see Pass Conversation Context From a Chatbot Into Twilio Flex and What an AI Assistant Should Pass to a Zendesk Agent.
Save the call state before attempting the transfer. Record when dialing or queueing starts and when staff accept the caller. Where you use Twilio <Dial>, its action callback reports the result after the dial attempt or dialed call ends. DialCallStatus distinguishes outcomes such as busy, no-answer and failed. Use the desk’s own agent acceptance signal when the destination can answer through voicemail or another menu. If staff are unavailable, offer an approved callback or another staffed channel where available. Keep that branch from returning to the assistant’s opening prompt. Twilio Voice Dial, action
Measure loops and hang-ups before tuning the limit
Log the question ID, prompt version, input mode, attempt number, result and next branch. Record when a transfer was offered, when it started and when staff accepted it. Use the inbound call’s end event and the last reached stage to tell where the call stopped. Keep provider disconnects, system-ended calls and unknown causes visible alongside callers who hung up.
| Measure | How to count it |
|---|---|
| Recovery loop rate | Among calls that reached a question, count the share that returned to it without progress after the allowed recovery attempts. Also track the distribution of attempts so you can see friction within the allowed limit. |
| Abandonment during input recovery | Among calls that entered recovery, count the share where the caller hung up during that stage before completing the step or entering a transfer. Break it down by question and input mode. |
| Abandonment while waiting for staff | Among calls that entered a staff queue or transfer attempt, count the share where the caller hung up while waiting before staff accepted. Track transfer failures and time to staff acceptance alongside it. |
Compare the routes using successful completion, correct routing and time to useful help. Review a sample of agent dispositions to see whether staff received the right intent and had to ask for information the caller already confirmed. A drop in transfers can coincide with more callers hanging up during retries. A clean keypad branch can also expose a staffing bottleneck if callers now make it to a queue that rarely answers.
Before changing the retry limit, test a silent caller, a wrong transcript, an unavailable keypad, a caller who corrects their earlier intent, a duplicate result, and a transfer that rings without reaching staff. Trace each test from the first failure through the last call event. The trace should show why the flow chose its next action and whether the caller reached a usable outcome.
Audit one phone workflow
Bring the script for a question callers repeat, an event trace with sensitive details removed, and the desk’s transfer rules. The AI workflow audit is free. Follow-on work is optional, and Insonl charges for the work you choose to commission. Request a free AI workflow audit
Sources
- Third-party documentation for speech and keypad collection, callback fields, input precedence and no-input behavior. Twilio Voice Gather
- Third-party documentation for dial callbacks and call outcomes. Twilio Voice Dial