blank-aquamarine•4mo ago
Drafting Voice mail message and enable voice mail detection from API for assistant
I want to dynamically enable the voice mail detection and then allow a tool to generate the voice mail message. Not getting any option to achieve this?
7 Replies
blank-aquamarineOP•4mo ago
@Duckie how i can do this
@Vapi_Talent how i can enable voice mail detection from api
To dynamically enable voicemail detection and generate a message via the API, you can use the
voicemailDetection
configuration with a dynamic variable:
Update this configuration using a PATCH request to https://api.vapi.ai/assistant/{assistant-id}
.
Sources:
- Discord Channel
- Discord Channel
- Discord Channel⤵️ Mention @Vapi Support Bot for follow-ups 🐥
To dynamically enable voicemail detection and set a custom message, add the
voicemailDetection
configuration in your API request to the /call
endpoint:
This enables Twilio's voicemail detection and sets a custom message to be played when voicemail is detected.
Sources:
- Discord discussion on voicemail detection
- Discord discussion on voicemail message configuration
- Discord discussion on API request structuremetropolitan-bronze•4mo ago
Why would you have the tool generate the message when you can just create the message you want to say?
Akso trying to have a tool generate a voicemail message does not make much sense at all.
boiling-coffee•4mo ago
Configure the voicemailDetection settings in your assistant’s configuration and set the voicemailMessage property, then ensure the VoicemailTool is included in your assistant’s tools.
blank-aquamarineOP•4mo ago
I am now generating dynamic message and pushing that into assistant so that my voice mail message depends on customers
boiling-coffee•4mo ago
You can use dynamic variables in Vapi to personalize voicemail messages by passing customer-specific data via assistantOverrides when initiating a call.