# Your AI voice agent double books: why, and how to stop it

Two callers in the same slot, or the same caller booked twice. Builders on Vapi, Retell and n8n hit this in their first busy week. It has three causes, and a prompt alone fixes none of them.

- **Free times go stale.** The agent checked at the start of the call. Three minutes later, another call took the slot.
- **A retry books twice.** The booking timed out, the agent said “let me try again”, and the first request had in fact gone through.
- **Nothing guards the write.** Creating a calendar event does not check whether the time is still free. Two requests, two events.

## Why it happens
A voice call lasts minutes, and other calls happen at the same time. [Nylas puts it plainly: double-booking is a concurrency problem, not an availability problem](https://developer.nylas.com/docs/cookbook/scheduler/prevent-double-booking/); showing a slot as open does not stop two people from taking it. Builders report it on the [Vapi community](https://vapi.ai/community/m/1412216179371806893) and the [n8n forum](https://community.n8n.io/t/double-booking-google-calendar-events/163609): the availability tool said free, and two callers got the same hour. Checked on 6 December 2026.

## The three checks that stop it
- Check again at the moment of booking, not only at the start of the call, and refuse the booking if the time is no longer free.
- Write one booking at a time per calendar, so two requests cannot both pass the check before either is written.
- Give every booking a key (the call id plus a counter) and send the same key on a retry, so a retry finds the first booking instead of making a second.

## Rules for the agent's prompt
Check free times again right before you book; times you read earlier may be taken.
If the booking answer says the time is taken, offer the alternatives it gives. Do not book anyway.
If the booking timed out, do not book again with new details. Retry the same request, or look the booking up first.

## What we do
Bookings for one calendar are handled one at a time, and each is checked against the calendar right before it is written. A taken slot comes back as `slot_taken` with the nearest free times. A repeat with the same `Idempotency-Key` returns the first booking, and the calendar event id is ours, so even a lost answer cannot create a second event. [How it works in the API.](https://saybooked.com/docs)

## Questions
**Can a better prompt fix double bookings?** It helps with the agent's part, but two calls at once are a race between requests. The guard has to be in the booking step.
**Does Google Calendar stop overlapping events?** No. Google Calendar lets you create overlapping events; whether a time is free is your code's job.
**What does the caller hear when the slot was just taken?** The answer carries a sentence to say, such as “That time is taken. I can offer 10:30 AM or 11 AM the same day.”

Docs: https://saybooked.com/docs.md · For AI assistants: https://saybooked.com/agents.md · Pricing: https://saybooked.com/pricing.md
