certified dirtiboi
10/24/2025, 2:33 PMVapi Support Bot
10/24/2025, 2:35 PMjson
{
"hooks": [{
"on": "call.ending",
"filters": [{
"type": "oneOf",
"key": "call.endedReason",
"oneOf": ["pipeline-error-eleven-labs-voice-disabled"]
}],
"do": [{
"type": "tool",
"tool": {
"type": "function",
"function": {
"name": "report_error",
"parameters": {
"type": "object",
"properties": {
"text": {
"type": "string",
"value": "ElevenLabs voice pipeline error occurred."
}
}
},
"description": "Reports a call error to Slack."
},
"async": false,
"server": {
"url": "YOUR_SERVERLESS_FUNCTION_URL"
}
}
}]
}]
}
Replace YOUR_SERVERLESS_FUNCTION_URL with your endpoint that posts to Slack. This will send a real-time notification whenever that error occurs.
For more details, see the Assistant Hooks documentation in the Vapi docs.
Source:
- [Assistant hooks](https://docs.vapi.ai/assistants/assistant-hooks)Vapi Support Bot
10/24/2025, 2:56 PM