Библиотека / Календарь и планирование
Календарь и планирование
Проверка доступности и запись на приём в Google Calendar из голосовых звонков Vapi
Обслуживает два вебхук-инструмента Vapi: проверяют занятость в Google Calendar и записывают на приём прямо во время звонка, предлагают ближайшие свободные слоты, если время занято, и отклоняют запросы без общего секрета.
Что делает
## Book appointments in Google Calendar from Vapi voice agent calls ### Who's it for Agencies and businesses running a Vapi voice agent for clinics, salons or other services booked by phone, who need it to check real availability and book during the call. ### How it works - Two webhooks serve two Vapi custom tools: check_availability(date, time) and book_appointment(name, phone, email, date, time). - Requests without your shared secret get a 401. - Check availability reads Google Calendar free/busy. If the slot is taken, too soon or outside opening hours, it returns the 3 nearest free slots for the visit duration. - Book appointment re-checks the slot, creates the event, and only then answers status: ok or a clear error code, in Vapi's tool-result format. ### Setup 1. Select your Google Calendar credential in the three Google Calendar nodes. 2. In Configure me, set the secret, calendarId (primary works), timezone (default Europe/Madrid), opening hours and visit duration. 3. Activate the workflow and copy both production webhook URLs. 4. In Vapi, create one custom tool per URL, sending the secret in the X-Vapi-Secret header or as a Bearer token. Arguments: date (YYYY-MM-DD), time (HH:mm), plus name, phone and optional email for booking. 5. In the assistant prompt, give today's date and confirm only on status: ok. ### Requirements - n8n (Cloud or self-hosted) - A Vapi account with an assistant - A Google Calendar account ### Customization tips - Tune the notice period, slot step, search window and number of alternatives in Configure me. - Use locale for weekday names in another language and eventTitle to rename events. - Add attendees or reminders in Create calendar event.
Шаги
- Receive check_availability call
- Receive book_appointment call
- Set tool: check_availability
- Set tool: book_appointment
- Configure me
- Parse and validate tool call
- Route by tool
- Get busy times
- Build availability result
- Re-check the slot
- Confirm slot is still free
- Slot still free?
- Create calendar event
- Build booking result
Всего шагов: 15.
Похожие автоматизации
Генерация и обогащение лидовПродвижение ресторана и приём заказов голосом через VAPIШагов: 9Календарь и планированиеЗапись на приём по голосу с Vapi, Gemini и календарёмШагов: 10Генерация и обогащение лидовКвалификация B2B-лидов с звонками VAPI и Google SheetsШагов: 5Генерация и обогащение лидовЗапуск звонков Vapi по новым возможностям в Go High LevelШагов: 5