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
- Added chat/session webhook note in chat and session page.
- Added a redirect for chat to handle google search results
- Added holdmusic url in warm transfer docs
"message": "Could not transfer your call, goodbye.",
@@ -465,6 +468,7 @@ Here is a full example of a `transferCall` payload using the experimental warm t
465
468
**Notes:**
466
469
467
470
- In all warm transfer modes, the `{{transcript}}` variable contains the full transcript of the call and can be used within the `summaryPlan`.
471
+
- The `holdAudioUrl` property (available only in `warm-transfer-experimental` mode) allows you to specify a custom MP3 file URL that will be played to the customer while they are on hold during the transfer. If not provided, the default hold audio will be used.
468
472
- The `voicemailDetectionType` parameter allows you to optimize the detection method based on your needs:
469
473
- Use `"transcript"` for the fastest transfer processing with lowest latency
470
474
- Use `"audio"` (default) for comprehensive machine detection including beep detection and other audio cues
Copy file name to clipboardExpand all lines: fern/chat/quickstart.mdx
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,6 +318,18 @@ We'll create a customer support chat for "TechFlow", a software company that wan
318
318
- Server webhook events (status updates, end-of-call reports, etc.) are not supported
319
319
</Note>
320
320
321
+
## Webhook Support
322
+
323
+
<Note>
324
+
The chat API supports the following webhook events through server messaging:
325
+
-**`chat.created`** - Triggered when a new chat conversation is initiated
326
+
-**`chat.deleted`** - Triggered when a chat conversation is deleted
327
+
328
+
To receive these webhooks, go to your Assistant page in the Dashboard and navigate to "Server Messaging" and select the events you want to receive.
329
+
330
+
These webhooks are useful for tracking conversation analytics, maintaining conversation history in your own database, and triggering follow-up actions.
Copy file name to clipboardExpand all lines: fern/chat/session-management.mdx
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,11 @@ Create a persistent session that groups multiple chats.
132
132
</Step>
133
133
</Steps>
134
134
135
+
<Note>
136
+
- Sessions expire automatically after 24 hours by default. After expiration, you'll need to create a new session to continue conversations.
137
+
- Web chat widget and SMS conversations automatically manage session creation and expiration. You don't need to manually create or manage sessions when using these channels.
138
+
</Note>
139
+
135
140
Here's a TypeScript implementation of the session manager:
136
141
137
142
```typescript title="session-manager.ts"
@@ -234,6 +239,21 @@ await sendToAssistant("billing_agent", "Can you help with this?");
234
239
235
240
---
236
241
242
+
## Webhook Support
243
+
244
+
<Note>
245
+
Sessions support the following webhook events through server messaging:
246
+
-**`session.created`** - Triggered when a new session is created
247
+
-**`session.updated`** - Triggered when a session is updated
248
+
-**`session.deleted`** - Triggered when a session is deleted
249
+
250
+
To receive these webhooks, go to your Assistant page in the Dashboard and navigate to "Server Messaging" and select the events you want to receive.
251
+
252
+
These webhooks are useful for tracking session lifecycle, managing session state in your own database, and triggering workflows based on session changes.
253
+
</Note>
254
+
255
+
---
256
+
237
257
## Next Steps
238
258
239
259
***[Streaming responses](/chat/streaming)** - Add real-time responses to session-managed chats
0 commit comments