When you make an outbound call, you don’t want the agent to leave a long monologue on a voicemail. Nixflex detects voicemail systems automatically and ends the call early — saving you money and avoiding awkward messages.Documentation Index
Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
Use this file to discover all available pages before exploring further.
How detection works
Two layers run in parallel from the moment the outbound call connects:Layer 1 — Twilio AMD
Twilio’s Answering Machine Detection listens to the first few seconds. It distinguishes a human “Hello?” from a long automated voicemail greeting based on speech patterns and timing.
Layer 2 — Deepgram pattern matching
The engine runs the live transcript against a library of 36+ voicemail phrases in English, French, Spanish, German, and Arabic — “please leave a message”, “you have reached”, “is not available right now”, etc.
Default behaviour
When voicemail is detected:- Engine immediately ends the call
- The agent does not leave a message
- The call record gets
voicemail_detected: trueandended_reason: voicemail - Webhook fires with
event: call.ended(so you can react in your own system)
Leaving a voicemail message
If you do want to leave a recorded message when voicemail is detected, configure avoicemail_message on the agent:
voicemail_message is empty, the engine just hangs up.
Per-call override
Override the voicemail behaviour on a single outbound call:voicemail_action can be:
hangup— default; end call immediately on voicemailleave_message— speak the message then hang upignore— pretend voicemail wasn’t detected, let the agent talk (rarely useful)
Reliability
Voicemail detection isn’t 100% perfect — no system is. Real-world reliability:| Outcome | Frequency |
|---|---|
| Correctly detects voicemail | ~94% |
| Misses voicemail (agent talks to machine) | ~3% |
| False positive (hangs up on human) | ~3% |