CASE STUDY · ACTIVE PERSONAL ACCOUNT

Approval-Gated Gmail-to-Google-Calendar Automation with Conflict Recheck & Ledger

A 30-node n8n workflow that screens Gmail inquiries, checks a persistent ledger, validates dates and timezones, confirms calendar availability, requires human approval, and rechecks conflicts before creating events.

Smart Scheduler V1 Gmail-to-Calendar architecture map
30-node Gmail-to-Calendar flow with persistent ledger deduplication, structured extraction, explicit approval gate, and post-approval conflict recheck.

PROBLEM & ARCHITECTURE

How the system works

PROBLEM ADDRESSED

Why naive automation fails here

Allowing an LLM to write directly to a calendar risks double-bookings, duplicate events from retried emails, and incorrect timezone interpretations.

TECHNOLOGY STACK

Core components

n8n (30 nodes)Gmail APIGoogle Calendar APIOpenRouterJavaScriptn8n Data Tables
EXECUTION FLOW

Architecture steps

  • Screens inbound Gmail threads and normalizes message identifiers against a persistent Data Table ledger to prevent duplicate processing.
  • Uses OpenRouter structured extraction to parse candidate meeting details, followed by deterministic date/time and timezone validation.
  • Queries Google Calendar availability before requesting explicit human approval.
  • After approval, rechecks both the ledger and Google Calendar to catch newly created conflicts before executing the calendar write.
RELIABILITY CONTROLS

Deterministic safeguards

  • Idempotency ledger blocks duplicate processing of the same email thread.
  • Mandatory human approval gate sits strictly upstream of any calendar mutation.
  • Post-approval conflict recheck prevents race-condition double bookings.

EVIDENCE & HONEST BOUNDARIES

Verified scope and limitations

November 1–21, 2026 snapshot: 20 successful execution records on the developer's own Gmail and Google Calendar account, including real event creation (#395), rejected approval stop (#385), and simulated post-approval conflict blocking (#390).

Operates on the developer's own account. Alert email delivery succeeded in test #398, though the Error Trigger itself has not been fired live; sustained high-volume concurrency remains unverified.