is there a way to start a call transfer while the ...
# support
y
is there a way to start a call transfer while the agent is still talking?
v
@YinYang Yes, absolutely! The transferCall function can be initiated even while the agent is still on the line. Would you like to proceed with transferring the call right now? If so, please provide the forwardingPhoneNumber or confirm if I should use the one already on file.
You can continue this conversation by mentioning me in the message.
y
@Shubham Bajaj i need help setting this up
s
@YinYang Could you please clarify your question about "starting a call transfer while the agent is still talking"? For example, are you looking to initiate a transfer when the Assistant says something specific (let's call it message X), wait for that message to be fully voiced, and then complete the transfer? Please provide more details about your use case.
y
yes. Wondering if it is possible for the agent to make the call to the live transfer agent while the ai agent is "warming" up the prospect becasue I find alot of customers hang up whenever they get transfered after 2-3 seconds
s
You can either use a prompting technique that first generates content and then performs tool calling or live call control. Here are two approaches: [1] Say your content and trigger transferCall at the same time. [2] Use ClientInboundMessageTransfer to externally trigger the transfer call and pass the content to be spoken. Just replace the call ID and other information with your own values.
example
Copy code
curl --location 'https://aws-us-west-2-production1-phone-call-websocket.vapi.ai/<your-call-id>/control' \
--header 'content-type: application/json' \
--data '{
  "type": "transfer",
  "destination": {
    "type": "number",
    "message": "insert-say-message-here",
    "number": "insert-destination-number-here",
    "numberE164CheckEnabled": false
  }
}'
https://cdn.discordapp.com/attachments/1331337704415297628/1331495020183949392/Screenshot_2025-01-22_at_10.52.00.png?ex=6791d2de&is=6790815e&hm=ffc158430cff1a488d57cc6865ae8e3bb3ffd3b8e3f7e79a9a0770ee9e91be9e&
@YinYang Do let me know if your require further help!!
y
@Shubham Bajaj could you help me set this up on a meeting? I’m not familiar with this. would really appreciate this
s
Hey, can you join office hours today? I will guide you.
y
sorry just saw this, could we please set up a meeting or let me know what time is the next office hour
4 Views