Templates / Diagnose workflow failures with Google Gemini, Google Sheets and Slack

Diagnose workflow failures with Google Gemini, Google Sheets and Slack

Ready for 3.0

by Oka Hironobu ✓ · 1 views · created 2026-07-31 · 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 Gemini Chat Model, Google Sheets and Slack.

How it runs

Trigger: When another workflow fails (error workflow).

  1. Extract Error Details (Code): runs custom JavaScript code
  2. Diagnose Error with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Diagnosis Parser
  3. Shape Diagnosis (Code): runs custom JavaScript code
  4. Log Error (Google Sheets): append
  5. Alert Slack (Slack): uses Slack

Services it uses

Google Gemini Chat ModelGoogle SheetsSlack

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 (7)

From the author

Quick Overview This error-handling workflow captures failures from other n8n workflows, uses Google Gemini to diagnose the cause in plain language, logs each incident to Google Sheets, and sends a detailed alert to a Slack channel with a link to the failed…

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