All Verticals · Voice Workflow
Appointment Booking + Confirmation SMS
When book_appointment fires, the workflow offers live Cal.com availability, re-verifies the slot before booking it atomically, and texts a confirmation — with a graceful fallback if the slot was taken.
Workflow
How it runs, step by step
- 01TRIGGER
Tool call: book_appointment
The agent calls book_appointment when the caller wants to schedule.
- 02MEMORY
Read caller
Load the caller's context from Zep.
- 03INTEGRATION
Get availability
Fetch open slots from Cal.com for the requested service.
- 04VOICE
Offer times
Read the next available times back to the caller.
- 05BRANCH
Slot chosen?
Branch on whether the caller picked a time.
- if no → Offer callback
- if yes → Verify + book
- 06VOICE
Offer callback
Offer a callback or an alternate day when nothing fits.
- 07INTEGRATION
Verify + book
Re-verify the slot is still open, then book it atomically to prevent double-booking.
- 08END
End (no booking)
End without a booking; a follow-up is queued.
- 09BRANCH
Booked?
Branch on the booking result.
- if confirmed → Send confirmation
- if taken → Apologize + take callback
- 10INTEGRATION
Send confirmation
Text the caller the confirmed time and a calendar link via Twilio.
- 11VOICE
Apologize + take callback
If the slot was just taken, apologize and capture a callback.
- 12MEMORY
Save to Zep
Persist the booking and context to memory.
- 13END
Return tool result
Return the booking result to the agent.