Will Santiago
10/01/2025, 6:47 PMVapi Support Bot
10/01/2025, 6:49 PMcall.ending with a filter for call.endedReason set to "pipeline-error", and have the assistant say a maintenance message or end the call:
json
{
"hooks": [{
"on": "call.ending",
"filters": [{ "type": "oneOf", "key": "call.endedReason", "oneOf": ["pipeline-error"] }],
"do": [
{ "type": "say", "exact": "Sorry, our scheduling system is currently under maintenance. Please try again later." },
{ "type": "tool", "tool": { "type": "endCall" } }
]
}]
}
This will ensure users are notified if your tool/webhook is unavailable, providing a better experience.
Source:
- [Assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)Will Santiago
10/01/2025, 7:52 PMChiranjeet Mishra
10/07/2025, 4:16 PM