Analyze Alertmanager incidents and post diagnostic reports to Mattermost

Go to Workflow
15 views
Built by Sergei Byvshev Sergei Byvshev
Created on June 07, 2026

Description

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
Workflow receives alert from Alertmanager via Webhook.
The variables required for operation are set
Preparing a prompt for the agent containing only the data necessary for analysis
Optional step to deduplicating duplicate alerts
Getting the trigger condition
The agent performs diagnostics as described in the system prompt. During operation, it can access various systems via MCP to obtain additional information.
Search for a message in a Slack channel corresponding to a processed alert
Send report to Slack thread.
How to use
Generate webhook credentials and use it in Alertmanager
Add Alert fingerprint into Slack message template
Set variables it SetVars node
Add your own Rules and recomendations to system promt
5 Run mcp servers
Choose Slack channel with alerts

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini
HTTP Request
n8n-nodes-base.httpRequest
Mattermost
n8n-nodes-base.mattermost
MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant