Templates / Analyze Google Calendar patterns with OpenAI and send Gmail weekly digest

Analyze Google Calendar patterns with OpenAI and send Gmail weekly digest

Needs changes

by Oneclick AI Squad ✓ · 66 views · created 2026-06-10 · Personal Productivity, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 16 nodes and runs on a schedule (cron 0 7 * * 1-5) (plus 1 other trigger). Along the way it connects Google Calendar, OpenAI Chat Model and Gmail. It also calls sheets.googleapis.com over HTTP.

How it runs

Trigger: On a schedule (cron 0 7 * * 1-5) (plus 1 other trigger).

  1. Set Analysis Window (Edit Fields (Set)): sets 5 fields: windowDaysBack, windowDaysForward, timeMin…
  2. Fetch Google Calendar Events (Google Calendar): get many
  3. Wait: pauses before continuing
  4. Python - Normalize Events (Code): runs custom Python code
  5. Filter: keeps only the items that match a condition
  6. Python - Classify Events (Code): runs custom Python code
  7. Aggregate All Events (Merge): merges the data from its input branches
  8. Python - Pattern Detection Engine (Code): runs custom Python code
  9. AI - Generate Optimization Insights (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  10. JS - Format Final Report (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

Google CalendarOpenAI Chat ModelGmail

HTTP calls to: sheets.googleapis.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI - Generate Optimization Insights (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI - Generate Optimization Insights (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

Quick Overview This workflow runs on a weekday schedule or via webhook, pulls events from Google Calendar, analyzes meeting and focus-time patterns, generates optimization advice with OpenAI, then emails a digest through Gmail and appends the results to…

Excerpt from Oneclick AI Squad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.