Squad - passing information among agents
# support
e
Dears, i get confused on how to deal with information sharing among squad agetns during a call transfer. The call trasnfer is made automatically by VAPI but i can't get well waht the correct way to pass information. Let's assume I have agent A that interacts with the customer getting infromation from that, for example a tecnhical problem on an IPhone 14 The expected behave is that agent B could say " Hi customer, Agent A told me you have a problem on your Iphone 14. could you explain me better? I know that i could use the ovverrides but i cannot figure out how to call vapi api to update assistant since i am triggering directly the transfer. Thanks in advance
v
@estrososcreed Hello! When transferring a call using VAPI, you can pass along information to the next agent by using the
payload
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:
Copy code
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.
You can continue this conversation by mentioning me in the message.
e
it's not clear since i am using squad and the trasnfer is managed by squad configuration. it's not clear for me when i could call an api to handle the information
v
Got it. Tagging @User for additional help.
s
checkout server event
ServerMessageResponseTransferDestinationRequest
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.
check this: https://api.vapi.ai/api-json# go to: components > schema > ServerMessageResponseTransferDestinationRequest
4 Views