Tiffany
03/31/2025, 4:14 PMVapi Support Bot
03/31/2025, 4:16 PMjson
{
"results": [
{
"toolCallId": "call_rJznuAqe8e6hEhTgnnq3NDX9",
"result": "Your result message here"
}
]
}
Notice that the toolCallId
needs to match exactly the ID sent by VAPI in the initial request. In your case, that would be call_rJznuAqe8e6hEhTgnnq3NDX9
from your error message.
Regarding the asynchronous behavior you mentioned, this is actually expected! When a tool is set to async: true
, VAPI [automatically sends back](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342336047589359618) a "tool_call_result" message with "Success," which can interfere with your custom response.
Here are some additional troubleshooting steps:
1. **Check Content-Type Header**: Make sure your webhook response has the Content-Type: application/json
header set correctly.
2. **Verify Webhook URL**: Double-check that the webhook URL in VAPI matches exactly with the one provided by n8n, without any typos or extra spaces.
3. **Check Server Logs**: Review your n8n logs to see if there are any errors or messages that could indicate what's going wrong.
4. **Test with a Simpler Scenario**: Try simplifying your n8n workflow to the bare minimum to test the connectivity.
5. **Check Case Sensitivity**: According to [user reports](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341204221826957432), VAPI webhook logs use snake_case while server logs use camelCase, which can cause issues.Vapi Support Bot
03/31/2025, 4:16 PMSahil
03/31/2025, 10:45 PMTiffany
04/01/2025, 12:18 AMSahil
04/01/2025, 10:05 PM