estrososcreed
08/05/2024, 5:28 AMVapi
08/05/2024, 5:29 AMpayload attribute within the transfer action. This payload can contain any necessary information that agent A has collected, such as the details of the technical problem with the iPhone 14.
Here's a general idea of how you can structure the payload:
json
{
"action": "transfer",
"payload": {
"customerIssue": "Technical problem with iPhone 14",
"previousAgentNotes": "Customer reported an issue with the device not turning on."
},
"destination": {
"type": "sip",
"endpoint": "sip:agentB@yourdomain.com"
}
}
When agent B receives the call, the system should be configured to display or relay the information from the payload so that agent B can seamlessly continue the conversation with the customer.
If you're using SIP REFER for the transfer, make sure that your receiving system is set up to handle the payload information contained in the REFER message.
If you need to update the assistant or any other part of the system with this information, you would typically use an API call to your backend service, which would then handle the update. However, if you're looking for a specific VAPI function to update the assistant, please provide more details or ask support for more info on this.Vapi
08/05/2024, 5:29 AMestrososcreed
08/05/2024, 5:31 AMVapi
08/05/2024, 5:32 AMShubham Bajaj
08/05/2024, 2:26 PMServerMessageResponseTransferDestinationRequest
using this vapi will ask for assistant to transfer the call and you can pas the message to say before transferring the call to the next assistant, using current context of the call.Shubham Bajaj
08/05/2024, 2:26 PM