Voicemail Detection Issue
# support
p
Hello, I’m having a problem with voicemail detection. I’ve tried different providers — Vapi, OpenAI, and others. In about 60–70% of cases, the voicemail is detected and left correctly. However, in the remaining cases, the agent detects the voicemail but hangs up after saying just a few words. I’ve tried changing various parameters in the voicemail detection tool, but it doesn’t seem to help. Does anyone have any potential solutions or ideas? https://cdn.discordapp.com/attachments/1425294154363306085/1425294154564636792/local-file-8847793341655084184.jpg?ex=68e7101f&is=68e5be9f&hm=89e09e1f532440c67e36d79ded342c5f938b64c53a305f3de6f7657e2882ea02&
v
Try increasing the
beepMaxAwaitSeconds
parameter
in your voicemail detection config to ensure the assistant waits long enough for the voicemail beep before speaking. Setting this too low can cause the message to be cut off after a few words. Use a conservative value like 25–30 seconds:
Copy code
json
"voicemailDetection": {
  "provider": "vapi",
  "backoffPlan": { "maxRetries": 5, "startAtSeconds": 2, "frequencySeconds": 2.5 },
  "beepMaxAwaitSeconds": 30
}
This adjustment should help prevent early hangups when leaving voicemail messages. Source: - [Voicemail Detection Documentation](https://docs.vapi.ai/calls/voicemail-detection)
v
Hey, I’ve handled similar voicemail detection issues with Vapi and other LLM setups. This usually happens when silence thresholds or end-of-speech timers are too strict, causing early hang-ups. I can help fine-tune those parameters or set up a fallback logic to ensure full messages are left every time. Could you share whether you’re using the provider’s built-in detection or a custom script for it? @prum8439
c
Hi prum8439, To configure voicemail detection for your assistant using Vapi, you can utilize the
VapiVoicemailDetectionPlan
. Here's a simple setup guide: 1. **Choose your detection provider**: Default is Vapi, but you can also use Google, OpenAI, or Twilio. 2. **Configure detection parameters**: - `type`: Choose between
audio
(default) and
transcript
. - `backoffPlan`: - `startAtSeconds`: Initial wait time before detecting voicemail. - `frequencySeconds`: How often to check for voicemail. - `maxRetries`: Maximum detection attempts. - `beepMaxAwaitSeconds`: Max wait time for a voicemail beep before speaking the message. 3. **Integration in your assistant's configuration**:
Copy code
json
   {
     "voicemailDetection": {
       "provider": "vapi",
       "backoffPlan": {
         "startAtSeconds": 2,
         "frequencySeconds": 2.5,
         "maxRetries": 5
       },
       "beepMaxAwaitSeconds": 12
     }
   }
For more advanced configurations or troubleshooting, refer to the [Voicemail Detection documentation](https://docs.vapi.ai/calls/voicemail-detection). If you prefer the assistant-driven approach, consider exploring the [voicemail tool](https://docs.vapi.ai/tools/voicemail-tool) for maximum flexibility and cost efficiency.
3 Views