Convert DevOps Mattermost requests into Jira tasks with OpenRouter GPT and Gemini

Go to Workflow
0 views
Built by Sergei Byvshev Sergei Byvshev
Created on May 11, 2026

Description

Overview
This is a sub-workflow that converts a free-form DevOps request posted in Mattermost into a properly formatted Jira task

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 Execute Workflow Trigger
ReadIncidentContext logs the request and forwards the payload
Call 'attachmentsAnalyzer invokes a vision sub-workflow with the file_ids
SetVars sets workflow-level constants
AI Agent builds the Jira payload. The system prompt
Parse Agent Output safely parses the agent's output enriches the Jira description.
Create an issue creates a Task in the configured project with the chosen label and component.
Post a message replies in the original thread with a confirmation containing a clickable Jira link.

How to use
Index your infrastructure docs into Qdrant using
Deploy the Mattermost MCP server and put its URL into the Mattermost MCP Client node
Deploy / import the attachmentsAnalyzer sub-workflow
Configure credentials in the workflow
Edit SetVars
Edit Create an issue — pick your own Jira project, issue type and component.
Tune the system prompt in AI Agent — adjust the direction labels and the few-shot examples to match your team's taxonomy.
Wire this workflow into your classifier ia an Execute Workflow node

This workflow was created by Sergei Byvshev and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini
Jira Software
n8n-nodes-base.jira
Mattermost
n8n-nodes-base.mattermost
MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant