Investigate Mattermost incident reports with an AI SRE assistant using OpenRouter
Overview AI-powered SRE sub-workflow that investigates user-reported incidents coming from a Mattermost channel and posts a structured diagnostic report back into the same thread. The result is a four-section incident report: What happened — a concise summary of the symptoms Event timeline — what was happening in the 10+ minutes before the incident Root cause — up to two probable causes Troubleshooting tips — step-by-step remediation for each root cause
Requirements OpenRouter/OpenAI/Anthropic API key Google Gemini API key — for embeddings Mattermost API credentials — to post the reply back to the channel Qdrant instance Remote MCP servers (see MCP section) A sub-workflow that analyses attachments A parent workflow that triggers this one via "Execute Workflow" with a properly shaped payload
How it works The workflow is triggered by another workflow (When Executed by Another Workflow) ReadIncidentContext logs the incoming classification for debugging and forwards the payload downstream Call 'attachmentsAnalyzer invokes a vision sub-workflow with the file_ids SetVars defines the configuration used by the AI Agent prompt AI Agent runs the investigation Post a message` sends the agent's final output back to the originating channel
How to use Prepare the knowledge base — upload your infrastructure description, service map, naming conventions and runbooks into a Qdrant collection Deploy the MCP servers and put their URLs into the corresponding tool Configure credentials Adjust the configuration in SetVars Plug in the attachments sub-workflow — replace the workflow reference in Call 'attachmentsAnalyzer' with your own vision-analysis workflow that maps file_ids[] Tune the system prompt in the AI Agent — add project-specific naming conventions, ownership info, escalation rules and any quirks of your infrastructure Connect classification workflow as parent
Related Templates
Automate Free IP Analysis: NixGuard AI Summaries & Wazuh Integration
Supercharge Your Security Operations for Free Stop wasting time manually investigating suspicious IP addresses. This wo...
Convert JSON Objects to Base64 Strings with File Processing
Encode JSON to Base64 String in n8n This example workflow demonstrates how to convert a JSON object into a base64-encod...
AI Agent with Ollama for current weather and wiki
This workflow template demonstrates how to create an AI-powered agent that provides users with current weather informati...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments