See llms.txt for all machine-readable content.

Back to Templates

Book, reschedule and cancel consultations with Retell AI and Google Calendar

Quick overview

This workflow exposes webhooks to book, reschedule, and cancel 1-hour consultations in Google Calendar, and logs call summaries into Google Sheets.

How it works

  1. Receives a POST webhook request to book an appointment with a requested start time, name, and purpose.
  2. Checks Google Calendar availability for the requested 1-hour window and either creates the event or searches for open times.
  3. If the time is unavailable, fetches nearby availability from Google Calendar and returns three alternative time slots in the webhook response.
  4. If the time is available, creates a Google Calendar event and returns the booking status and event details.
  5. Receives a POST webhook request to reschedule an appointment, verifies the new slot is available in Google Calendar, and looks up the original event.
  6. If rescheduling is possible, deletes the original Google Calendar event, creates the new event with the original details, and responds with the updated appointment information; otherwise it returns three alternative slots.
  7. Receives a POST webhook request to cancel an appointment, finds the matching Google Calendar event in the provided time range, deletes it if found, and responds with either a cancelled or not-found status.
  8. Receives a POST webhook request containing call metadata and a summary, then appends a new row with the caller details and notes to a Google Sheets spreadsheet.

Setup

  1. Connect your Google Calendar OAuth2 account and select the target calendar used for availability checks and event creation.
  2. Connect your Google Sheets OAuth2 account and update the spreadsheet and sheet tab where rows should be appended.
  3. Configure the calling/assistant system (for example Retell AI) to send POST requests to the booking, reschedule, cancel, and logging webhook URLs.
  4. Ensure webhook payloads include the expected fields (for booking: startTime, name, purpose; for reschedule/cancel: original_startTime and new_startTime where applicable; for logging: args such as name, phone_number, summary, and appointment_status).