Skip to main content

Ticket triage for Jira Service Management with Gemini AI audit and guidance

Workflow preview

Workflow preview
100%
Ticket triage for Jira Service Management with Gemini AI audit and guidance preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 Jir...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.webhook, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Ticket triage for Jira Service Management with Gemini AI audit and guidance
Workflow name
Ticket triage for Jira Service Management with Gemini AI audit and guidance

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!

  1. ⚙️ Import the Workflow in n8n (cloud or self-hosted).
  2. 🔑 Add Credentials (JSM API + Gemini key).
  3. Configure Setup (confidence threshold, triage label, domain rules).
  4. 🔗 Connect Webhook in JSM → issue_created → n8n webhook URL.
  5. 🧪 Test with a Ticket → see auto-updates + AI audit comment.
  6. 🔄 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.

📧 [email protected] 🔗Linkedin

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 - SET_SETUP

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

Block 2 - AI Case Triage

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

Block 3 - Build JIRA Update

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

Block 4 - JIRA Update

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Build Payload for LLM

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

Block 6 - JIRA Add Comment

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - On Update Result

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

Block 8 - Metrics Generation

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

Block 9 - Webhook

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

Block 10 - Normalize LLM Output

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

Block 11 - Sticky Note

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

Block 12 - Sticky Note1

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

Block 13 - Sticky Note2

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

Block 14 - Sticky Note3

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

Block 15 - Sticky Note4

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

Block 16 - Sticky Note5

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

3. Summary Table

Workflow Ticket triage for Jira Service Management with Gemini AI audit and guidance
Complexity advanced
Nodes 16
Categories Ticket Management, AI Summarization
Author Alejandro Scuncia
Published 18 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8713/8713.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 Ticket triage for Jira Service Management with Gemini AI audit and guidance do?

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 Jir...

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 Ticket Management, AI Summarization use case.