Ch Adeel
11/10/2024, 6:56 PMVapi
11/10/2024, 6:58 PMVapi
11/10/2024, 6:58 PMjson
{
"type": "transferCall",
"destinations": [
{
"type": "number",
"number": "+12092316035",
"message": "Hi, we have customer [First Name] and they pay $[Monthly Bill] a month. Can you provide them more info?"
}
],
"mode": "warm-transfer-with-message",
"messages": [
{
"type": "request-start",
"content": "I am forwarding your call. Please stay on the line."
},
{
"type": "agent-message",
"content": "Hi, we have customer [First Name] and they pay $[Monthly Bill] a month. Can you provide them more info?"
}
]
}
In this example, the "mode": "warm-transfer-with-message"
line specifies that you want to use the warm transfer feature with a custom message. The "agent-message"
type in the messages
array is used to define the message that will be sent to the receiving agent before the call is transferred.
Please replace [First Name]
and [Monthly Bill]
with the appropriate variables or static values you wish to convey to the receiving agent.
If you need further assistance or have any more questions, feel free to reach out. We're here to help!Vapi
11/10/2024, 6:58 PMCh Adeel
11/10/2024, 7:03 PMShubham Bajaj
11/11/2024, 12:25 PMts
{
"type": "transferCall",
"messages": [
{
"type": "request-start",
"content": "I'll transfer you to someone who can help."
}
],
"destinations": [
{
"type": "number",
"number": "+918936850777",
"description": "Transfer the call",
"transferPlan": {
"mode": "warm-transfer-with-summary",
"summaryPlan": {
"enabled": true,
"messages": [
{
"role": "system",
"content": "Please provide a summary of the call."
},
{
"role": "user",
"content": "Here is the transcript:\n\n{{transcript}}\n\n"
}
]
}
}
}
]
}
Shubham Bajaj
11/11/2024, 12:26 PMfunction
property destinations
is enough, and transferPlan has to be part of destinations.Ch Adeel
11/11/2024, 6:42 PMCh Adeel
11/11/2024, 6:43 PMShubham Bajaj
11/12/2024, 3:48 PMShubham Bajaj
11/12/2024, 3:49 PMShubham Bajaj
11/12/2024, 3:49 PMCh Adeel
11/12/2024, 3:51 PMCh Adeel
11/12/2024, 3:52 PMShubham Bajaj
11/12/2024, 3:55 PMShubham Bajaj
11/12/2024, 3:55 PMCh Adeel
11/12/2024, 3:56 PMCh Adeel
11/12/2024, 3:57 PMShubham Bajaj
11/12/2024, 4:26 PMShubham Bajaj
11/12/2024, 4:26 PMjson
{
"type": "transferCall",
"destinations": [
{
"type": "number",
"number": "+12092316035",
"transferPlan": {
"mode": "warm-transfer-say-message",
"message": "Hi, we have customer {{firstName}} and they pay ${{monthlyBill}} a month."
}
}
]
}
Ch Adeel
11/12/2024, 4:27 PMCh Adeel
11/12/2024, 5:37 PMCh Adeel
11/13/2024, 5:48 AMShubham Bajaj
11/13/2024, 7:31 AMjson
{
"type": "transferCall",
"destinations": [
{
"type": "number",
"number": "+12092316035",
"transferPlan": {
"mode": "warm-transfer-say-message",
"message": "Hi, we have customer {{firstName}} and they pay ${{monthlyBill}} a month."
}
}
],
"function": {name: "<insert-tool-name-here>"}
}
TIP
Do not use tool call name transferCall
Ch Adeel
11/13/2024, 7:32 AMCh Adeel
11/13/2024, 5:32 PMCh Adeel
11/13/2024, 5:33 PMShubham Bajaj
11/14/2024, 12:47 PMCh Adeel
11/14/2024, 1:59 PMCh Adeel
11/14/2024, 1:59 PMShubham Bajaj
11/15/2024, 1:48 PMlogs
🔵 17:26:29:559 Transferring Twilio Call...TwiML:+12092316035
Hey @Ch Adeel the message is being spoken out to the user as you can see in the logs, the variables are not replaced because you didn;t provded any assistant overrides.
What you can do is try this mode: warm-transfer-wait-for-operator-to-speak-first-and-then-say-message
Shubham Bajaj
11/15/2024, 1:48 PMCh Adeel
11/15/2024, 5:42 PM{
"type": "transferCall",
"destinations": [
{
"type": "number",
"number": "+12092316035",
"transferPlan": {
"mode": "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message",
"message": "Hi, we have customer {{firstName}} and they pay ${{monthlyBill}} a month."
}
}
],
"function": {
"name": "forwardCall",
"description": "Use this function to transfer the call with a warm introduction to the specified destination."
}
}
Ch Adeel
11/15/2024, 5:42 PMCh Adeel
11/15/2024, 5:43 PMShubham Bajaj
11/16/2024, 2:47 PMShubham Bajaj
11/16/2024, 3:03 PMCh Adeel
11/17/2024, 1:10 PMShubham Bajaj
11/18/2024, 3:56 PMShubham Bajaj
11/18/2024, 3:57 PMCh Adeel
11/18/2024, 3:59 PMShubham Bajaj
11/18/2024, 3:59 PMCh Adeel
11/18/2024, 4:00 PMCh Adeel
11/18/2024, 4:00 PMShubham Bajaj
11/18/2024, 4:01 PMCh Adeel
11/18/2024, 4:01 PMShubham Bajaj
11/18/2024, 4:46 PMCh Adeel
11/20/2024, 3:52 AMMarketeer
01/10/2025, 8:43 PMSeygi
02/21/2025, 7:12 PMShubham Bajaj
02/22/2025, 12:13 PM