Is it possible to set up any kind of alerting on t...
# support
g
I've set up assistant-hooks to log call failures, but is there any way to receive any kind of alerts from vapi if the assistant-request fails etc? (https://docs.vapi.ai/assistants/assistant-hooks#slack-webhook-on-call-failure)
k
You can receive alerts from Vapi on assistant-request failures by setting up an
assistant-hook
with a webhook like, Slack that triggers on events like
"assistant.request-failed"
or
"pipeline-error"
, and using a serverless relay to forward those alerts.. https://docs.vapi.ai/assistants/assistant-hooks https://docs.vapi.ai/server-url
g
@Kings_big💫 But if I'm using
assistant-request
to build the
assistant
response, then I won't have been able to set the
hook
for the failing
assistant-request
at that stage.
Hence, why I was wondering, if it's possible to set up an alert or hook on the organization level etc
k
Vapi doesn’t support organization-level hooks for assistant-request failures, you’ll use assistant-level hooks like assistant.request-failed or pipeline-error and forward them to your alerting system via a serverless relay..
g
Okay, so just to understand, if one is building assistants dynamically with the
assistant-request
server event/webhook, it will create a
assistant.request-failed
even on Vapi, but there's no way to actually receive that response?
k
Yes, Vapi does emit assistant.request-failed events when dynamically building assistants via assistant-request, but there's no way to receive those at the organization level, only assistant-level hooks can capture them..
g
RIght, but that would require an "assistant" to be already created in the first place in Vapi?
c
Yes, even with dynamic assistant-request, a valid assistant must still be returned otherwise vapi emits failure events, which can only be handled via assistant-level hooks..
2 Views