You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/assistants/assistant-hooks.mdx
+91-1Lines changed: 91 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -157,13 +157,103 @@ Handle customer speech interruptions in a similar way:
157
157
}
158
158
```
159
159
160
+
<Note>
161
+
Use `"oneOf": ["pipeline-error"]` as a catch-all filter for any pipeline-related error reason.
162
+
</Note>
163
+
160
164
## Common use cases
161
165
162
166
- Transfer to a human agent on errors
163
167
- Route to a fallback system if the assistant fails
164
168
- Handle customer or assistant interruptions gracefully
165
169
- Log errors or events for monitoring
166
170
171
+
## Slack Webhook on Call Failure
172
+
173
+
You can set up automatic Slack notifications when calls fail by combining assistant hooks with Slack webhooks. This is useful for monitoring call quality and getting immediate alerts when issues occur.
174
+
175
+
### Step 1: Generate a Slack webhook
176
+
177
+
Follow the [Slack webhook documentation](https://api.slack.com/messaging/webhooks) to create an incoming webhook:
178
+
179
+
1. Create a Slack app (if you don't have one already)
180
+
2. Enable incoming webhooks in your app settings
181
+
3. Create an incoming webhook for your desired channel
182
+
4. Copy the webhook URL (it will look like `https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`)
183
+
184
+
### Step 2: Create a serverless function
185
+
186
+
Set up a serverless function (using a service like [val.town](https://val.town)) to convert Vapi tool call requests into Slack messages:
0 commit comments