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.
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
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).
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.
In the “Category Classifier” node, modify categories and prompt structure to match your internal team structures (e.g., billing, account management, tech support).
Customize the agent prompt definitions in:
Sentinel_agent
Profiler_agent
Orchestrator
to better align with your brand tone or service goals.
You can route tickets to different projects or team leads by adjusting the “Create an issue in Jira” node based on classification output.
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.