Skip to main content

Classify and route DevOps chat requests with Mattermost and Claude

Workflow preview

Workflow preview
100%
Classify and route DevOps chat requests with Mattermost and Claude preview
Open on n8n.io

1. Workflow Overview

Automatically classify and route DevOps requests from your team chat using LLM + on call calendar lookup. What it does This workflow turns your Mattermost channel into a smart DevOps intake system....

Best for

  • DevOps automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.switch, n8n-nodes-base.googlecalendar, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.mcpclienttool

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Sergei Byvshev.

Original n8n.io source

1.1 Workflow description

Title
Classify and route DevOps chat requests with Mattermost and Claude
Workflow name
Classify and route DevOps chat requests with Mattermost and Claude

Automatically classify and route DevOps requests from your team chat using LLM + on-call calendar lookup.

What it does

This workflow turns your Mattermost channel into a smart DevOps intake system. When someone mentions @devops-duty, the workflow:

  1. Receives the message via Mattermost outgoing webhook
  2. Classifies the request into one of 8 categories using an LLM
  3. Looks up the current on-call engineer from Google Calendar
  4. Routes the request through a Switch node based on category
  5. Acknowledges in a Mattermost thread with the classification result

Categories

  • create_resource - Provision new databases, secrets, services, DNS records
  • incident - Something is broken — production or staging issues
  • question - Information requests, status checks, clarifications
  • ci_cd_error - Build failures, deployment issues, GitHub Actions problems
  • limits - Billing limits, quotas exceeded
  • change_request - Modify existing infrastructure or configuration
  • ``code_approve` - Code review and merge request approvals
  • other - Anything that doesn't fit above

Extending

Each Switch output is an independent branch — connect sub-workflows or additional nodes per category. For example:

incident → trigger an AI investigation sub-workflow with MCP tools (Kubernetes, Grafana, etc.) create_resource → run a provisioning playbook ci_cd_error → fetch GitHub Actions logs and analyze failures

Connect these workflows:

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - GetQuestions

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 2 - ValidateAndExtractMessage

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 4 - Parse AI Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 6 - GetDutyEvent

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 7 - Inject duty name

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 10 - Mattermost

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1.2

Block 11 - Qdrant Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1.3

Block 12 - Embeddings Google Gemini

Type / Role
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - embeddingsGoogleGemini
Config choices
Version 1

Block 13 - SetVars

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Classify and route DevOps chat requests with Mattermost and Claude
Complexity advanced
Nodes 17
Categories DevOps, AI Chatbot
Author Sergei Byvshev
Published 15 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15051/15051.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Classify and route DevOps chat requests with Mattermost and Claude do?

Automatically classify and route DevOps requests from your team chat using LLM + on call calendar lookup. What it does This workflow turns your Mattermost channel into a smart DevOps intake system....

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps, AI Chatbot use case.