Issue with Squad - Random member sending results a...
# support
g
Problem: Squad sometimes sends results (end messaging web-hook) with the main member and sometimes with random members. When sending with embers it doesn’t send override variables. Call ID 87eda337-5dca-4099-a509-6c66f875503b, (customer did not answer) result is sent by 62a0cd7f-67da-4862-8244-35355797ec75 (which is a member of the squad) and its not sending the VariableValues packet in the Assistant JSON. Why is it not using the MAIN squad member? Call ID 21ba49e2-22e4-4d85-b437-fbdda7b98747 (Customer busy) result is sent by 62a0cd7f-67da-4862-8244-35355797ec75 (which is a member of the squad) and its not sending the VariableValues packet in the Assistant JSON. Why is it not using the MAIN squad member? Call ID ae560dc4-cfe9-4891-95ff-48ef1fb00912 (Voicemail) result is sent by 4ff0272c-52ba-4b65-81f9-9e81b24cd81b (which is the MAIN assistant of the squad) and it DID SEND VariableValues packet in the Assistant JSON. It seems that (verified with other calls and cases) when the customer does not answer or is busy, some random (or arbitrary) squad member sends the results to the web-hook and when the customer answers or its a voicemail, the main assistant sends the result. Problem is that when results are sent by a squad member, the override variables are not sent. Also, not sure why the results are being sent by THAT particular squad member. I would like to ALWAYS send the assistant variables in the results package.
v
To help ensure assistant variables are always included in the results, try explicitly setting both
members[n].assistantOverrides
for each squad member and the global
membersOverrides
when updating your squad. Here’s an example PATCH request payload:
Copy code
json
{
  "members": [
    {
      "assistantId": "main-assistant-id",
      "assistantOverrides": { "variable1": "value1" }
    },
    {
      "assistantId": "secondary-assistant-id",
      "assistantOverrides": { "variable1": "value1" }
    }
  ],
  "membersOverrides": { "variable1": "value1" }
}
This approach applies overrides at both the member and global level, which may help ensure variables are present in all result payloads regardless of which member sends the webhook result. For more details, see the [Vapi squad update API documentation](https://docs.vapi.ai/api-reference/squads/update?explorer=true). Source: - [Vapi squad update API documentation](https://docs.vapi.ai/api-reference/squads/update?explorer=true)
g
Been doing that and it's not working. Some call reports are sent with different assistants and in those cases (as mentioned above) overridden variables are not sent.
v
It looks like when calls are busy or unanswered, a random squad member sends the results, so overridden VariableValues aren’t included. When answered or it goes to voicemail, the main assistant sends them correctly. I can help make sure all results always include assistant variables. Can you share if any special routing is set for unanswered/busy calls? Let’s connect and fix this. @gotoxy
c
We are reviewing the details of your request and will reach out to you when we have an update or if we need additional information.
g
Thanks Kyle, please let me know. this is currently affecting production. Thnx.
Thnx Xcel. No special routing for unanswered/busy calls. At least not that I know.
c
We apologize for the delay in responses lately. We are in process of making some changes to our workflow in how we handle support requests. The good news is that we are starting to get back on track of having a 48 hour response time and we would like to start cleaning up anything old. With that being said, just wanted to check in with you to see if you have made any progress or changes to your project since support has last reached out.
g
Issue is still open. Same problem happening. 😢
c
Is this also happening with memberOverrides?