Analyze alerts from Alertmanager and send diagnostic reports to Slack

Go to Workflow
0 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 Works
The workflow receives an alert from Alertmanager via Webhook.
The variables required for operation are set.
A prompt is prepared for the agent containing only the data necessary for analysis.
The agent performs diagnostics as described in the system prompt. During operation, it can access various systems via MCP to obtain additional information.
A message in a Slack channel corresponding to the processed alert is found.
A report is sent to the Slack thread.
How to Use
Generate webhook credentials and use them in Alertmanager.
Add the alert fingerprint to the Slack message template.
Set variables in the SetVars node.
Add your own rules and recommendations to the system prompt.
Run MCP servers.
Choose the Slack channel with alerts.

Nodes Used (7)

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