rpv
05/21/2025, 7:24 PMVapi
05/22/2025, 12:52 AMrpv
05/22/2025, 12:27 PMcall_4jRGUjRFivxyf75J3Uu2eoBh
**Timestamp**: 2025-05-21 17:37:39.342 (Started At) - 2025-05-21 17:37:41.772 (Finished At)
**Expected Response**: The AI agent should have received the error message I sent back:
json
{
"results": [
{
"toolCallId": "call_4jRGUjRFivxyf75J3Uu2eoBh",
"result": "ERROR: Missing required parameters: Email. Please provide all required information to find available appointment times."
}
]
}
**Actual Response**: The AI agent received an empty response and didn't acknowledge the error at all. In my webhook logs, I can see that I correctly sent the 400 status code with the error message above, but the AI continued as if nothing happened.
The issue seems to be that when I return non-200 status codes, the error response body isn't being forwarded to the AI agent properly.Vapi
05/23/2025, 12:26 AMrpv
05/23/2025, 12:28 PMcall_4jRGUjRFivxyf75J3Uu2eoBh
- __Vapi Call ID__: 77c764ef-deb5-481b-a8b0-646a1fc2a730
This is the call where the AI was missing the Email
parameter despite strict: true
validation, and where the error response wasn't reaching the AI.Vapi Support Bot
05/23/2025, 12:29 PM200
status code from your webhook—even for errors. Place your error details in the response body, like this:
json
{
"results": [
{
"toolCallId": "call_abc123",
"result": "ERROR: Missing required parameters: Email. Please provide all required information to find available appointment times."
}
]
}
Non-200 status codes will cause Vapi to ignore the response body and not forward the error to the agent.
Sources:
- [Vapi Server Authentication Documentation](https://docs.vapi.ai/server-url/server-authentication)
- [Vapi Webhooks Server Message API Reference](https://docs.vapi.ai/api-reference/webhooks/server-message)Vapi Support Bot
05/23/2025, 12:55 PMVapi
05/24/2025, 3:35 AMrpv
05/28/2025, 3:04 PMVapi Support Bot
05/28/2025, 3:04 PMVapi Support Bot
05/28/2025, 3:10 PMVapi
05/29/2025, 1:38 AM