Skip to content

Commit ea72734

Browse files
authored
make transient more clear (#285)
1 parent 03776b0 commit ea72734

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

fern/calls/call-outbound.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: Outbound Calling
3+
subtitle: Learn how to send outbound calls from Vapi.
4+
slug: calls/outbound-calling
5+
---
6+
17
## Introduction to Outbound Calling
28

39
Vapi’s outbound calling API lets you programmatically initiate single or batch calls to any phone number. You can schedule calls for specific dates and times, ideal for time-sensitive communications. Easily integrate outbound calling into your app for appointment reminders, automated surveys, and call campaigns.

fern/server-url/events.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,15 @@ For inbound phone calls, you may want to specify the assistant based on the call
101101
}
102102
```
103103

104-
Your server should respond with a JSON object containing the assistant, like so:
104+
If you want to use an existing saved assistant instead of creating a transient assistant for each request, you can respond with the assistant's ID:
105+
106+
```json
107+
{
108+
"assistantId": "your-saved-assistant-id"
109+
}
110+
```
111+
112+
Alternatively, if you prefer to define a transient assistant dynamically, your server should respond with the [assistant](/api-reference/webhooks/server-message#response.body.messageResponse.Server%20Message%20Response%20Assistant%20Request.assistant) object directly:
105113

106114
```json
107115
{
@@ -121,6 +129,8 @@ Your server should respond with a JSON object containing the assistant, like so:
121129
}
122130
```
123131

132+
133+
124134
If you'd like to play an error message instead, you can respond with:
125135

126136
```json

0 commit comments

Comments
 (0)