Ὧρος
05/01/2025, 5:20 AMVapi Support Bot
05/01/2025, 5:22 AMresults[] array containing toolCallId and result fields. Your plain text response needs to be formatted like this:
json
{
"results": [
{
"toolCallId": "X", // Use the actual toolCallId from the request
"result": "03:00 PM is available."
}
]
}
According to [Vapi's documentation](https://docs.vapi.ai/tools-calling), returning a response in the wrong format will be treated as an error.
Sources:
- [Vapi Tools Calling Documentation](https://docs.vapi.ai/tools-calling)
- [Discord Discussion on Tool Response Format](https://discord.com/channels/1211482211119796234/1342188078437236916)Chiranjeet Mishra
05/01/2025, 8:42 AMὯρος
05/01/2025, 6:56 PMὯρος
05/01/2025, 7:38 PMὯρος
05/01/2025, 7:41 PMὯρος
05/01/2025, 7:41 PMὯρος
05/01/2025, 7:41 PMVapi Support Bot
05/01/2025, 8:43 PM