Clinic triage and scheduling squad
Route patients between triage, emergency, and scheduler assistants with context-preserving transfers
Overview
Compose multiple assistants into a Squad for safe, specialized healthcare flows: a triage assistant assesses symptoms, an emergency assistant handles urgent cases, and a scheduler books appointments.
Squad Capabilities:
- Structured triage evaluation and safety gates
- Emergency detection → immediate handoff
- Provider matching and scheduling tools
- Transfers preserve full conversation context
1. Define members
Example squad payload
2. Configure transfers
- From Triage → Emergency when red flags detected
- From Triage → Scheduler for routine care
- Warm-transfer with a short summary for human escalation
3. Implement
TypeScript (Server SDK)
Python (Server SDK)
cURL (web)
cURL (phone)
create web call with transient squad
create phone call with transient squad
create and reuse a squad (optional)
4. Test
Attach a phone number to the Squad (or start with a Squad when creating a call) and test urgent vs routine scenarios.
Next steps
- Tools: Custom Tools
- Scheduling: Google Calendar