Automation library · Customer support

Automate support ticket classification & routing

Started by a clock, and works across HubSpot and Jira. It hands the judgement calls to OpenAI. 18 steps, 1 branch: a working afternoon to understand properly.

MediumCalls a model: OpenAI

18 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Model 9Logic 2Service 4

The steps in the order they run, from what starts it.

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2When Executed by Another WorkflowExecute Workflow triggerStarts it
  3. 3SentinelTool WorkflowModel
  4. 4ProfilerTool WorkflowModel
  5. 5Structured Output ParserOutput Parser StructuredModel
  6. 6from_crmHubspot ToolService
  7. 7For testingManual triggerStarts it
  8. 8Set the running intervalSchedule triggerStarts it
  9. 9OrchestratorAgentModel
  10. 10Sentinel_agentAgentModel
  11. 11Profiler_agentAgentModel
  12. 12generate ticket titleChain SummarizationModel
  13. 13Cateogory ClassifierText ClassifierModel
  14. 14RouterSwitchLogic
  15. 15Get many ticketsHubspotService
  16. 16Create an issue in JiraJiraService
  17. 17Search contactsHubspotService
  18. 18Set the variablesSetLogic

How it's built

Starts on
A clock
Steps
18, with 1 branch
Size
Medium: a working afternoon
Connects to
HubSpot, Jira
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own HubSpot and Jira accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.