Squads Broken
# support
n
When trying to load a squad, its stuck on the "Building Your Squad" page... Can not access. Please advise
c
having same problem!!!
n
@User
a
is there anything in the console? can you send me the squad id?
c
Hi Nate, To implement a multi-assistant clinic experience using Squads, you'll need to define the squad members like Triage, Emergency, and Scheduler assistants. Here's a quick guide: 1. **Define Members**: Use JSON to set up each assistant with specific models and first messages.
Copy code
json
   {
     "members": [
       { "assistant": { "name": "Triage", "model": {"provider": "openai", "model": "gpt-4o", "messages": [{"role": "system", "content": "Identify red flags."}] }, "firstMessage": "Hello, how can I help you today?", "firstMessageMode": "assistant-speaks-first" } },
       { "assistant": { "name": "Emergency", "model": {"provider": "openai", "model": "gpt-4o", "messages": [{"role": "system", "content": "Connect immediately."}] } } },
       { "assistant": { "name": "Scheduler", "model": {"provider": "openai", "model": "gpt-4o", "messages": [{"role": "system", "content": "Offer next available slots, then confirm."}] }, "toolIds": ["BOOK_TOOL_ID", "PROVIDER_LOOKUP_ID"] } }
     ]
   }
2. **Configure Transfers**: Set up red flag detection for transitions from Triage to Emergency, and routine care from Triage to Scheduler. 3. **Implement**: Choose SDK or curl to initiate a call with the squad. Typescript example:
Copy code
typescript
   import { VapiClient } from "@vapi-ai/server-sdk";
   const vapi = new VapiClient({ token: process.env.VAPI_API_KEY! });
   await vapi.calls.create({ transport: { type: "web" }, squad: { members: [...] } });
4. **Test Scenarios**: Attach a phone number to the Squad and test for both urgent and routine workflows. For a detailed implementation, you can refer to the [clinic triage and scheduling squad example](https://docs.vapi.ai/squads/examples/clinic-triage-scheduling).
3 Views