Understanding how does squads work!
# support
y
I created a squad with 3 assistants (A, B, C). Each assistant was connected to other 2 assistants. So, A can transfer to B, C B can transfer to A, C C can transfer to A, B It was working fine, then I updated the name of B to "B - updated", but the name in squad was still B. I wonder how does this work, because the "assistantDestinations" are added with reference to "assistantName" and not "assistantId" So when integrating squad in our platform, do I need to worry about any user renaming the assistant? Or does VAPI support passing "assistantId" instead of "assistantName" in "assistantDestinations".
@User
v
@Yash VAPI typically uses unique identifiers, such as "assistantId", to maintain stable references to entities like assistants, even when their names or other properties change. This is a common practice to ensure that internal connections and configurations remain intact despite user-facing changes like renaming an assistant. In the case of your squad configuration, if the "assistantDestinations" are indeed added with reference to "assistantName" and not "assistantId", renaming an assistant could potentially disrupt the transfer functionality unless the system is designed to automatically update these references or unless there is some underlying mechanism that maintains the association regardless of the name. To ensure seamless integration and avoid issues with renaming assistants, it would be advisable to use "assistantId" for internal configurations like "assistantDestinations" if VAPI supports it. This way, you can ensure that the connections between assistants remain consistent and functional, even if the names change. If you're unsure about the specifics of how VAPI handles these references or if "assistantId" can be used in place of "assistantName", please ask support for more info on this. They will be able to provide you with detailed information about the best practices for integrating squads into your platform and how to handle potential issues related to renaming assistants.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
y
@User @Shubham Bajaj Can you please look into this?
s
@Yash As of now you have to pass assistant names to the squad for know there is no support for using assistant ids within the squad,
y
I get that @Shubham Bajaj , but my concern is if the name of an assistant is updated. Do I need to update the squad members? Or does vapi takes care of this?
s
@Yash you have to update the Squad Assistant name by yourself.
y
Okay.
Any upcoming fix on this? @Shubham Bajaj
s
Will check with team what can be done about it.
y
Sure
Thanks
3 Views