Library / Calendar & Scheduling
Calendar & Scheduling
Create replay-safe client kickoff bookings in Google Calendar and Gmail
Runs on booking webhook calls, validates timestamps and request history to block duplicate replays, creates Google Calendar kickoff events with Gmail confirmations, and routes changed slots to human review.
What it does
## Create replay-safe client kickoff bookings ### How it works 1. Authenticates the booking webhook before validating the exact workflow 08 contract or touching durable and provider state. 2. Validates strict offset timestamps against their IANA timezone, derives stable request evidence, and checks all booking history in the exact onboarding owner and run scope. 3. Returns confirmed replays without new work and sends every changed slot or payload to human review without querying or mutating Google Calendar. 4. Persists booking intent and verifies its acknowledgement before checking native Google Calendar availability, creating a deterministic event, and reading it back. 5. Records confirmation only from matching, non-cancelled provider evidence, then attempts to create a Gmail draft after the confirmed Booking row is durably acknowledged. 6. Reconciles unresolved intents by getting the stored provider event only; missing, duplicate, or mismatched state becomes human review and never another create. ### Setup steps - [ ] Create the Bookings Data Table with the fields mapped in the Data Table nodes. - [ ] Set BOOKING_INTAKE_TOKEN and BOOKING_CALENDAR_ID in n8n Variables. - [ ] Connect Google Calendar and Gmail credentials to their native nodes. - [ ] Select one local fixture in the manual selector and exercise all seven modes while inactive. - [ ] Test a tagged webhook request and its exact replay before activation. ### Customization Adapt the calendar, kickoff copy, reconciliation cadence, and review process while preserving stable parent scope, intent-before-create, provider readback, and draft-only communication.
The steps
- Booking Intake Webhook
- Validate Intake Token
- Intake Authorized?
- Build Unauthorized Response
- Respond Unauthorized
- Normalize Booking Request
- Booking Request Valid?
- Build Invalid Response
- Respond Booking Outcome
- Find Existing Booking Rows
- Resolve Booking State
- Booking Replay?
- Build Replay Response
- Booking Changed?
53 steps in total.
Similar automations
Email AutomationCreate replay-safe client report Gmail drafts with webhooks and Data Tables21 stepsBuilding Blocks & UtilitiesValidate incoming webhook events and drop replays using a dedupe key8 stepsCalendar & SchedulingPublish approved appointment services to Square Appointments and Wix Bookings46 stepsData Sync & ETLCapture and replay webhooks with Postgres, Slack, and PagerDuty23 steps