Automate support ticket classification & routing from HubSpot to Jira with GPT
Needs changesWhat this workflow does
This AI workflow has 18 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects HubSpot, OpenAI Chat Model and Jira Software.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Get many tickets (HubSpot): get many (ticket)
- Router (Switch): routes items into 2 branches
- Search contacts (HubSpot): search
- Sentinel_agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Profiler_agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (from_crm)
- Set the variables (Edit Fields (Set)): sets 3 fields: message, agents, agent
- Orchestrator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (Profiler, Sentinel); output parser: Structured Output Parser
- generate ticket title (Summarization Chain): summarizes text with AI, with model: OpenAI Chat Model
- Cateogory Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
- Create an issue in Jira (Jira Software): uses Jira Software
Services it uses
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 Profiler_agent (v1.8), Sentinel_agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Profiler_agent (v1.8), Sentinel_agent (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (14)
- HubSpot
n8n-nodes-base.hubspot - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - Jira Software
n8n-nodes-base.jira - Switch
n8n-nodes-base.switch - Hubspot Tool
n8n-nodes-base.hubspotTool - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Summarization Chain
@n8n/n8n-nodes-langchain.chainSummarization - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
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…