Templates / Log workflow failures with Google Gemini, Google Sheets, and Gmail alerts

Log workflow failures with Google Gemini, Google Sheets, and Gmail alerts

Ready for 3.0

by Swapnil Mandloi ✓ · 95 views · created 2026-07-24 · DevOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 8 nodes and runs when another workflow fails (error workflow). Along the way it connects Google Sheets, Gmail and Google Gemini Chat Model.

How it runs

Trigger: When another workflow fails (error workflow).

  1. Classify the Failure (Code): runs custom JavaScript code
  2. Write Plain English Diagnosis (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  3. Build Incident Record (Edit Fields (Set)): sets 10 fields: failed_at, workflow_name, workflow_id…
  4. Log Incident to Google Sheets (Google Sheets): append
  5. Critical Enough to Wake Someone? (If): checks a condition and branches into true / false
  6. Email the On-Call Owner (Gmail): uses Gmail

Services it uses

Google SheetsGmailGoogle Gemini Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This error workflow captures n8n workflow failures, classifies them, generates a short Google Gemini diagnosis, logs each incident to Google Sheets, and emails an on-call address via Gmail only for critical errors. How it works 1. Triggers when…

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