Jason
12/26/2024, 8:07 PMVapi
12/26/2024, 8:09 PMsettings.json or a similar file that is used to configure your Voice API or assistant.
Here's how you can add the voicemail tool to your existing settings:
1. Open the configuration file in VS Code.
2. Locate the section of the JSON where your model settings are defined.
3. Add the voicemail tool to the tools array within the model object.
Your updated settings should look something like this:
json
{
...yourExistingSettings,
"model": {
...existingModelSettings,
"tools": [
...existingTools,
{ "type": "voicemail" }
]
}
}
Make sure to replace ...yourExistingSettings and ...existingModelSettings with the actual settings you have, and ...existingTools with any existing tools already defined in your configuration.
If you're unsure about the exact location or structure of your configuration file, or if you need assistance with the syntax, please ask support for more info on this.Vapi
12/26/2024, 8:09 PMShubham Bajaj
01/06/2025, 6:55 AMUPDATE api request to add voicemail tool, to your assistant.
example
curl -X PATCH https://api.vapi.ai/assistant/insert-your-assistant-id-here \
-H "Authorization: Bearer insert-your-key-here" \
-H "Content-Type: application/json" \
-d '{
"model": {
"provider": "openai",
"tools": [
{
"type": "voicemail"
}
]
}
}'Shubham Bajaj
01/06/2025, 6:56 AMShubham Bajaj
01/11/2025, 4:48 PM