Jessica
11/21/2025, 12:49 AMVapi Support Bot
11/21/2025, 12:50 AMfilters array from your call.ending hook so it triggers for all call end reasons. For example:
json
{
"hooks": [{
"on": "call.ending",
"do": [{
"type": "tool",
"tool": {
"type": "function",
"function": {
"name": "report_error",
"parameters": {
"type": "object",
"properties": {
"text": {
"type": "string",
"value": "A call error occurred."
}
}
},
"description": "Reports a call error to Slack."
},
"async": false,
"server": {
"url": "<your-serverless-function-url>"
}
}
}]
}]
}
This will send a Slack notification for all call endings, not just specific errors.
For more details, see the [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks).
Source:
- [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)Chiranjeet Mishra
11/21/2025, 2:22 AMendedReason codes available in your call logs. Each code indicates a specific reason, such as assistant-related issues, pipeline errors, connectivity problems, or call forwarding events. You can view the complete list and their explanations in the [call ended reasons document](https://docs.vapi.ai/calls/call-ended-reason).
If you're specifically looking for how this affects your analytics or custom call handling, the changelog also lists updates on tracking calls ended due to hook actions, which capture automated handling outcomes. Let me know if you need any more information on a specific code or process.Jessica
11/21/2025, 9:08 PMChiranjeet Mishra
11/25/2025, 8:58 PM"pipeline-error"
- "providerfault"
- "vapi-fault"Chiranjeet Mishra
11/25/2025, 8:59 PM{
"hooks": [
{
"on": "call.ending",
"filters": [
{
"type": "oneOf",
"key": "call.endedReason",
"oneOf": [
"pipeline-error",
"providerfault",
"vapi-fault"
]
}
],
"do": [
{
"type": "tool",
"tool": {
"type": "apiRequest",
"method": "POST",
"url": "https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK",
"body": {
"type": "object",
"properties": {
"text": {
"type": "string",
"value": "🚨 Call Error: {{call.endedReason}} for call {{call.id}}"
}
}
}
}
}
]
}
]
}Jessica
11/30/2025, 6:49 PMChiranjeet Mishra
12/03/2025, 1:08 AM