Templates / Production AI Playbook: Deterministic Steps & AI Steps (3 of 5)

Production AI Playbook: Deterministic Steps & AI Steps (3 of 5)

Needs changes

by Elvis Sarvia ✓ · 121 views · created 2026-03-03 · Ticket Management, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenRouter Chat Model.

How it runs

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

  1. Normalize Ticket (Code): runs custom JavaScript code
  2. AI - Classify (AI Agent): runs an AI agent, with model: OpenRouter Chat Model
  3. Parse + Validate (Code): runs custom JavaScript code
  4. Confidence Threshold (Switch): routes items into 3 branches
  5. Route by Category (Switch): routes items into 3 branches
  6. Flag for Review (Code): runs custom JavaScript code
  7. Send to Human Queue (Code): runs custom JavaScript code
  8. Billing Team (Code): runs custom JavaScript code
  9. Technical Team (Code): runs custom JavaScript code
  10. Sales Team (Code): runs custom JavaScript code

…plus 2 more steps. See the full node list below.

Services it uses

OpenRouter Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI - Classify (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI - Classify (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (6)

From the author

Combine AI classification with confidence-based routing and category-based fan-out. This template classifies incoming support tickets, routes them by confidence level, and shows an example of how to fan high-confidence items out to the right team. What you'll…

Excerpt from Elvis Sarvia'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.