When making outbound calls, your phone agent may encounter voicemails or IVR (Interactive Voice Response) systems. You can configure your agent to automatically detect these and take appropriate action.Documentation Index
Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
Use this file to discover all available pages before exploring further.

Voicemail detection
The system runs voicemail detection continuously within a timeout window. You can choose what happens when a voicemail is detected:- Hang up — disconnect immediately, even if the voicemail greeting is still playing.
- Leave a message — wait for the agent’s turn to speak, then deliver a message. Supports dynamic variables.
Enable voicemail detection
Choose voicemail behavior
- Hang up if reaching voicemail: The agent disconnects when it detects a voicemail.
- Leave a message if reaching voicemail: The agent waits for its turn to speak, then leaves a message. Choose between:
- Prompt: A dynamically generated message based on instructions you provide, such as
Summarize the call and ask the user to call back. - Static Sentence: A fixed message, such as
Hey {{user_name}}, sorry we could not reach you directly. Please give us a callback if you can.
- Prompt: A dynamically generated message based on instructions you provide, such as
IVR hangup
When enabled, the system detects if your outbound call reaches an IVR (automated phone menu) system and automatically hangs up the call.FAQ
The voicemail isn't being hung up even though hang up is enabled. What's wrong?
The voicemail isn't being hung up even though hang up is enabled. What's wrong?
Will voicemail or IVR detection run for the entire call?
Will voicemail or IVR detection run for the entire call?
Is there a latency impact when using voicemail detection?
Is there a latency impact when using voicemail detection?
How can I tell if a call reached a voicemail or IVR?
How can I tell if a call reached a voicemail or IVR?
voicemail_reached. If IVR is detected, the disconnection reason will be ivr_reached.If the voicemail greeting keeps playing, will the agent hang up?
If the voicemail greeting keeps playing, will the agent hang up?
If the voicemail greeting keeps playing, will the agent leave a message?
If the voicemail greeting keeps playing, will the agent leave a message?