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/call-forwarding.mdx
+91-31Lines changed: 91 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@ title: Call Forwarding
3
3
slug: call-forwarding
4
4
---
5
5
6
-
7
6
Vapi's call forwarding functionality allows you to redirect calls to different phone numbers based on specific conditions using tools. This guide explains how to set up and use the `transferCall` function for call forwarding.
8
7
9
8
## Key Concepts
@@ -53,17 +52,11 @@ The `transferCall` tool includes a list of destinations and corresponding messag
"content": "Please provide a summary of the call."
308
+
},
309
+
{
310
+
"role": "user",
311
+
"content": "Here is the transcript:\n\n{{transcript}}\n\n"
312
+
}
313
+
]
314
+
}
315
+
}
316
+
```
317
+
318
+
#### 5. Warm Transfer with TwiML
263
319
264
320
In this mode, Vapi executes TwiML instructions on the destination call leg before connecting the destination number.
265
321
266
-
***Configuration:**
267
-
* Set the `mode` to `"warm-transfer-with-twiml"`.
268
-
* Provide the TwiML instructions in the `twiml` property.
269
-
* Supports only `Play`, `Say`, `Gather`, `Hangup`, and `Pause` verbs.
270
-
* Maximum TwiML length is 4096 characters.
322
+
-**Configuration:**
271
323
272
-
***Example:**
324
+
- Set the `mode` to `"warm-transfer-with-twiml"`.
325
+
- Provide the TwiML instructions in the `twiml` property.
326
+
- Supports only `Play`, `Say`, `Gather`, and `Pause` verbs.
327
+
- Maximum TwiML length is 4096 characters.
328
+
- TwiML must be provided as a single-line string without line breaks or tabs, and must be a valid XML string. For example: `<Say>Hello</Say>` is valid, but `<Say>Hello\n</Say>` is not.
329
+
330
+
-**Example:**
273
331
274
332
```json
275
333
"transferPlan": {
@@ -278,7 +336,6 @@ In this mode, Vapi executes TwiML instructions on the destination call leg befor
278
336
}
279
337
```
280
338
281
-
282
339
Here is a full example of a `transferCall` payload using the warm transfer with TwiML mode:
283
340
284
341
```json
@@ -305,4 +362,7 @@ Here is a full example of a `transferCall` payload using the warm transfer with
305
362
}
306
363
```
307
364
308
-
**Note:** In all warm transfer modes, the `{{transcript}}` variable contains the full transcript of the call and can be used within the `summaryPlan`.
365
+
**Notes:**
366
+
367
+
- In all warm transfer modes, the `{{transcript}}` variable contains the full transcript of the call and can be used within the `summaryPlan`.
368
+
- For more details about transfer plans and configuration options, please refer to the [transferCall API documentation](https://docs.vapi.ai/api-reference/tools/create#request.body.transferCall.destinations.number.transferPlan)
0 commit comments