All articles
Integrations
CRM and integrations7 min

Google and Yandex Calendar for Booking: How an AI Agent Finds Free Slots and Why the Calendar Alone Is Not Enough

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.

QuestionGoogle CalendarYandex Calendar
How to connectOfficial API, via a Google account or service accountCalDAV, login plus a "Calendar" app password
Busy-only dataYes, a dedicated requestUsually not — events are read and processed by the integration
Change notificationsPush subscription to event changesPeriodic polling
Check before startingWho owns the calendars and whether access is grantedWhether 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

  1. Understand the request: service, specialist (or "anyone"), day and time window.
  2. Load working hours for the matching specialists.
  3. Query busy time from the calendar for that window.
  4. Subtract busy time and buffers from working hours.
  5. Cut what remains into slots of the service length at your chosen step.
  6. Offer two or three options rather than the full list.
  7. Re-check the chosen slot right before booking — half an hour may have passed.
  8. 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

ProcessWhat the AI doesWhat stays with a person
Finding timeCalculates slots from calendar plus rules, offers optionsSets and maintains the rules
BookingRe-checks the slot, creates the event, confirmsReviews new bookings and corrects them if needed
Reschedule and cancelFinds the booking, offers new time, frees the old slotHandles disputes, fees and repeat no-shows
Unusual requestsRecognises them and hands overNegotiates 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.

Subscribe to AI Insights

Case studies, tips and AI automation trends — weekly

Want similar results?

Get a free consultation and ROI calculation for your company

Free Consultation

Related Articles

Integrations

Instagram API Limits in 2026: What a DM Bot Can and Cannot Do, and How to Plan Around It

A map of what the official Instagram API allows a bot to do: when you may message a customer, why long replies fail, and what to check before going live.

Integrations

Telegram Mini Apps for Business: Catalog, Booking and Payments Inside the Messenger

What a Telegram Mini App does better than a chat bot, how to connect it to your stock, calendar and an AI agent, and what to test before launch.

Integrations

Telegram Business: How to Connect a Bot to Your Company's Personal Account So It Replies to Customers in Your Name

Customers message your manager directly, not your bot. Here is how Telegram Business lets a bot answer from a personal account, what it can and cannot do, and how to keep it from embarrassing you.

Integrations

Legacy CRM Without an API: How to Connect AI When There Is No Integration

Your in-house or ageing CRM will not share data with anything. Here are five workarounds, where each one breaks, and how to pick the safe one for your system.

Integrations

Shared inbox triage: how AI reads incoming email and routes it to the right person

A shared info@ inbox is where leads and complaints get lost. Here is how AI reads each email, sets topic and urgency, and hands it to the right owner.

Integrations

Excel and Google Sheets Reports That Build Themselves: How the Pipeline Works and Where AI Fits

What a self-updating report is made of, why formulas rather than AI should calculate the numbers, and how to launch your first one without rework.

AI Booking with Google and Yandex Calendar | UNIKA