π« Ticket triage for Jira Service Management with Gemini AI audit and guidance
β‘ 305 views Β· π« Ticket Management & Triage
Description
An extendable triage workflow that classifies severity, sets components, and posts actionable guidance for support engineers using n8n + Gemini + Cache Augmented Generation (CAG). Designed for Jira Service Management, but easily adaptable to Zendesk, Freshdesk, or ServiceNow.
Description
Support teams loose valuable time when tickets are misclassified: wrong severity, missing components, unclear scope. Engineers end up re-routing issues and chasing missing info instead of solving real problems.
This workflow automates triage by combining domain rules with AI-driven classification and guidance, so engineers receive better-prepared tickets.
It includes:
β
Real-time ticket capture via webhook
β
AI triage for severity and component
β
CAG-powered guidance: 3 next steps + missing info
β
Internal audit comment with justifications & confidence
β
Structured metrics for reporting
βοΈ How It Works
This workflow runs in 4 stages:
π₯ Entry & Setup
- Webhook triggers on ticket creation
- Loads domain rules (priority policy, components, guidance templates)
- Sets confidence threshold & triage label
π§ AI Analysis (Gemini + CAG)
- Builds structured payload with ticket + domain context
- Gemini proposes severity, component, guidance, missing info
- Output normalized for safe automation (valid JSON, conservative confidence)
π€ Update & Audit
- Updates fields (priority, component, labels) if confidence β₯ threshold
- Posts internal audit comment with:
- 3 next steps
- Missing info to request
- Justifications + confidence
π Metrics
- Captures applied changes, confidence scores, and API statuses
- Enables reliability tracking & continuous improvement
π Key Features
- CAG-powered guidance β lightning-fast, context-rich next steps
- Explainable automation β transparent audit comments for every decision
- Domain-driven rules β adaptable to any product or support domain
- Portable β swap JSM with Zendesk, Freshdesk, ServiceNow via HTTP nodes
π Required Credentials
| Tool | Use |
|---|---|
| Jira Service Management | Ticketing system (API + comments) |
| Google Gemini/Gemma | LLM analysis |
| HTTP Basic Auth | For Jira API requests (bot user) |
β οΈ Setup tip: create a dedicated bot user in Jira Service Management with an API token.
This ensures clean audit logs, proper permissions, and avoids mixing automation with human accounts.
π§° Customization Tips
- Replace
https://your-jsm-url/...with your own Jira Service Management domain. - Update the credentials with the bot userβs API token created above.
- Swap Jira Service Management nodes with other ticketing systems like Zendesk, Freshdesk, or ServiceNow.
- Extend the domain schema (
keywords,guidance_addons) to fit your product or support environment.
ποΈ Domain Schema
This workflow uses a domain-driven schema to guide triage.
It defines:
- Components β valid areas for classification
- Priority policies & rules β how severity is determined
- Keywords β domain-specific signals (e.g., βAPI errorβ, βall users affectedβ)
- Guidance addons β contextual next steps for engineers
- No-workaround phrases β escalate severity if present
β¨ The full domain JSON (with complete keyword & guidance mapping) is included as a sticky note inside the workflow.
π‘ Use Cases
- Automated triage for IT & support tickets
- Incident classification with outage/security detection
- Contextual guidance for engineers in customer support
- Faster escalation and routing of critical issues
π§ Who Itβs For
- Support teams running Jira Service Management
- Platform teams automating internal ticket ops
- AI consultants prototyping practical triage workflows
- Builders exploring CAG today, RAG tomorrow
π Try It Out!
- βοΈ Import the Workflow in n8n (cloud or self-hosted).
- π Add Credentials (JSM API + Gemini key).
- β‘ Configure Setup (confidence threshold, triage label, domain rules).
- π Connect Webhook in JSM β
issue_createdβ n8n webhook URL. - π§ͺ Test with a Ticket β see auto-updates + AI audit comment.
- π Swap the Ticketing System β adapt HTTP nodes for Zendesk, Freshdesk, or ServiceNow.
π¬ Have Feedback or Ideas? Iβd Love to Hear
This project is open, modular, and evolving. If you try it, adapt it, or extend it, Iβd love to hear your feedback β letβs improve it together in the n8n builder community.
π§ ascuncia.es@gmail.com πLinkedin
π Nodes Used
HTTP Request, Webhook, Google Gemini
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File