Invorto
11/22/2024, 11:16 AMVapi
11/22/2024, 11:19 AMfrom parameter in your call transfer logic to display either the original caller's number or a different number that you have authorized with your VAPI provider.
If you need assistance with setting up these features or have any specific questions about implementing them, please let me know, and I'll be happy to help!Vapi
11/22/2024, 11:19 AMInvorto
11/22/2024, 9:55 PMVapi
11/22/2024, 9:55 PMtransferCall function correctly, you would need to implement it within your voice application's code, following the API's specific syntax and parameters.
For example, if you're scripting a conversation flow and want to include a directive to transfer a call when a certain condition is met, you would write the logic in your application to detect the condition (such as the user requesting to connect with accounts) and then execute the transferCall function with the appropriate parameters.
Here's a more technical representation of how you might call the transferCall function:
javascript
if (userRequest.includes('connect with accounts')) {
transferCall('+123456789');
}
Please note that '+123456789' should be replaced with a valid E.164 formatted phone number, and the actual implementation will depend on the programming language and the environment you are using.
If you need the call to be transferred based on the scenario you've described, please provide the necessary details or confirm the scenario, and I can assist with that.Invorto
11/22/2024, 9:56 PMInvorto
11/22/2024, 9:57 PMVapi
11/22/2024, 9:57 PMtransferCall function with the corresponding phone number. For example:
- If the user asks to be connected with sales, you would call the transferCall function with the number +1234567890.
- If the user requests technical support, you would call the transferCall function with the number +0987654321.
Please let me know how you would like to proceed or if there's a specific scenario you'd like to implement, and I'll be happy to assist you with that.Shubham Bajaj
11/23/2024, 3:28 PMInvorto
11/25/2024, 7:51 AMInvorto
11/25/2024, 8:16 AMShubham Bajaj
11/25/2024, 3:25 PMjson
{
"type": "number",
"number": "destination-number-here",
"message": "message-here",
"callerId": "{{customer.number}}",
"transferPlan": {
"mode": "warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary",
"summaryPlan": {
"enabled": true,
"messages": []
}
}
}Shubham Bajaj
11/25/2024, 3:27 PM[ and try to share the complete payload with error message.Invorto
11/25/2024, 3:28 PM{
"message": "Expected ':' after property name in JSON at position 1836 (line 50 column 32)",
"error": "Bad Request",
"statusCode": 400
}Shubham Bajaj
11/25/2024, 3:29 PMInvorto
11/25/2024, 3:38 PMInvorto
11/25/2024, 3:38 PMShubham Bajaj
11/27/2024, 10:05 AMShubham Bajaj
11/27/2024, 10:08 AMnumberE164CheckEnabled to falseShubham Bajaj
11/27/2024, 10:08 AMcurl -X POST https://api.vapi.ai/tool \
-H "Authorization: Bearer token-here" \
-H "Content-Type: application/json" \
-d '{
"type": "transferCall",
"async": false,
"destinations": [
{
"type": "number",
"number": "+9191xxx95xx5",
"callerId": "Your-Caller-ID-Here",
"numberE164CheckEnabled": false,
"description": "description-of-the-number-here",
"transferPlan": {
"mode": "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message",
"message": "insert-message-here"
}
}
],
"function": {
"name": "customTransferCallFunction"
}
}'Shubham Bajaj
11/27/2024, 10:09 AMInvorto
11/27/2024, 11:23 AMInvorto
11/27/2024, 11:33 AMShubham Bajaj
11/27/2024, 12:14 PMInvorto
11/27/2024, 12:23 PMShubham Bajaj
11/29/2024, 3:37 PMInvorto
11/29/2024, 4:31 PMInvorto
11/30/2024, 7:47 PM