Vapi notifications
# support
c
Hello, Is there a way to have Vapi send notifications to my email or Slack for specific parameters? We recently experienced a pipeline-error-eleven-labs-voice-disabled error that I happened to notice because I was looking at the call logs at the time. We were fortunate to have caught this early on, but I'd like to be more cognizant of this type of error in the future. I'm interested in knowing if I could set up some kind of notification system that alerts me when this type of call end reason is hit. Thanks
v
You can set up a Slack notification for specific call errors using Vapi Assistant Hooks. Add this to your assistant configuration to trigger a Slack alert when a call ends with the "pipeline-error-eleven-labs-voice-disabled" reason:
Copy code
json
{
  "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)
v
Message marked as helpful by @certified dirtiboi! 🎉
2 Views