Templates / Analyze Alertmanager incidents and post diagnostic reports to Mattermost

Analyze Alertmanager incidents and post diagnostic reports to Mattermost

Ready for 3.0

by Sergei Byvshev ✓ · 93 views · created 2026-03-26 · DevOps, AI RAG

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 17 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Qdrant Vector Store, Embeddings Google Gemini and MCP Client and 1 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. SetVars (Edit Fields (Set)): sets 7 fields: MATTERMOST_HOST, MATTERMOST_CHANNEL_ID, prometheus_uid…
  2. PreProcessAlerts (Code): runs custom JavaScript code
  3. DeduplicateAlerts (Code): runs custom JavaScript code
  4. GetAlertRule (HTTP Request): calls an HTTP API
  5. ExtractRuleQuery (Code): runs custom JavaScript code
  6. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 5 tools (K8S mcp, Github MCP, Grafana mcp, Digitalocean MCP…)
  7. GetAlertMessages (HTTP Request): calls an HTTP API
  8. FindAlert (Code): runs custom JavaScript code
  9. Post in thread (Mattermost): uses Mattermost

Services it uses

OpenAI Chat ModelQdrant Vector StoreEmbeddings Google GeminiMCP ClientMattermost

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

From the author

Overview This workflow helps automatically analyze alerts occurring in the infrastructure and suggest solutions even before the on-duty engineer sees the alert. How it work 1. Workflow receives alert from Alertmanager via Webhook. 1. The variables required…

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