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.

What this workflow does

This AI workflow has 16 nodes and runs when another workflow calls it. Along the way it connects OpenRouter Chat Model, MCP Client, Qdrant Vector Store and Embeddings Google Gemini and 1 more.

How it runs

Trigger: When another workflow calls it.

  1. ReadIncidentContext (Code): runs custom JavaScript code
  2. Call 'attachmentsAnalyzer' (Execute Sub-workflow): calls another n8n workflow
  3. Merge: merges the data from its input branches
  4. Set: empty attachments (Edit Fields (Set)): sets 2 fields: attachments_context, attachments_count
  5. SetVars (Edit Fields (Set)): sets 12 fields: GITHUB_ORG, K8S_NAMESPACE, K8S_CLUSTERS…
  6. AI Agent: runs an AI agent, with model: OpenRouter Chat Model; 6 tools (K8S, Github, Grafana, Mattermost…)
  7. Post a message (Mattermost): uses Mattermost

Services it uses

OpenRouter Chat ModelMCP ClientQdrant Vector StoreEmbeddings Google GeminiMattermost

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (11)

From the author

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…

Excerpt from Sergei Byvshev's description on n8n.io.

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.