İçeriğe geç
YENİPazar yeri ve ekibin: geliştirdiğini sat; planlar ve değişiklikler sen görmeden önce test edilsin. Yeniliklere bak

Kütüphane / Takvim ve Zamanlama

Takvim ve Zamanlama

Vapi sesli aramalarından Google Calendar müsaitliğini kontrol edin ve randevu oluşturun

Google Calendar boş/meşgul durumunu kontrol eden ve görüşme sırasında randevu oluşturan iki Vapi araç webhook'una hizmet verir; saat doluysa yakın uygun saatleri önerir ve paylaşılan gizli anahtar olmayan istekleri reddeder.

Ne yapar

## 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.

Adımlar

  1. Receive check_availability call
  2. Receive book_appointment call
  3. Set tool: check_availability
  4. Set tool: book_appointment
  5. Configure me
  6. Parse and validate tool call
  7. Route by tool
  8. Get busy times
  9. Build availability result
  10. Re-check the slot
  11. Confirm slot is still free
  12. Slot still free?
  13. Create calendar event
  14. Build booking result

Toplam 15 adım.

Benzer otomasyonlar