How to hang up when it gets voicemail
# support
j
How to have vapi caller hang up for voicemail so it doesnt waste money.
v
@Jay Storm To ensure that your VAPI caller hangs up when reaching a voicemail system, you can implement logic in your voice application to detect voicemail. Most voice APIs provide a way to detect if a call has been answered by a human or a machine. This feature is often referred to as "Answering Machine Detection" (AMD). Once AMD indicates that a voicemail system has answered the call, you can program your application to hang up immediately. This will prevent the call from continuing and thus save on costs associated with longer call durations. Here's a general outline of the steps you might take: 1. Enable AMD in your voice application settings. 2. Make a call using your VAPI-enabled application. 3. Check the result of the AMD. 4. If the result indicates that the call was answered by a machine, hang up the call. Please note that the exact implementation details will depend on the capabilities and configuration options of your specific voice API provider. If you need more detailed instructions or assistance with the code, please let me know, and I can provide further guidance.
You can continue this conversation by mentioning me in the message.
s
j
Ok where do you put it in the api?
s
In Your assistant config, you have to make the change. check https://docs.vapi.ai/api-reference/assistants/update-assistant
j
Got it, thank you!!
a
@Shubham Bajaj, If we implement this, will Twilio detect the call as an answering machine or voicemail and automatically terminate it, thereby preventing any connection to the Vapi bot? and since the call is not sent to Vapi, no Vapi / Bot charges will be incurred here, correct?
s
No call first will be sent to Vapi then uses twilio voice mail detection. so you will be charged for both.
24 Views