- Detect voicemail systems automatically.
- Control how your agent responds.
- End calls cleanly after voicemail handling.
Setup
ImportVoiceMailDetector, attach it to your agent’s Pipeline, and register a callback that defines how voicemail should be handled. The runtime runs the detector and fires your callback when the session is started with zrt.invoke().
To set up outbound calling and routing rules, check out Handling Calls.
How it works
The detector buffers the opening speech on an outbound call forduration seconds, then
asks the llm to classify the transcript as a human or a voicemail greeting (a one-word
yes/no). If it’s classified as voicemail, your callback runs so you can leave a message or
hang up cleanly.
Parameters
What’s Next
DTMF Events
Capture caller key presses.
Call Transfer
Move a live call to another number.
References
- Python
SDK Reference
Voice Mail Detector
VMD in the Python API reference.