Automation library · Customer support

Route multichannel support tickets with OpenAI and HubSpot

Started by someone submitting a form, and works across Gmail and Slack. It hands the judgement calls to OpenAI. 59 steps, 7 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

59 stepsLarge: read it before trusting it with anything live
7Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 5Model 1Logic 38Service 15

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

  1. 1When Gmail ReceivedGmail triggerStarts it
  2. 2WAHA Support WebhookWebhookStarts it
  3. 3When Form SubmittedForm triggerStarts it
  4. 4Every 10 Minutes1Schedule triggerStarts it
  5. 5Error TriggerError triggerStarts it
  6. 6Normalize Gmail DataCodeLogic
  7. 7Filter WAHA MessagesCodeLogic
  8. 8Normalize Form DataCodeLogic
  9. 9Load SLA Config1CodeLogic
  10. 10Format Error PayloadCodeLogic
  11. 11Hold Binary For UploadNo OpLogic
  12. 12Parse WAHA DataCodeLogic
  13. 13Search Breached Tickets1Http RequestService
  14. 14Slack Error ChannelSlackService
  15. 15Load ConfigurationCodeLogic
  16. 16Check for MediaIfLogic
  17. 17Split Breached Issues1CodeLogic
  18. 18Prepare HubSpot Search QueryCodeLogic
  19. 19Fetch WAHA MediaHttp RequestService
  20. 20Normalize WhatsApp DataCodeLogic
  21. 21Slack SLA Alert1SlackService
  22. 22Has Manager?1IfLogic
  23. 23Raise Priority?1IfLogic
  24. 24Post HubSpot SearchHttp RequestService
  25. 25Restore WAHA Media DataCodeLogic
  26. 26Notify Manager1SlackService
  27. 27Raise Jira Priority1Http RequestService
  28. 28Pass Ticket (No Raise)CodeLogic
  29. 29Consolidate HubSpot ResultsCodeLogic
  30. 30Restore Before Mark1CodeLogic
  31. 31Mark SLA Notified1Http RequestService
  32. 32Filter Text for OpenAICodeLogic
  33. 33Summarize Mark ResultCodeLogic
  34. 34OpenAI AnalysisOpen AiModel
  35. 35Decode AI AnalysisCodeLogic
  36. 36Compute SLA and Team AllocationCodeLogic
  37. 37Generate Jira PayloadCodeLogic
  38. 38Search Jira for DuplicatesHttp RequestService
  39. 39Parse Deduplication ResultCodeLogic
  40. 40Identify Duplicate IssuesIfLogic
  41. 41Build Duplicated ResultCodeLogic
  42. 42Create Jira Issue4Http RequestService
  43. 43Notify Slack of DuplicateSlackService
  44. 44Merge Jira Create Result4CodeLogic
  45. 45Merge All ResultsCodeLogic
  46. 46Prepare SLA Stamp3CodeLogic
  47. 47Is Form Channel?IfLogic
  48. 48Should Stamp SLA?3IfLogic
  49. 49Reply Form SuccessFormService
  50. 50Stamp SLA Custom Fields4Http RequestService
  51. 51Prepare Attachments4CodeLogic
  52. 52Restore After SLA Stamp3CodeLogic
  53. 53Skip Attachments?4IfLogic
  54. 54Normalize Before Slack3CodeLogic
  55. 55Upload Jira Attachment4Http RequestService
  56. 56Build Primary ResultCodeLogic
  57. 57Slack Ticket Notification4SlackService
  58. 58Restore After Upload3CodeLogic
  59. 59Merge Ticket with SlackMergeLogic

How it's built

Starts on
Someone submitting a form
Steps
59, with 7 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Slack
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

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?

Take your time. At 59 steps it is large: read it before trusting it with anything live.

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 59 steps before you point it at anything that matters.