Automate Support Ticket Classification & Routing from HubSpot to Jira with GPT

Go to Workflow
181 views
Built by PollupAI PollupAI
Created on June 05, 2026

Description

Who is this for?



This n8n workflow template is designed for customer support, CX, and ops teams that manage customer messages through HubSpot and use Jira for internal task management. It is especially useful for SaaS companies aiming to automate ticket triage, sentiment detection, and team assignment using AI agents.

đź§© What problem is this workflow solving?



Customer service teams often struggle with manual message classification, delayed reactions to churn signals, and inefficiencies in routing support issues to the right internal teams. This workflow uses LLMs and automated profiling to:

Detect churn risk or intent in customer messages

Summarize issues

Classify tickets into categories (e.g. fulfillment, technical, invoicing)

Automatically create Jira tickets based on enriched insights
🤖 What this workflow does



This AI-powered workflow processes HubSpot support tickets and routes them to Jira based on sentiment and topic. Here’s the full breakdown:

Triggers: Either manually or on a schedule (via cron).

Fetch HubSpot tickets: Retrieves new messages and their metadata.

Run Orchestration Agent:

Uses Sentinel Agent to detect emotional tone, churn risk, and purchase intent.

Calls Profiler Agent to enrich customer profiles from HubSpot.

Summarizes the message using OpenAI.

Classifies the ticket using a custom classifier (technical, fulfillment, etc.).


Generate a Jira ticket:

Title and description are generated using GPT.

The assignee and project are predefined.


AI agents can be expanded (e.g. add Guide or Facilitator agents).
⚙️ Setup



To use this template, you’ll need:

HubSpot account** with OAuth2 credentials in n8n

Jira Software Cloud account** and project ID

OpenAI credentials** for GPT-based nodes

Optional: Create sub-workflows for additional AI agents




Steps:

Clone the workflow in your n8n instance.

Replace placeholder credentials for HubSpot, OpenAI, and Jira.

Adjust Jira project/issue type IDs to match your setup.

Test the workflow using the manual trigger or scheduled trigger node.
🛠️ How to customize this workflow to your needs

1. Edit category logic



In the “Category Classifier” node, modify categories and prompt structure to match your internal team structures (e.g., billing, account management, tech support).

2. Refine AI prompts



Customize the agent prompt definitions in:

Sentinel_agent

Profiler_agent

Orchestrator

to better align with your brand tone or service goals.
3. Update Jira integration



You can route tickets to different projects or team leads by adjusting the “Create an issue in Jira” node based on classification output.

4. Add escalation paths


Insert Slack, email, or webhook notifications for specific risk levels or customer segments.

This workflow empowers your team with real-time message triage, automated decision-making, and AI-enhanced customer insight, turning every inbound ticket into a data-driven action item.

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
HubSpot
n8n-nodes-base.hubspot
Jira Software
n8n-nodes-base.jira
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Summarization Chain
@n8n/n8n-nodes-langchain.chainSummarization
Text Classifier
@n8n/n8n-nodes-langchain.textClassifier