⚙️ Investigate Mattermost incident reports with an AI SRE assistant using OpenRouter

⚡ 85 views · ⚙️ DevOps & CI/CD

Description

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:

Requirements

How it works

  1. The workflow is triggered by another workflow (When Executed by Another Workflow)
  2. ReadIncidentContext logs the incoming classification for debugging and forwards the payload downstream
  3. Call ‘attachmentsAnalyzer invokes a vision sub-workflow with the file_ids
  4. SetVars defines the configuration used by the AI Agent prompt
  5. AI Agent runs the investigation
  6. Post a message` sends the agent’s final output back to the originating channel

How to use

🔗 Nodes Used

Mattermost, Execute Sub-workflow, Execute Workflow Trigger, AI Agent, Qdrant Vector Store, Embeddings Google Gemini

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup