Templates / AI-powered ticket triage with multi-model classification & knowledge base

AI-powered ticket triage with multi-model classification & knowledge base

Ready for 3.0

by Cheng Siong Chin ✓ · 613 views · created 2025-12-16 · Ticket Management, 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 22 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, MCP Client, Postgres PGVector Store and Embeddings OpenAI and 2 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Workflow Configuration (Edit Fields (Set)): sets 4 fields: pgVectorTable, pgVectorHost, pgVectorDatabase…
  2. Ticket Classifier Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (MCP Server Tools, Knowledge Base Search); output parser: Classification Output Parser
  3. Check If Solution Found (If): checks a condition and branches into true / false
  4. Format Auto-Resolution (Edit Fields (Set)): sets 4 fields: status, resolution, resolvedBy…
  5. AI Solution Generator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (MCP Server Tools); output parser: Solution Output Parser
  6. Update Ticket Status (Postgres): run a query
  7. Create Diagnostic Logs (Code): runs custom JavaScript code
  8. Prepare KB Entry (Edit Fields (Set)): sets 1 field: kbEntry
  9. Check If Engineer Needed (If): checks a condition and branches into true / false
  10. Add to Knowledge Base (Postgres PGVector Store): stores documents in the Postgres PGVector Store vector store, with embeddings: Embeddings OpenAI; document loader: Document Loader

…plus 1 more step. See the full node list below.

Services it uses

OpenAI Chat ModelMCP ClientPostgres PGVector StoreEmbeddings OpenAISlackPostgres

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 (13)

From the author

How It Works This workflow automates enterprise ticket management by combining AI-powered classification with knowledge base retrieval. It receives support tickets via webhook, routes them through multiple AI models (OpenAI ChatGPT, NVIDIA's text…

Excerpt from Cheng Siong Chin'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.