From cad7a5ba3ede41488ce3280f050d34514494328c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 11 Sep 2025 01:54:16 +0000 Subject: [PATCH] Refactor: Rename Assistants to Squads in appointment scheduling example Co-authored-by: dan --- .../examples/appointment-scheduling.mdx | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/fern/assistants/examples/appointment-scheduling.mdx b/fern/assistants/examples/appointment-scheduling.mdx index 8fd5c6546..9c1906800 100644 --- a/fern/assistants/examples/appointment-scheduling.mdx +++ b/fern/assistants/examples/appointment-scheduling.mdx @@ -1,25 +1,25 @@ --- -title: Appointment scheduling assistant -subtitle: Build an AI receptionist that books, reschedules, and cancels appointments using Assistants and tools +title: Appointment scheduling squad +subtitle: Build an AI receptionist that books, reschedules, and cancels appointments using Squads and tools slug: assistants/examples/appointment-scheduling -description: Build a voice AI appointment scheduling assistant with Google Calendar integration, availability checking, and automated confirmations using Vapi Assistants. +description: Build a voice AI appointment scheduling squad with Google Calendar integration, availability checking, and automated confirmations using Vapi Squads. --- ## Overview -Build an AI-powered appointment scheduling assistant that handles inbound calls for booking, rescheduling, and canceling appointments. This approach uses a single Assistant with tools for calendar availability, customer lookups, and confirmations. +Build an AI-powered appointment scheduling squad that handles inbound calls for booking, rescheduling, and canceling appointments. This approach uses a single Squad with tools for calendar availability, customer lookups, and confirmations. -**Assistant Capabilities:** +**Squad Capabilities:** * Real-time availability checks and booking * Reschedule and cancel with confirmation * Customer verification and data lookups * SMS/email confirmations via tools **What You'll Build:** -* An assistant with a focused prompt for scheduling flows +* A squad with a focused prompt for scheduling flows * Tools for calendar availability and booking * Optional CSV knowledge bases for customers/services -* A phone number attached to your assistant +* A phone number attached to your squad ## Prerequisites @@ -118,13 +118,13 @@ Use the Google Calendar integration for availability and booking, or your own AP --- -## 3. Create the assistant +## 3. Create the squad - - - Go to Assistants → Create Assistant → Blank template + + - Go to Squads → Create Squad → Blank template - Name it `Receptionist` @@ -139,7 +139,7 @@ Use the Google Calendar integration for availability and booking, or your own AP ``` - Add your scheduling tools to the assistant and publish. + Add your scheduling tools to the squad and publish. @@ -151,7 +151,7 @@ Use the Google Calendar integration for availability and booking, or your own AP const systemPrompt = `You are an AI receptionist for a barbershop. Verify the customer, then offer booking, rescheduling, or cancellation. Use scheduling tools when needed. Keep replies under 30 words.`; - const assistant = await vapi.assistants.create({ + const squad = await vapi.squads.create({ name: "Receptionist", firstMessage: "Welcome to Tony's Barbershop! How can I help you today?", model: { @@ -170,7 +170,7 @@ Use the Google Calendar integration for availability and booking, or your own AP client = Vapi(token=os.getenv("VAPI_API_KEY")) - assistant = client.assistants.create( + squad = client.squads.create( name="Receptionist", first_message="Welcome to Tony's Barbershop! How can I help you today?", model={ @@ -196,7 +196,7 @@ Use the Google Calendar integration for availability and booking, or your own AP await vapi.calls.create({ transport: { type: "web" }, - assistant: { assistantId: "your-assistant-id" } + squad: { squadId: "your-squad-id" } }); ``` @@ -204,7 +204,7 @@ Use the Google Calendar integration for availability and booking, or your own AP await vapi.calls.create({ phoneNumberId: "your-phone-number-id", customer: { number: "+15551234567" }, - assistant: { assistantId: "your-assistant-id" } + squad: { squadId: "your-squad-id" } }); ``` @@ -218,7 +218,7 @@ Use the Google Calendar integration for availability and booking, or your own AP client.calls.create( transport={"type": "web"}, - assistant_id="your-assistant-id", + squad_id="your-squad-id", ) ``` @@ -226,7 +226,7 @@ Use the Google Calendar integration for availability and booking, or your own AP client.calls.create( phone_number_id="your-phone-number-id", customer={"number": "+15551234567"}, - assistant_id="your-assistant-id", + squad_id="your-squad-id", ) ``` @@ -237,7 +237,7 @@ Use the Google Calendar integration for availability and booking, or your own AP -H "Authorization: Bearer $VAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ - "assistant": { "assistantId": "your-assistant-id" } + "squad": { "squadId": "your-squad-id" } }' ``` @@ -248,7 +248,7 @@ Use the Google Calendar integration for availability and booking, or your own AP -H "Authorization: Bearer $VAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ - "assistant": { "assistantId": "your-assistant-id" }, + "squad": { "squadId": "your-squad-id" }, "phoneNumberId": "your-phone-number-id", "customer": { "number": "+15551234567" } }' @@ -260,7 +260,7 @@ Use the Google Calendar integration for availability and booking, or your own AP - Create a phone number and assign your assistant. See [Phone calls quickstart](/quickstart/phone). + Create a phone number and assign your squad. See [Phone calls quickstart](/quickstart/phone). - New booking → check availability → book → confirm @@ -272,6 +272,6 @@ Use the Google Calendar integration for availability and booking, or your own AP ## Next steps - **Tools**: [Google Calendar](/tools/google-calendar), [Custom Tools](/tools/custom-tools) -- **Structured outputs**: [Extract structured data](/assistants/structured-outputs) +- **Structured outputs**: [Extract structured data](/squads/structured-outputs) - **Multichannel**: [Web integration](/quickstart/web)