Ayush
03/07/2025, 5:36 PMVapi Support Bot
03/07/2025, 5:37 PMToolCallFunction
to the new ToolCall
schema. This means you'll need to update your code to use the new structure:
json
{
"function": {
"id": "your_tool_id",
"function": { "name": "yourFunctionName", "parameters": { "param1": "string" } }
}
}
Instead of the previous tool
and toolBody
properties, you now need to use the function
property with id
and function
details [(source)](https://docs.vapi.ai/changelog/2025/1/29).
### Creating Tool Calls for Appointments
For appointment booking functionality:
1. Set up your server URLs to receive tool call requests for appointment interactions [(source)](https://docs.vapi.ai/examples/outbound-sales)
2. Define your function calls - For example, create a bookAppointment
function with the necessary parameters like date, time, and user info
3. Format your responses correctly - When your server responds to VAPI's tool calls, use this JSON structure:
json
{
"results": [
{
"toolCallId": "call_VaJOd8ZeZgWCEHDYomyCPfwN",
"result": "Appointment booked successfully for March 10th at 2 PM."
}
]
}
4. Handle errors properly - Make sure your toolCallId
dynamically matches VAPI's initial request to avoid errors
### Tool Call Integration in Workflows
You can now incorporate ToolCall
nodes directly into workflow block steps, making it easier to automate appointment booking processes [(source)](https://docs.vapi.ai/changelog/2025/1/22).
I hope this helps! Let me know if you need any clarification on implementing these changes for your appointment booking system.
Sources:Vapi Support Bot
03/07/2025, 5:37 PMPauliesBoutique
03/07/2025, 6:39 PMWill Monteiro
03/07/2025, 8:37 PMLoler2006
03/07/2025, 10:54 PMLuminous
03/07/2025, 11:20 PMBrave
03/07/2025, 11:28 PMtk25
03/08/2025, 5:22 AMkishan
03/10/2025, 6:48 AMShubham Bajaj
03/10/2025, 6:41 PMShubham Bajaj
03/10/2025, 6:42 PMkishan
03/11/2025, 4:05 AM