Transfer Call Destination Error
# support
z
I've configured a transferCall tool with two destinations for language-based transfers using a custom function. When I run the assistant, I get an error: "Invalid Destination. Assistant 'SpanishReceptionist' Not Found." Even though the Spanish-speaking assistant is defined in the configuration, the system can't locate it.
I've seen other people encounter the same error in the posts in doscord here, but I am not sure what the problem is
Maybe I thought having two destinations in the transfer call tool might be a bad idea and decided to have the decision for the destination to be done in the function call.
I in the logs, I see that the tool is called and I have set this to mysite.com/changelanguageassistant" but interestingly it ends up at / and I hear " Transfering the call now." and then it hags up.. I see the model output logs rather than tool call in the weblog https://cdn.discordapp.com/attachments/1339776555639115776/1339797918894264362/image.png?ex=67b0078c&is=67aeb60c&hm=de8e349984fb9ce7960baf6b9b01a654a2bd38b09cf30379b61fa9b3c0c86648& https://cdn.discordapp.com/attachments/1339776555639115776/1339797919229939732/image.png?ex=67b0078c&is=67aeb60c&hm=fe84313410de1dbc40bd5a18c8739346d52750902388fd112c62af2624797c1a&
I am so confused..
43ca407e-ee7f-430a-9ec5-2256cb655bdc THe above is a call id - here am getting a room deleted error
By the way, this is just a continuation of me just trying to get a transfer to work and I seem to be solving one problem but jumping into another one. So I just want to document the journey.
I've read in a few places that I need to use a phone number, but really I am not transferring to a phone number. I'm transferring to another assistant, so I don't think it should be a problem.
a
can you provide your JSON For your squad, I have had issues as well, what languages are you working with? How many in the squad. BTw with Deepgram multi they have a native Spanish/English capability.
c
Hey Ztill you transfer call function is incorrect, at first place you don't need to define even with mentioning transfer the call to
X
assistant-name it will work. Your trying to transfer call to the assistant which doesn't exists in transfer call function and eventually transfer doesn't works. Also you cannot transfer to an number in a web call. https://cdn.discordapp.com/attachments/1339776555639115776/1339983340274716787/Screenshot_2025-02-14_at_9.04.52_PM.png?ex=67b0b43c&is=67af62bc&hm=e490e6006237ff74cd4f1695ab4c8f096a579a80bc0e331e6116f80eea2954f0&
Just use the defaults, and do not create any new function for transferring between the squads.
z
@Shubham Bajaj I am sorry - I am not following you. Are you saying that the custom transfer call function is unnecessary and error-prone, and we should just use the default mechanism since transferring to a number in a web call isn't supported? I am using the "transferCall" built in tool Ah I think what you are saying is that I do not need the custom tool I created - the builtin default transferCall does not need any setup?
I prefer to keep this simple, and do not have a squad yet - Once I make a transfer, it's like a completely new call.
s
> Are you saying that the custom transfer call function is unnecessary and error-prone, and we should just use the default mechanism since transferring to a number in a web call isn't supported? No custom transfer call functions work, but you don't need it for squads transfer. > transferring to a number in a web call isn't supported? Yes transfering to a number isn't supported. > Ah I think what you are saying is that I do not need the custom tool I created - the builtin default transferCall does not need any setup? Can you help me with what your trying to do? Transferring to a number withor without a squad?
z
I'm simply trying to transfer to another assistant.
s
Transfer to another assistant without squads is not possible, you have to use squads.
z
Ok, that's news to me- understood and thanks I did not read that anywhere in the documentation. Now, once I have the squad, do I need to create a custom transfer call tool? I think you are saying no - I do not need to create one
s
No you don't to create a custom tool for transfering to assistant b/w the squad.
z
got it
trying now
c
Let me know if you require further help.
z
Thank you @Shubham Bajaj - I am able to make the transfer now!
I am transferring to the Spanish-speaking agent and I want the Spanish-speaking agent to say something first.
Right now it stays silent.
What can I do to make it say something?
c
set the first message of the assistant.
z
@Shubham Bajaj I do have the first message set in all the assistants but it does not say anything after the transfer happens
@Shubham Bajaj I tried it again and transfer not happening 1cb56f19-0373-402b-ba00-912472ce5cce
Another example where it does not transfer: 63d4c135-3f9d-4849-a2d0-1769134c4ea9
c
Ztill looking into your call IDs.
Hey Ztill, your using assistant for call not squad then how can transfer will happen. As mentioned for assistant transfer you need to use squad.
z
Yes, I have tried that as well and same thing - no transfer.. a1aa86c3-70f2-4d50-be94-1b43a54486b1 @Shubham Bajaj
c
Hey Ztill, if you look at your squad config members don't have destinations and that means your root assistants isn't connected to any of your assistant which eventually results into no transfers. \[ { "id": "0053c159-2ed0-48b2-96bf-f27c1484c1c7", "org_id": "00162f33-a0cd-4500-8ada-d3fb81acb089", "created_at": "2025-02-14 03:40:31.589+00", "updated_at": "2025-02-14 03:40:47.982+00", "members": \[ { "assistantId": "29393df3-481f-4ba6-92a0-d2ba5bb02de2" }, { "assistantId": "78de4b80-f689-4cf7-9494-c17b9acc1cf7" }, { "assistantId": "de4b65d9-72ef-4c4f-b0b8-11c146e62a74" } \], "name": null, "members_overrides": null } \]
Checkout this doc it will help you in creating the squad.
FYI: it is for silent transfers b/w members so you can always add transfer message if requried.
49 Views