azaylair
04/13/2025, 4:33 PMVapi Support Bot
04/13/2025, 4:35 PMjson
{
"results": [
{
"toolCallId": "X",
"result": "Y"
}
]
}
In your screenshot, I notice your response has a results
object rather than a results
array. The correct format should have results
as an array containing objects with toolCallId
and result
fields.
### ToolCallId Matching
Another critical aspect is ensuring the toolCallId
in your response exactly matches the one sent by Vapi in the initial request. According to [documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775), if there's a mismatch, Vapi won't be able to associate the response with the correct tool call.
I notice in your screenshot that the toolCallId
appears to be truncated ("dcfbb703-76fb-47f9-98ed-b218410..."). Make sure you're using the complete toolCallId
without any modifications.
### Debugging Steps
Here are some steps you can take to debug this issue:
1. **Check JSON Format**: Ensure your webhook response follows the exact format expected by Vapi, with results
as an array.
2. **Verify Content-Type**: Make sure the content-type of your response is set to application/json
.Vapi Support Bot
04/13/2025, 4:35 PMtoolCallId
from the initial request.
4. **Inspect Logs**: Look at your Vapi logs to see if there are any error messages related to the webhook response.
5. **Test with a Simplified Response**: Try a simplified response format to see if that works:
json
{
"results": [
{
"toolCallId": "dcfbb703-76fb-47f9-98ed-b218410...",
"result": "The merchant name for that transaction"
}
]
}
Would you like me to help you troubleshoot any specific part of this issue further?
Sources:
- [https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339900285727805513](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339900285727805513)
- [https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775)azaylair
04/13/2025, 4:46 PMVapi Support Bot
04/13/2025, 4:46 PMKyle Brunker
04/14/2025, 1:07 PM