Templates / Investigate Mattermost incident reports with an AI SRE assistant using OpenRouter

Investigate Mattermost incident reports with an AI SRE assistant using OpenRouter

Ready for 3.0

by Sergei Byvshev ✓ · 85 views · created 2026-05-11 · 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.

Nodes used (11)

AI AgentOpenRouter Chat ModelMCP ClientQdrant Vector StoreEmbeddings Google GeminiMattermost

What it does

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 1. The workflow is triggered by another workflow (When Executed by Another Workflow) 1. ReadIncidentContext logs the incoming classification for debugging and forwards the payload downstream 1. Call 'attachmentsAnalyzer invokes a vision sub-workflow with the fileids 1. SetVars defines the configuration used by the AI Agent prompt 1. AI Agent runs the investigation 1. 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 fileids 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

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.