Analyze Alertmanager incidents and post diagnostic reports to Mattermost
Ready for 3.0Ready 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.
Nodes used (10)
- AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool - Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Mattermost
n8n-nodes-base.mattermost - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set
What it does
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 for operation are set 1. Preparing a prompt for the agent containing only the data necessary for analysis 1. Optional step to deduplicating duplicate alerts 1. Getting the trigger condition 1. The agent performs diagnostics as described in the system prompt. During operation, it can access various systems via MCP to obtain additional information. 1. Search for a message in a Slack channel corresponding to a processed alert 1. Send report to Slack thread. How to use 1. Generate webhook credentials and use it in Alertmanager 2. Add Alert fingerprint into Slack message template 3. Set variables it SetVars node 4. Add your own Rules and recomendations to system promt 5 Run mcp servers 6. Choose Slack channel with alerts