How to transfer to another assistant in the squad.
# support
a
I have a couple squads and I want to transfer between them, when I say something like this it just tries to transfer the call (like transfer the call to another number) is this the correct way to transfer between a squad?
@Shubham Bajaj @User
v
@AiTitus :) It seems like you're trying to transfer a call to a different assistant within your squads based on language preference. The JSON snippet you provided looks like a configuration for an assistant override, which is a correct approach for transferring the call to another assistant within your system. However, to ensure that the transfer is executed correctly, you need to make sure that the
assistantName
you provided matches the name of the assistant you want to transfer to, and that the
transferMode
and other parameters are set up correctly according to your system's requirements. If you're experiencing issues with the transfer not behaving as expected, it might be due to a misconfiguration or a misunderstanding of how the transfer should be handled within your system. If you need to execute a transfer and have the destination details, I can help you with that. Otherwise, if you're unsure about the configuration, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
c
@AiTitus :) it looks like you are using the number instead of the Assistant name for the transfer.
Ahh i see, it's at the bottom....
a
@User yes i am not sure what the issue is but it keeps trying to transfer thecall instead od transfer to a squad assistant lol
I dont use squads too often so its new to me
c
I would say try to do it all transient. No override for the tool.
a
@Shubham Bajaj any thoughts?
s
@AiTitus :) The assistant destinations look good to me, but I noticed you have a tool of type "transfer call" with a number where the type and name are the same as the default transferTool. Instead, you should create a custom transfer call tool with a different name, and then it will work as expected.
Copy code
json
curl -X PATCH https://api.vapi.ai/tool/id \
     -H "Authorization: Bearer f5a91" \
     -H "Content-Type: application/json" \
     -d '{
  "type": "transferCall",
  "function": {
    "name": "cusomTransferCall"
  }
}'
Do let me know if you require further help!!