Library / Calendar & Scheduling
Calendar & Scheduling
Book confirmed webhook appointments in Google Calendar using a POST endpoint
When an API call/webhook arrives, it manages calendar events using Google Calendar.
What it does
## Book confirmed appointments in Google Calendar ### Purpose and audience For teams connecting a booking form, assistant or internal tool to Google Calendar. Accept a request that the caller has already confirmed, check the requested interval and create a private calendar event only when that interval is available. This workflow does not obtain the person's confirmation itself. ### How it works The webhook validates real RFC3339 timestamps, a future start, an interval of at most one day, a summary and a request ID. The request must include confirmed: true. Calendar availability must be an explicit boolean. After creation, the workflow checks the returned event ID, confirmed status and times before reporting success. ### Setup 1. Configure a Webhook Header Auth credential on Receive Request. Send that header from your caller and choose a unique webhook path. Never put secrets in this note or in the request body. 2. Select your Google Calendar OAuth credential on both Google Calendar nodes. Replace both YOUR_CALENDAR_ID placeholders with the same calendar ID. 3. Start with a dedicated test calendar. Keep the workflow inactive until your installation, credentials, caller and error paths have been tested. 4. Send start, end, summary, request_id and boolean confirmed. Timestamps need seconds and an explicit offset. The summary must be nonempty and at most 160 characters. The request ID must contain 16 to 64 lowercase letters a to v or digits. 5. Keep the same request ID for retries of the same intended booking. Use a different ID for a different booking. ### Responses and limits HTTP 201 means the matching event receipt was confirmed. HTTP 400 means invalid input. HTTP 409 means the interval is busy and this attempt did not create a new event. HTTP 502 means the calendar check failed or creation remains unconfirmed. Inspect the response status to distinguish those cases. Availability checking and event creation are separate operations. Serialize all calendar writers if overlapping reservations are unacceptable. This workflow provides no exactly-once guarantee. After an ambiguous response, reconcile the request ID in the calendar before retrying; a busy retry can reflect the earlier successful event. Events have no attendees, confirmation emails or reminders. Separate workflows are needed for customer notifications, rescheduling and cancellation. Isolated fixture
The steps
- Receive Request
- Validate Request
- Request Is Valid
- Check Calendar
- Interval Is Available
- Create Appointment
- Confirm Created Event
- Return Booking
- Return Invalid
- Return Provider Error
- Return Busy
- Return Unconfirmed
- Validate Calendar Result
Similar automations
Calendar & SchedulingCheck availability and book Google Calendar appointments from Vapi voice calls15 stepsCalendar & SchedulingBook and manage LINE OA appointments with OpenAI, Google Calendar and Sheets40 stepsCalendar & SchedulingBook and manage auto repair appointments with Retell AI and Google Calendar39 stepsCalendar & SchedulingBook, cancel, and reschedule WhatsApp appointments with Google Calendar and Sheets49 steps