Guides
Booking functions

Booking functions

Let your assistant schedule appointments on your Cal.com calendar during a call — connect Cal.com, pick the event, and the agent collects the time, confirms the timezone, checks availability, and books. How to set it up, how timezones are handled, and the optional confirmation text.

A booking function lets your assistant schedule a real appointment on your Cal.com calendar while it's on a call. The caller asks to book; the agent collects the time, the name and email of the person it's for, confirms which timezone to book in, checks your live availability, and creates the booking — then reads the confirmed time back. If the requested time is taken, it offers the nearest open times on the same day.

Booking is available on Seed and above.

Before you start: connect Cal.com

The booking function books into your Cal.com account. A workspace owner or admin connects it once per workspace:

  1. Open Integrations in the sidebar.
  2. Connect Cal.com — generate an API key in your Cal.com settings (Settings → Developer → API Keys) and paste it in.

Until a Cal.com account is connected, the booking-function form shows "Cal.com Integration Required" with a shortcut to Integrations. Once connected, the form loads your events automatically.

Creating a booking function

  1. Open Functions in the sidebar, then open the Book Meeting tab.
  2. Click New Function.
  3. Fill in:
    • Name — letters/numbers/underscores only. The LLM sees this name when it decides which function to call, so make it descriptive: book_consultation, not func1.
    • Cal.com Event — pick from the dropdown. We load the event types straight from your connected Cal.com account (e.g. "30 Min Meeting", "15 Min Meeting"), so you don't have to look up an ID. If we can't reach Cal.com for a moment, the field falls back to a plain ID box so you're never blocked.
    • Booking Slots — how many times the agent offers at once, from 1 to 5 (default 3). It applies when the caller asks what's available and when the agent offers alternatives to a taken slot.
    • Send SMS confirmation (optional) — turn this on to text the caller the details after booking, then write the message in SMS Content. See The confirmation text.
    • Qualifying questions (optional) — questions the caller must pass before anything is booked. If the caller doesn't qualify, the assistant tells them it can't book, using your What to say if the caller doesn't qualify line as the reason. It does not book.
    • When should the assistant book a meeting? — the prompt that tells the agent when to book. It starts with a default. Be specific: "When the caller wants to schedule a consultation or a callback."
  4. Click Create Function.
  5. Open Assistants → <your assistant> → Setup. Under Attach Function, select the new booking function. New calls to this assistant can then book. A call that is already in progress does not pick it up.

How it works in a call

If you added qualifying questions, the assistant asks those first. It moves on to the steps below only when the caller qualifies.

When the caller wants to book, the assistant:

  1. Confirms the timezone — it asks outright ("what timezone are you in?"). This matters — see below.
  2. Works whichever way the caller approaches it:
    • If the caller has a specific time in mind, the agent checks it against your live Cal.com availability — books it if it's open, or offers the nearest alternatives on the same day if it's taken. If that day is full, it asks the caller to try another day.
    • If the caller asks what's available (or has no time in mind), the agent reads out open times in the next 7 days — one per day, up to your Booking Slots setting — and lets them pick. If the next 7 days are full, the agent says so.
  3. Collects the name and email of the person the meeting is for once a time is agreed, books it, and reads the confirmed day and time back, with its timezone. If you turned on Send SMS confirmation, it also asks whether it may text the caller the details, and it texts only after a yes.

After booking, the assistant tells the caller a confirmation email is on its way. Cal.com sends that email, not dBel.

When the call ends, the booking's name and email are saved to the caller's contact (on the Contacts page), but only into a field that is empty. A name the contact already has is never changed. An email it already has changes only when the caller gives a new one for their own booking, the assistant reads the new address back, the caller confirms it, and the booking goes through. If the caller books for someone else (for example, "book it for my colleague"), the booking's details are not saved to the caller's contact.

If something goes wrong, the agent says so and never claims a booking it didn't make. If Cal.com can't be reached, it tells the caller it couldn't complete the booking. If it can't understand the time, it asks the caller to say the day and time again.

Timezones (the important part)

The caller might not be in your timezone. If someone in Sydney calls a business set to US Pacific and says "book me at 5pm," that's 5pm Sydney time — not 5pm Pacific. Get this wrong and the appointment lands ~12+ hours off.

So the assistant always asks the caller which timezone they're in and books in that zone. It says the zone as a city ("10 am Melbourne time"), never as a code. Daylight saving is handled correctly — "3pm Sydney" books 3pm Sydney whether it's summer or winter there.

Booking for someone else. If the caller books for another person ("it's for my colleague Sam in Melbourne"), the assistant books in ONE timezone: Sam's. It says which zone the times are in, and it asks for Sam's name and email, not the caller's. Cal.com gets Sam's details and Sam's timezone.

There is no business-timezone fallback. If the timezone is missing or is not a real timezone, the assistant does not book. It asks again: "Which timezone should I book this in?"

Booking works on phone calls, the playground, and web calls. On every channel the assistant asks the caller for their timezone. It does not work out the timezone from the caller's number.

The confirmation text (optional)

Turn on Send SMS confirmation to offer the caller an SMS after the booking is made. The assistant asks first, and it sends the text only after the caller says yes (see Texting callers). Write the message in SMS Content. Use the Insert variable button under the box to add a variable; a preview shows the text with and without values. The confirmation text takes these variables:

  • {{appointment_date}} — the booked day and time, in the timezone it was booked in.
  • {{appointment_link}} — the video meeting link Cal.com made for this booking. An event with no video link (for example, an in-person address) has none, and the variable is left out. Write {{appointment_link|}} to make that explicit.
  • {{assistant_name}} — the assistant's name, as written in the dashboard.
  • {{business_name}}, {{callback_number}} and {{callback_line}} — your business name and callback number.

Example: You're all set for {{appointment_date}}. {{appointment_link|}}

The older single-brace forms, {appointment_date} and {appointment_link}, still work in this text. {{appointment_link}} is not your booking page: to text a link where the caller can book, use a Send-SMS function with {{booking_link}} (below).

The text only sends on phone calls where your assistant's number is SMS-capable (the same requirement as the SMS function), and only to a caller with a US, Canadian or Australian number. On web/playground calls, on a number that can't text, or to any other caller, the booking still completes, just without the SMS.

Not every number can text every country. A text to a US mobile needs a number you imported from your own Twilio account and registered there for US texting. Texts to US numbers are off for numbers bought through dBel for now. Texting has been tested end to end to an Australian mobile only. See the texting guide for which numbers can text whom.

Each confirmation text sent from a dBel number is billed per message. The SMS Content box shows the price. Texts from a Twilio number you imported are billed by Twilio on your own Twilio account.

The Send-SMS text and your booking page

A Send SMS function texts the caller a message you write (see SMS functions). To include the page where they can book, pick an event under Booking page (optional) in the function. This needs Cal.com connected on the Integrations page. Then add {{booking_link}} to the text with Insert variable. dBel stores the event's own booking page from Cal.com when you save, and the text sends it.

  • {{booking_link}} is offered only once an event with a booking page is picked. Without one, the text has no link.
  • {{assistant_name}}, {{business_name}}, {{callback_number}} and {{callback_line}} work here too.
  • A bracketed word such as [Booking Link] is not a variable: nothing fills it, and the caller gets it exactly as written. The editor warns you when it sees one.

Limitations

  • Cal.com only. Other calendar providers aren't supported.
  • The assistant creates bookings — it doesn't reschedule or cancel them from a call. Those are managed in Cal.com.
  • The confirmation text needs an SMS-capable phone number on the assistant.
  • The event's location/meeting type is whatever you've configured on the Cal.com event type — the assistant doesn't change it.