Skip to main content
Voice Mail Detection automatically detects when outbound calls are routed to voicemail and triggers a callback so your agent can leave a message or end the call, preventing the agent from speaking or waiting unnecessarily. Voice Mail Detection lets you:
  • Detect voicemail systems automatically.
  • Control how your agent responds.
  • End calls cleanly after voicemail handling.

Setup

Import VoiceMailDetector, 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 for duration 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

SDK Reference

Voice Mail Detector

VMD in the Python API reference.