Not able to send Dynamic data in VAPI squads
# support
k
I'm using VAPI squads and trying to send my dynamic data through Assistant Overrides. But VAPI squads is not accepting any dynamic data. Is there anyother way I can send dynamic data to squads. Below is my code with Web snippet integration. if ((window as any).vapiSDK) { this.vapiInstance = (window as any).vapiSDK.run({ apiKey: this.apiKey, squad: this.squad, config: this.buttonConfig, }); this.squad= { members: [ { assistantId: "7660c488-c8d9-4855-9569-ffabb7318678", assistantDestinations: [ { type: "assistant", assistantName: "Hindi Assistant", message: "Transferring you now…", description: "Switch to Hindi Assistant" } ] }, { assistantId: "45516da0-92bb-4288-a9f8-e15f251a6f5d" } ] }
c
Hey kk, I wanted to let you know that we're managing a high volume of support requests at the moment, so our response time might be a bit slower than usual. I truly appreciate your understanding and will get back to you as soon as possible!  Thanks again for your patience!
k
@Shubham Bajaj Expecting a solution for this. You response will be of great help
c
Hi kk, To send dynamic data to VAPI squads using Assistant Overrides, ensure each assistant in your squad configuration is correctly structured with
assistantOverrides
including your
variableValues
. Here's a basic example to illustrate how it can be done:
Copy code
javascript
this.squad = {
  members: [
    {
      assistantId: "your-assistant-id",
      assistantOverrides: {
        variableValues: {
          name: "John Doe",
          question: "How can I help you?"
        }
      }
    }
    // Add more members as needed
  ]
};
Ensure the property names in
variableValues
match those used in your assistant configuration with double curly braces, like
{{name}}
. For more detailed information, refer to the [Variables](https://docs.vapi.ai/assistants/dynamic-variables) documentation. If you continue to experience issues, verify that all variable names are set up correctly and that any Vapi configuration specifics are met in your setup.
k
Thanks for the update
Hi, I'm not getting the "end of the call report" while using Squads. It returns the system prompt in the summary. Additionally squads does not seem to work properly while I'm using it for multiple languages. In my use case, I have created English assistant and Hindi assistant. Squads feature is able to switch to the Hindi assistant from English assistant based on request. But switches back to English again randomly during the conversation.
this.squad = { members: [ { assistantId: "c5ca559c-78a4-4867-b930-07c87e72172b", assistantOverrides: { variableValues: { firstMessage: this.languageConfigs?.["English"]?.firstMessage '', systemPrompt: this.languageConfigs?.["English"]?.prompt '', summaryPrompt: this.summaryPrompt } }, assistantDestinations: [{ type: "assistant", assistantName: "Hindi Assistant", message: "Sure we can proceed in hindi", description: "Switch to Hindi Assistant" }] }, { assistantId: "cceeb764-7b1d-4ea0-9d2d-ecb5515930eb", assistantOverrides: { variableValues: { firstMessage: this.languageConfigs?.["Hindi"]?.firstMessage '', systemPrompt: this.languageConfigs?.["Hindi"]?.prompt '', summaryPrompt: this.summaryPrompt } }, }, ] };
c
Could you please provide a call id where these issues occur so we can investigate the logs?
3 Views