James
04/12/2025, 3:58 PMVapi Support Bot
04/12/2025, 4:00 PMjson
{
"results": [
{
"toolCallId": "X",
"result": "Y"
}
]
}
Here are some key points to check:
1. **Correct Response Format**: Make sure your webhook response strictly follows the format above. The toolCallId
in your response must match the ID that was sent by Vapi in the initial request.
2. **Content-Type Header**: Ensure the Content-Type
header of your webhook response is set to application/json
.
3. **Check Webhook Logs**: When examining your webhook logs, look for:
- The exact structure of the response
- Any error messages
- Whether the toolCallId
matches between request and response
4. **Common Issues to Check**:
- Incorrect JSON formatting
- Missing or mismatched toolCallId
- Data serialization problems
- String formatting issues (ensure proper use of quotes)
5. **Troubleshooting Steps**:
- Use a tool like [jsonlint.com](https://jsonlint.com/) to validate your JSON
- Test your webhook manually using Postman or cURL
- Implement logging on both sending and receiving ends
- Check for any casing inconsistencies (snake_case vs. camelCase)
If you're still having trouble, could you share more details about the exact structure of your webhook response from make.com? That would help me provide more specific guidance.
Sources:
- [Webhook Response Structure](https://docs.vapi.ai/tools/custom-tools)Vapi Support Bot
04/12/2025, 4:00 PMVapi Support Bot
04/12/2025, 5:12 PMVapi Support Bot
04/12/2025, 5:12 PMJames
04/12/2025, 5:14 PMVapi Support Bot
04/12/2025, 5:15 PMjson
{
"results": [
{
"toolCallId": "X",
"result": "Y"
}
]
}
Where "X" should be the exact toolCallId from the original request. If the IDs don't match, Vapi won't be able to associate your response with the correct tool call.
In make.com, you would need to extract the toolCallId from the incoming webhook request and then include that same ID in your response. This is typically done by parsing the incoming JSON and then using that parsed value in your response template.
Is there anything else you'd like to know about handling webhook responses in Vapi?
Sources:
- [Webhook Response Structure](https://docs.vapi.ai/tools/custom-tools)
- [Webhook Response Format](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339900285727805513)
- [Troubleshooting Webhook Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321)Kyle Brunker
04/12/2025, 5:25 PMJames
04/12/2025, 5:39 PMVapi Support Bot
04/12/2025, 6:16 PM