Your team's schedule already lives in Google Calendar or Yandex Calendar, and clients message you on WhatsApp or Telegram: "Anything on Thursday after six?" Someone opens the calendar, works out how long the service takes, remembers the specialist has a site visit after lunch, and only then replies. That is a natural job for an AI agent. But if you simply "give it calendar access", it will offer times that look free and are not: lunch, travel, room preparation. This guide covers what an agent actually sees in a calendar, which rules you need to keep elsewhere, how it picks a slot, and how to stop double bookings.
This piece is about the calendar as a data source. For industry-specific booking flows, see our guides on clinic booking and beauty salon booking.
What the agent really sees
A calendar stores events: start, end, title, sometimes a description and attendees. It does not store "free slots" — those have to be calculated. There are two ways to get the data.
- Busy time only. The Google Calendar API has a freeBusy query: you pass a time range and a list of calendars and get back "busy" intervals with no titles or descriptions. For booking that is usually enough, and it is kinder to privacy — the agent never reads what a colleague's meeting is about.
- Full events. Needed when the agent must understand event types, for example telling "Appointment" apart from "Online consultation block", which is exactly where bookings are allowed.
Yandex Calendar does not offer a public REST API comparable to Google's. Integration runs over CalDAV (server caldav.yandex.ru) using a dedicated app password rather than the main account password. In organisations on Yandex 360, an administrator can disable app passwords, so check that before you plan anything. Over CalDAV, busy time is derived from events, which means the integration fetches events for the period and works out availability itself.
| Question | Google Calendar | Yandex Calendar |
|---|---|---|
| How to connect | Official API, via a Google account or service account | CalDAV, login plus a "Calendar" app password |
| Busy-only data | Yes, a dedicated request | Usually not — events are read and processed by the integration |
| Change notifications | Push subscription to event changes | Periodic polling |
| Check before starting | Who owns the calendars and whether access is granted | Whether app passwords are allowed in your organisation |
One detail people miss: every event has a "busy / free" flag. If someone sets an all-day reminder "Call supplier" and leaves it marked busy, the whole day is closed for the agent. Clean up recurring personal events before launch.
Rules the calendar does not hold
A bookable slot is not just a gap between events. It is a gap that fits a specific service under your business rules. Keep these in a sheet, a database or the agent's configuration:
- Working hours per specialist and weekday, including short days and holidays.
- Service durations — "consultation, 30 minutes", "first visit, 60".
- Buffers before and after: cleaning, travel, notes.
- Minimum notice, for example no bookings less than two hours ahead.
- Booking horizon — how many weeks ahead the schedule is open.
- Who does what, and whether a room or piece of equipment is also required (that becomes a separate resource calendar).
A useful test: everything your front desk keeps in their head while looking at the calendar should end up in that sheet. Otherwise the agent will be wrong exactly where a person "just knows".
How the agent picks a slot
- Understand the request: service, specialist (or "anyone"), day and time window.
- Load working hours for the matching specialists.
- Query busy time from the calendar for that window.
- Subtract busy time and buffers from working hours.
- Cut what remains into slots of the service length at your chosen step.
- Offer two or three options rather than the full list.
- Re-check the chosen slot right before booking — half an hour may have passed.
- Create the event in the specialist's calendar and send the client a confirmation.
Client: Hi, could I book a consultation on Thursday after six?
Agent: Hello! On Thursday 12 November we have 18:30 and 19:30. The consultation takes about 40 minutes. Which works better?
Client: 18:30.
Agent: You're booked for Thursday 12 November at 18:30. Could you share your name and a phone number?
Double bookings and other failure points
Two clients, one slot
The agent offers 18:30 to two people in different chats and both accept. The fix is a fresh availability check before creating the event and, if volume is high, a short tentative hold on the slot while the client replies, released automatically if they go quiet.
Manual bookings in parallel
Perfectly fine — some clients will always call. What matters is that every booking lands in the same calendar, not in a notebook or a separate spreadsheet the agent cannot see.
Time zones
If your clients are in the Gulf or the UK and your team is in another zone, time zones become the main source of errors. Check the zone set on each connected calendar, and always state in messages which local time the appointment is in.
Recurring events with exceptions
A weekly meeting that was moved once is a classic trap, especially over CalDAV, where the integration has to expand recurrences itself. Test it on a sandbox calendar.
Rescheduling
"Move me to Friday" must update the client's existing booking, not create a second one. Store a client identifier — phone number or chat ID — in the event.
What stays with people
| Process | What the AI does | What stays with a person |
|---|---|---|
| Finding time | Calculates slots from calendar plus rules, offers options | Sets and maintains the rules |
| Booking | Re-checks the slot, creates the event, confirms | Reviews new bookings and corrects them if needed |
| Reschedule and cancel | Finds the booking, offers new time, frees the old slot | Handles disputes, fees and repeat no-shows |
| Unusual requests | Recognises them and hands over | Negotiates multi-service visits or special rooms |
An agent that knows when to hand a conversation over is worth more than one that tries to answer everything. More on how we build them on our AI agents page, and more connection guides in the Integrations section.
Pre-launch checklist
- Each specialist has their own calendar, and all bookings, including manual ones, go there.
- Personal events are in a separate calendar or flagged correctly.
- The rules sheet is complete: hours, services and durations, buffers, notice, horizon.
- Calendar time zones are verified.
- Access is limited to the calendars needed, with minimal permissions; for Yandex, an app password is created and allowed.
- You have tested booking, rescheduling, cancelling, two clients on one slot and out-of-hours requests.
- It is clear which person receives conversations the agent hands over.
FAQ
Will the agent see the content of staff meetings?
With Google you can request busy intervals only, without titles. With Yandex over CalDAV the integration reads full events, so keep personal meetings in a separate calendar the agent has no access to.
Part of our team uses Google and part uses Yandex. Is that a problem?
The agent can read both, but the rules and slot logic must be shared. It is simpler to keep booking calendars in one system and personal calendars wherever people prefer.
Can we skip the separate rules sheet?
Partly — you can block non-working hours with events — but that gets messy fast. Changing one cell is easier than editing dozens of events.
How much does this cost?
It depends on the number of specialists, channels and how complex your booking rules are. The first conversation is there to work that out — get in touch.