corneliusschramm
03/06/2025, 8:25 PMtools
section does not allow me to speficy a tool call parameters
anymore? Seems like I need to do it through code now?
https://cdn.discordapp.com/attachments/1347304132679041144/1347304133614374922/Screenshot_2025-03-06_at_3.19.33_PM.png?ex=67cb5641&is=67ca04c1&hm=3e8a0f210931532305581b17d1ec6dcb3ff5c969b2e3bcc0f30ecc8622bf8547&Vapi Support Bot
03/06/2025, 8:27 PMToolCallFunction
has been replaced with the ToolCall
schema, which means you'll now need to specify tool call parameters through code. The new ToolCall
schema allows for more detailed specifications, including properties like name
, tool
, and toolBody
.
Here's a quick example of how you can specify parameters in the new format:
json
{
"toolCalls": [
{
"id": "call_DE6TZISulSwOuVKDFQHZSoiW",
"type": "function",
"function": {
"name": "find_customer",
"arguments": {
"first_name": "John",
"last_name": "Doe",
"phone_number": "1234567890"
}
}
}
]
}
This way, you can pass the required parameters like first_name
, last_name
, and phone_number
directly in the arguments
field. If you have any more questions or need further assistance, feel free to ask! 👍
Sources:
- [Changes in the New UI Update for the Tools Section](https://docs.vapi.ai/changelog/2025/1/22)
- [Specifying Tool Call Parameters in the New UI Update](https://docs.vapi.ai/changelog)Vapi Support Bot
03/06/2025, 8:37 PMcorneliusschramm
03/06/2025, 8:38 PMcheezymcsquibble
03/06/2025, 8:41 PMwisdom chris
03/06/2025, 9:17 PMcheezymcsquibble
03/06/2025, 9:20 PMcorneliusschramm
03/06/2025, 9:29 PMcorneliusschramm
03/06/2025, 9:30 PMhttps://api.vapi.ai/assistant/:id
curl -X PATCH https://api.vapi.ai/assistant/id \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{ ...}'
mrearthbound
03/07/2025, 6:22 AMmrearthbound
03/07/2025, 6:22 AMFire
03/07/2025, 9:22 AMDevAnonymous
03/07/2025, 9:26 AMDevAnonymous
03/07/2025, 9:29 AMlifeguru
03/07/2025, 9:32 AMDamian
03/07/2025, 12:55 PMAndrei
03/07/2025, 1:34 PMShubham Bajaj
03/07/2025, 2:09 PMShubham Bajaj
03/07/2025, 2:15 PMAndrei
03/07/2025, 2:49 PMAiza
03/07/2025, 2:53 PMAiza
03/07/2025, 2:56 PMShubham Bajaj
03/07/2025, 4:02 PMShubham Bajaj
03/07/2025, 4:10 PMjson
curl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer insert-your-token-here" \
-H "Content-Type: application/json" \
-d '{
"assistantId": "insert-your-assistant-id-here",
"assistantOverrides": {
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "insert-your-system-prompt-here"
}
],
"tools": [
{
"type": "function"
}
]
}
},
"phoneNumberId": "insert-your-phone-number-id-here",
"customer": {
"number": "insert-your-customer-number-here",
"numberE164CheckEnabled": false
}
}'
Andrei
03/11/2025, 8:48 AM