Calling w/ Squad ID does not send customer name to...
# support
c
Hey guys, does anyone know we are trying to have multiple agents inside the squad, but when we run the API with the squad ID, what happens is that the name that we input for the customer that we wanted to talk does not come in. It says, hey, I'm Mark, am I talking to? And then it goes silent. Do you guys know why that is happening? It does not happen when we start the conversation with the assistant ID, but it happens when we started with the squad ID. Do you guys know or anyone has any resolution to this?
v
Thanks for sharing the details of your issue. Based on the information available, I don't have any documentation or details explaining why the customer name isn't passed to the first assistant when using the Squad ID, or how to resolve it. If you have any more specifics or context, feel free to share, and I'll do my best to help!
Thanks for sharing the details of your issue. Based on the information available, I don't have any documentation or details explaining why the customer name isn't passed to the first assistant when using the Squad ID, or how to resolve it. If you have any more specifics or context, feel free to share, and I'll do my best to help!
c
@User Hey guys, does anyone know we are trying to have multiple agents inside the squad, but when we run the API with the squad ID, what happens is that the name that we input for the customer that we wanted to talk does not come in. It says, hey, I'm Mark, am I talking to? And then it goes silent. Do you guys know why that is happening? It does not happen when we start the conversation with the assistant ID, but it happens when we started with the squad ID. Do you guys know or anyone has any resolution to this?
k
When using a squad ID, dynamic variables like the customer’s name aren’t applied unless each assistant’s assistantOverrides are set inline in the API request.
c
This is how our payload looks like: payload: { "assistantId": "067532ed-e795-4c26-a88b-5ee96f58364f", "customer": { "number": "+1xxxxxxxxxx", "name": "John" }, "assistantOverrides": { "variableValues": { "first_name": "John", "help_type": "getting more bookings and increasing revenue" } }, "phoneNumberId": "ae495c96-1c13-4aff-9f06-e660f07324d6" }
It does not remember John, it just goes quiet.
@Kings_bigđź’« Would you be able to share a sample payload with squadId and override thing, where a squad has multiple assistants? So we can use that to implement it on our side
k
Use a payload including each assistant’s assistantId, optional assistantOverrides like first message and timeout, shared membersOverrides for global settings, and assistantDestinations for transfers, all within a squad object linked to a phoneNumberId and customer number. https://docs.vapi.ai/api-reference/squads/create
c
@Pranav Verma Here^
s
Hey CyberAks checking if this is resolved/solved for you?