Detect silent n8n workflow failures with OpenAI, Google Sheets and Slack
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs on a schedule (every hour). Along the way it connects Google Sheets, OpenAI Chat Model and Slack.
How it runs
Trigger: On a schedule (every hour).
- Configure settings (Edit Fields (Set)): sets 8 fields: sheet_id, slack_channel, n8n_base_url…
- Get active workflows (n8n): get many (workflow)
- Skip excluded workflows (Filter): keeps only the items that match a condition
- Get recent executions (n8n): get many (execution)
- Score workflow health (Code): runs custom JavaScript code
- Read incident log (Google Sheets): uses Google Sheets
- Compare with open incidents (Code): runs custom JavaScript code
- Route by change (Switch): routes items into 2 branches
- Diagnose with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Mark incident resolved (Google Sheets): update
…plus 4 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - n8n
n8n-nodes-base.n8n - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs hourly to monitor active n8n workflows for silent failures by analyzing recent execution history via the n8n API, logging incidents in Google Sheets, using OpenAI to suggest likely causes, and sending new-incident and…