gzqq
03/17/2025, 5:32 PMgzqq
03/17/2025, 5:35 PMShubham Bajaj
03/18/2025, 12:16 PMjson
{
"destination": {
"type": "number",
"number": "+15551234567",
"message": "I am transferring you to our specialist. Please hold."
}
}
#### Successful Response with SIP Destination:
json
{
"destination": {
"type": "sip",
"sipUri": "sip:user@example.com",
"message": "I am transferring you to our specialist. Please hold."
}
}
#### Error Response:
json
{
"error": "Unable to determine transfer destination at this time."
}
## Request Format from VAPI to Your Server
For reference, here's what the request from VAPI to your server will look like:
json
{
"type": "transfer-destination-request",
"timestamp": "2023-05-25T15:30:45.123Z",
"call": {
"callId": "call_123456789",
"phoneNumber": "+11234567890",
"orgId": "org_123456789",
// Other call details
},
"customer": {
"customerId": "cust_123456789",
"name": "John Doe",
"phoneNumber": "+19876543210",
// Other customer details
},
"assistant": {
"assistantId": "asst_123456789",
"name": "Customer Service Bot",
// Other assistant details
},
"artifact": {
// Call artifact containing conversation history, etc.
}
}
With this implementation, you'll be able to dynamically route calls to different centers based on client information during a live call.gzqq
03/19/2025, 10:31 PMgzqq
03/20/2025, 12:18 AMKyle
03/20/2025, 3:05 AMgzqq
03/21/2025, 2:41 AMgzqq
03/21/2025, 2:42 AMKyle
03/22/2025, 4:43 AM