π Answer infrastructure questions in Mattermost with OpenRouter and Qdrant
β‘ 68 views Β· π Internal Wiki & Knowledge Base
Description
Overview
AI-powered sub-workflow that answers questions about a your infrastructure configuration directly in a Mattermost channel or thread
Requirements
- OpenRouter/OpenAI/Anthropic API key
- Google Gemini API key β for embeddings
- Jira API credentials β Cloud or Server.
- 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
ReadIncidentContextlogs the request and forwards the payload- Call β
attachmentsAnalyzerinvokes a vision sub-workflow with the file_ids SetVarssets workflow-level constantsAI agentgenerates a response based on the system prompt, knowledge base, and access to repositories.- The agentβs response is posted back to Mattermost via the
Post a messagenode
How to use
- Upload your infrastructure documentation (Markdown, YAML, runbooks) into Qdrant
- Import the attachmentsAnalyzer sub-workflow and update the workflow reference inside
- Deploy or point to your MCP servers
- Configure credentials
- Edit the AI Agent system message to describe your infrastructure
- In SetVars, replace the example
- Wire this workflow up to an upstream router
π 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