Web SDK not able to use Squads
# support
m
when I provide the inline config for squads to the web sdk, I get this error: Error: { "data": null, "error": { "message": [ "assistant.property squad should not exist" ], "error": "Bad Request", "statusCode": 400 } } Config: await vapiRef.current.start({ squad: { members: [ { assistantId: "xxxx", assistantDestinations: [ { type: "assistant", assistantName: "Site ", message: "Transferring you to our site navigation assistant.", description: "Transfer when the user needs help navigating the site." }, { type: "assistant", assistantName: "Add User", message: "Transferring you to our user addition assistant.", description: "Transfer when the user wants to add a new user." } ] }, { ... incomplete.
v
You can continue this conversation by mentioning me in the message.
@muazz It seems like there might be a misunderstanding in the configuration you're providing to the web SDK. The error message indicates that the
squad
property should not exist in the configuration you're passing. This could mean that the SDK does not recognize the
squad
property or that it's not expecting it in the place you're providing it. To resolve this issue, please ensure that you're following the correct configuration structure as per the SDK documentation. If the
squad
configuration is a feature of the SDK, it's possible that it needs to be placed in a different part of the configuration object or that the syntax is incorrect. If you're certain that your configuration is correct according to the SDK documentation, it might be a good idea to reach out to the support team for further assistance. They can provide more detailed guidance and help you troubleshoot the issue. Would you like me to assist you with anything else regarding this issue?
Got it. Tagging @User for additional help.
m
Does the SDK support squads?
s
@muazz can you pass the squad config as
Copy code
ts
vapiRef.current.start(undefined, undefined, squadConfig)
Ref: https://github.com/VapiAI/web/blob/cb7f315e49889c84e1b03bfaa1664d14d6b62608/vapi.ts#L128
m
thank you, that worked.
3 Views