Diagnose workflow failures with Google Gemini, Google Sheets and Slack
Ready for 3.0What 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).
- Extract Error Details (Code): runs custom JavaScript code
- Diagnose Error with Gemini (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Diagnosis Parser
- Shape Diagnosis (Code): runs custom JavaScript code
- Log Error (Google Sheets): append
- Alert Slack (Slack): uses Slack
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Slack templates (309)
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)
- Error Trigger
n8n-nodes-base.errorTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack
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…