diff --git a/fern/call-forwarding.mdx b/fern/call-forwarding.mdx index 15c14143..7403a69e 100644 --- a/fern/call-forwarding.mdx +++ b/fern/call-forwarding.mdx @@ -18,9 +18,21 @@ Vapi's call forwarding functionality allows you to redirect calls to different p ## Setting Up Call Forwarding -### 1. Defining Destinations and Messages +### 1. Create a Transfer Call Tool in the Dashboard -The `transferCall` tool includes a list of destinations and corresponding messages to notify the caller: +The recommended approach is to create your transfer call tool in the Vapi dashboard: + +1. Navigate to **Tools** in your Vapi dashboard +2. Click **Create Tool** +3. Select **Transfer Call** as the tool type +4. Configure your destinations: + - **Department A**: `+1234567890` with message "I am forwarding your call to Department A. Please stay on the line." + - **Department B**: `+0987654321` with message "I am forwarding your call to Department B. Please stay on the line." + - **Department C**: `+1122334455` with message "I am forwarding your call to Department C. Please stay on the line." + +### 2. Alternative: API Configuration + +You can also define the tool via API with destinations and corresponding messages: ```json { @@ -112,7 +124,7 @@ You can also specify the `extension` parameter to forward the call to an extensi ] ``` -### 2. Using the `transferCall` Function +### 3. Using the `transferCall` Function When the assistant needs to forward a call, it uses the `transferCall` function with the appropriate destination: @@ -127,7 +139,7 @@ When the assistant needs to forward a call, it uses the `transferCall` function } ``` -### 3. Customizing Messages +### 4. Customizing Messages Customize the messages for each destination to provide clear information to the caller: diff --git a/fern/docs.yml b/fern/docs.yml index a5a98472..362282bf 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -116,12 +116,18 @@ navigation: - page: Inbound support path: examples/inbound-support.mdx icon: fa-light fa-phone-volume + - page: Appointment scheduling + path: examples/appointment-scheduling.mdx + icon: fa-light fa-calendar-check - page: Outbound sales path: examples/outbound-sales.mdx icon: fa-light fa-money-bill-wave - - page: Pizza website - path: examples/pizza-website.mdx - icon: fa-light fa-pizza-slice + - page: Medical triage + path: examples/clinic-triage-scheduling.mdx + icon: fa-light fa-stethoscope + - page: Order management + path: examples/ecommerce-order-management.mdx + icon: fa-light fa-shopping-cart - page: Voice widget path: examples/voice-widget.mdx icon: fa-light fa-window-maximize @@ -719,7 +725,9 @@ redirects: - source: "/technical_support" destination: "/examples/inbound-support" - source: "/pizza_website" - destination: "/examples/pizza-website" + destination: "/examples/inbound-support" + - source: "/examples/pizza-website" + destination: "/examples/inbound-support" - source: "/outbound_call_python" destination: "/examples/outbound-call-python" - source: "/voice_widget" diff --git a/fern/examples/appointment-scheduling.mdx b/fern/examples/appointment-scheduling.mdx new file mode 100644 index 00000000..17ce1421 --- /dev/null +++ b/fern/examples/appointment-scheduling.mdx @@ -0,0 +1,266 @@ +--- +title: Appointment scheduling workflow +subtitle: Build an AI receptionist workflow that schedules, reschedules, and cancels appointments using visual nodes. +slug: examples/appointment-scheduling +description: Build a voice AI appointment scheduling workflow with calendar integration, availability checking, and automated confirmations using Vapi's workflow builder. +--- + +## Overview + +Build an AI-powered appointment scheduling workflow that handles inbound calls for booking, rescheduling, and canceling appointments. The workflow uses visual nodes to create branching logic, integrates with calendar systems, checks availability in real-time, and sends confirmation messages. + +**What You'll Build:** +* Visual workflow with branching appointment logic +* Real-time calendar integration and availability checking +* Customer database with automated confirmations +* Global nodes for error handling and validation +* 24/7 phone booking with conditional routing + +## Prerequisites + +* A [Vapi account](https://dashboard.vapi.ai/). +* A Google Calendar account (or other calendar service). + +## Scenario + +We will be creating an appointment scheduling workflow for Tony's Barbershop, a traditional barbershop that wants to automate their phone booking process with sophisticated branching logic to handle different appointment scenarios. + +--- + +## 1. Create a Knowledge Base + + + +
+ + + + + + + + + +
+
+ + In your Vapi dashboard, click `Files` in the left sidebar. + + + - Click `Choose file`. Upload all three CSV files: `services.csv`, `customers.csv`, and `appointments.csv`. + - Note the file IDs. We'll need them later to create tools. + +
+ +