devmacmuriithi
04/10/2025, 6:16 AMVapi Support Bot
04/10/2025, 6:18 AMtool-call-result
messages in your VAPI Web SDK implementation.
I'm unable to provide specific information about your assistant ID, but I can definitely help troubleshoot why you're not receiving tool-call-result
messages despite your tools executing correctly.
Based on the information I found, here are several potential causes and solutions:
### 1. Check Your Tool Response Format
The most common issue is incorrect formatting of the tool response. The server must respond with a specific JSON format:
json
{
"results": [
{
"toolCallId": "<your-tool-call-id>",
"result": "Success" // Or any success message
}
]
}
According to [documentation](https://docs.vapi.ai/tools-calling), the result
field must be a single-line string without any line breaks. If you're returning JSON data, it needs to be stringified.
### 2. Verify the toolCallId Match
Make sure the toolCallId
in your response exactly matches the one sent by VAPI in the initial request. A common mistake is using the tool ID instead of the tool call ID, which prevents VAPI from associating the response with the correct tool call.
### 3. Check Tool Configuration (Synchronous vs. Asynchronous)
Ensure your tool is set to synchronous
instead of async
. According to [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729), if the tool call is set to asynchronous, the client might not receive the expected tool-call-result
messages.
### 4. Content Type Headers
Verify that the content-type of your server response is set to application/json
.
### 5. Server-Side Errors
Check your server logs for any errors that might be preventing the response from being sent back to VAPI. Status code 400 errors can prevent tool call results from being sent to the client.
### 6. Network IssuesVapi Support Bot
04/10/2025, 6:18 AMdevmacmuriithi
04/10/2025, 6:53 PMdevmacmuriithi
04/11/2025, 8:16 AMKings Big
04/11/2025, 3:27 PMKings Big
04/11/2025, 3:28 PMdevmacmuriithi
04/11/2025, 5:24 PMKings Big
04/13/2025, 8:54 PMKings Big
04/13/2025, 8:55 PMKings Big
04/14/2025, 1:18 AMdevmacmuriithi
04/14/2025, 7:50 PMdevmacmuriithi
04/14/2025, 7:55 PMdevmacmuriithi
04/15/2025, 7:24 PMKings Big
04/17/2025, 8:02 PM