Zum Inhalt springen
NEUMarktplatz und dein Team: Verkaufe, was du baust, und bekomm Pläne und Änderungen, die getestet sind, bevor du sie siehst. Neuigkeiten ansehen

Bibliothek / Kalender & Terminplanung

Kalender & Terminplanung

Verfügbarkeit prüfen und Google Calendar-Termine aus Vapi-Sprachanrufen buchen

Stellt zwei Vapi-Tool-Webhooks bereit, die Google Calendar frei/belegt prüfen und Termine während des Anrufs buchen, bei belegter Zeit nahe Alternativen vorschlagen und Anfragen ohne das gemeinsame Geheimnis ablehnen.

Was sie bewirkt

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

Die Schritte

  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

Insgesamt 15 Schritte.

Ähnliche Automatisierungen