Curtis
03/25/2025, 11:30 PMVapi Support Bot
03/25/2025, 11:32 PMjson
voicemailDetection: {
provider: "twilio",
voicemailDetectionTypes: [
"machine_start",
"machine_end_beep",
"machine_end_silence",
"unknown",
"machine_end_other"
],
enabled: true,
machineDetectionTimeout: 15,
machineDetectionSpeechThreshold: 2500,
machineDetectionSpeechEndThreshold: 2050,
machineDetectionSilenceTimeout: 2000
}
2. **VAPI's Built-In Voicemail Tool**: This is an LLM-powered tool that listens for typical voicemail greetings:
json
{
...yourExistingSettings,
"model": {
"tools": [{ type: "voicemail" }]
}
}
For best results, you can combine both approaches!
## Troubleshooting Steps
1. **Adjust Timeout Values**: If your machineDetectionTimeout
is too low (e.g., 4 seconds), try increasing it to 15-30 seconds. According to [user discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342555558984814653), a longer timeout can be more reliable.Vapi Support Bot
03/25/2025, 11:32 PMmachineDetectionSpeechThreshold
and machineDetectionSpeechEndThreshold
to better detect when machine greetings finish.
3. **Adjust Wait Time**: Set startSpeakingPlan.waitSeconds
to 0.8 as suggested in [community discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336875140990111796).
4. **Use Custom Endpointing Rules**: Implement custom rules with a delay to fix timing issues:
javascript
startSpeakingPlan: {
customEndpointingRules: [
{
type: 'assistant',
regex: '.*voicemail.*', // Adjust based on your voicemail message
delayMs: 3000 // Adds a 3-second delay
}
]
}
5. **Check for Conflicting Settings**: Ensure that machineDetectionSilenceTimeout
isn't longer than your silenceTimeoutSeconds
, as this could prevent the agent from hanging up.
Is there anything specific about your configuration you'd like me to help with, or would you like more details on any of these troubleshooting steps?
Sources:
- [Voicemail Detection Methods](https://docs.vapi.ai/phone-calling/voice-mail-detection)
- [Discord Thread on Voicemail Detection](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342555558984814653)
- [Discord Thread on Wait Time Settings](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336875140990111796)
- [Discord Thread on Custom Endpointing Rules](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336548894896816222)Vapi Support Bot
03/26/2025, 12:21 AMShubham Bajaj
03/26/2025, 7:03 AMalampole
04/01/2025, 5:38 PMShubham Bajaj
04/01/2025, 8:40 PM