LLM Voicemail Implementation
# support
j
Where would I add the LLM voicemail to the vs code. This is the code I want to add { ...yourExistingSettings, "model": { "tools": [{ type: "voicemail" }] } }
v
@Jason To add the LLM voicemail tool to your existing settings in VS Code, you'll need to locate the configuration file where these settings are defined. This is typically a JSON file, such as
settings.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:
Copy code
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.
You can continue this conversation by mentioning me in the message.
s
@Jason Sorry for the late response. You have to make an
UPDATE
api request to add voicemail tool, to your assistant.
example
Copy code
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"
      }
    ]
  }
}'
Do let me know if you require further help.
Because of no response closing this ticket.
2 Views