Templates / Analyze weekly KPI drops with Google Sheets, Gmail, and GPT-4o-mini

Analyze weekly KPI drops with Google Sheets, Gmail, and GPT-4o-mini

Needs changes

by Incrementors ✓ · 0 views · created 2026-09-16 · Market Research, 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 11 nodes and runs on a schedule (cron 0 9 * * 1). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail.

How it runs

Trigger: On a schedule (cron 0 9 * * 1).

  1. Set config (Edit Fields (Set)): sets 7 fields: sheetId, sheetName, alertEmail…
  2. Read the KPI log (Google Sheets): get many
  3. Compare the last two weeks (Code): runs custom JavaScript code
  4. Anything dropped? (If): checks a condition and branches into true / false
  5. Explain the drops (AI Agent): runs an AI agent, with model: Chat model; output parser: Output Parser - Analysis
  6. All healthy, no email (Edit Fields (Set)): sets 1 field: result
  7. Build the alert email (Code): runs custom JavaScript code
  8. Send the alert (Gmail): uses Gmail

Services it uses

Google SheetsOpenAI Chat ModelGmail

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 Explain the drops (v1.7): 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 →

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Explain the drops (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

Quick overview This workflow checks up to three service URLs every 30 minutes, logs each result to Google Sheets, and sends Gmail alerts only when a service transitions between UP and DOWN. How it works 1. Runs every 30 minutes on a schedule. 2. Builds a…

Excerpt from Incrementors'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.