Voice AI & Conversational AgentsUse cases and capstone · Lesson 17 of 17

Capstone: build an appointment-booking voice agent

Article · 25 min · 8 min lecture

Video lecture

Capstone: build an appointment-booking voice agent

13 chapters · about 8 min · full transcript

Coming soon

Chapter 1 of 13

Capstone: booking voice agent

  • Book, reschedule, cancel
  • Human handoff
  • Compliant and tested
  • Default case: Nova Dental

The narrated lecture is in production

Every chapter is scripted and ready. Browse the chapters and read the full transcript now — the video will appear here when it’s published.

Chapters

The brief

Build, test and launch-ready an appointment-booking voice agent for a real or realistic business: a clinic, salon, car service center, tutoring center or property viewing desk. It must answer the phone (or a web widget if you cannot provision a number), book, reschedule and cancel appointments in a real or mock calendar, hand off to humans, and meet the disclosure, consent, privacy and quality standards from this course.

Default case: "Nova Dental" with branches in Dubai Marina, Downtown Dubai and London Soho; English and Arabic callers; services: check-up, cleaning, whitening consultation, emergency slot.

Deliverables

#DeliverableFrom lesson
1Conversation design spec + three sample dialogues4.1
2System prompt (voice template) + ten-utterance test script results4.2
3Tools: availability, book, reschedule, cancel (webhooks) + transfer + end call2.2, 4.3
4Knowledge base: services, hours, prices, policies (FAQ-style, both languages)4.3, 4.4
5Voice choice with test notes; pronunciation dictionary2.1
6Telephony or widget deployment; transfer path3.1
7Compliance pack: AI + recording disclosure lines (EN/AR), privacy notice text, retention settings, consent approach for reminders5.1, 5.2
8Test suite: simulations, tool-call tests, safety tests, audio clips; launch gate6.1
9Monitoring plan + unit economics sheet6.2
103-minute demo recording and a one-page launch memoThis lesson

Build plan (suggested 8 to 12 hours)

1. Design (1.5 h). Required slots: service, branch, date/time, name, mobile. Explicit confirmation before booking. Repair after two failures: keypad or human. Emergency wording approved.

2. Backend (2 h). Build a mock booking API (FastAPI, a Google Calendar or Microsoft 365 calendar integration, or your practice-management system's API). Endpoints: /availability, /book, /reschedule, /cancel. Enforce rules server-side: no past dates, no double booking, valid branches, identity check (mobile number + name) for reschedule/cancel. Protect with a shared secret header.

# Minimal booking rules sketch (extend the availability webhook from Lesson 4.3)
@app.post("/book")
def book(body: BookIn, x_tool_secret: str = Header(default="")):
    require_secret(x_tool_secret)
    slot = get_slot(body.branch, body.start_iso)
    if slot is None or slot.taken:
        return {"ok": False, "say": "That time was just taken. Offer the next two available times."}
    booking = create_booking(slot, body.name, body.mobile, body.service)  # idempotency key = mobile+start_iso
    send_sms_confirmation(body.mobile, booking)  # optional
    return {"ok": True, "booking_id": booking.id,
            "say": f"Booked {body.service} on {booking.spoken_time} at {booking.spoken_branch}."}

3. Agent (2 h). Configure on ElevenAgents (or your chosen stack): prompt from the voice template; Flash-class TTS voice; turn settings; tools; knowledge base; language detection; transfer to reception; end call; evaluation criteria (booked_or_changed, disclosed_ai_first_turn, no_clinical_advice); data collection (service, branch, outcome, language).

4. Tests (2 h). At least: 10 simulations (including Arabic, a date change, a double-booking race, an angry caller, an emergency), 8 tool-call tests, 6 safety tests (clinical advice, invented price, injection, disclosure, recording notice, opt-out), 10 audio clips with noise and accents. Define your launch gate.

5. Deploy (1 h). Connect a test number via Twilio import or SIP (or a web widget). Test on real mobiles. Test transfer during and outside hours.

6. Operate (1 h). Dashboard and alerts; weekly review ritual; unit economics sheet; rollback plan.

Launch memo template

# Launch memo: Nova Dental AI receptionist (v1.0)
Scope: inbound bookings, reschedules, cancellations; EN/AR; 3 branches. Not in scope: clinical triage, payments.
Launch gate results: disclosure 100% | safety 0 failures | simulation success X% (target Y%) |
  median/p90 latency A/B ms (budget C) | Arabic success D% (min E%)
Risks and mitigations: [top 3]
Compliance: AI + recording disclosure (EN/AR approved text); privacy notice updated; retention 60 days;
  no outbound calls in v1; data processing locations confirmed with vendor.
Monitoring: alerts on disclosure failure, p90 latency, success drop; weekly review owner: [name]
Rollout: 20% of calls for week 1 via traffic split -> 100% if metrics hold. Rollback: previous version.
Decision requested: approve staged launch on [date].

Assessment rubric (self or peer)

CriterionExcellent
Conversation designNatural, short turns; smart confirmations; good repair; bilingual
Tool safetyRules enforced server-side; honest failures; idempotent booking
ComplianceDisclosure and recording notice in first turn; approved translations; retention set; no improvised legal text
TestingLaunch gate defined and met; safety suite passes; per-language metrics
OperationsAlerts, weekly loop, staged rollout, rollback, unit economics
DemoA real call showing booking, a correction, a transfer and a refusal of clinical advice

Stretch goals

  • Outbound reminder calls the day before, with consent checks and voicemail detection.
  • WhatsApp or SMS confirmations with reschedule links.
  • A speech-to-speech variant (OpenAI Realtime or Gemini Live) compared against your cascade on latency, success and cost.

Key takeaways

  • The capstone agent books, reschedules and cancels via server-enforced, idempotent tools with identity checks and honest failure messages.
  • It discloses AI and recording in the first turn with approved English and Arabic text, and never gives clinical advice.
  • A launch gate (disclosure, safety, success, latency, per-language minimums) must pass before a staged rollout with rollback.
  • A one-page launch memo and a real demo call communicate scope, results, risks, compliance and the decision needed.

Check your understanding

Quick questions to lock in the lesson. They don’t count towards your certificate.

  1. Where should the rule 'no double bookings' be enforced?
  2. Why make the book endpoint idempotent?
  3. Which launch plan is most responsible?

Put it into practice

Build the Nova Dental (or your own) booking agent: backend, agent config, tests with a launch gate, deployment, monitoring and a launch memo. Record a 3-minute demo call covering a booking, a correction, a transfer and a refusal of clinical advice.

Enrol for free to save your progress

Reading is always free. Enrol to keep your place, take the final assessment and earn a verifiable certificate.