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
- Receives a POST webhook request to book an appointment with a requested start time, name, and purpose.
- Checks Google Calendar availability for the requested 1-hour window and either creates the event or searches for open times.
- If the time is unavailable, fetches nearby availability from Google Calendar and returns three alternative time slots in the webhook response.
- If the time is available, creates a Google Calendar event and returns the booking status and event details.
- Receives a POST webhook request to reschedule an appointment, verifies the new slot is available in Google Calendar, and looks up the original event.
- 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.
- 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.
- 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
- Connect your Google Calendar OAuth2 account and select the target calendar used for availability checks and event creation.
- Connect your Google Sheets OAuth2 account and update the spreadsheet and sheet tab where rows should be appended.
- Configure the calling/assistant system (for example Retell AI) to send POST requests to the booking, reschedule, cancel, and logging webhook URLs.
- 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).