🎫 Triage support tickets by GPT-4o sentiment and route them to Slack

⚑ 21 views · 🎫 Ticket Management & Triage

Description

Analyze customer support ticket sentiment and route to Slack channels


Who is this for

Customer support teams, customer experience managers, and operations teams that need to triage incoming support tickets in real time without manual classification. Ideal for SaaS companies, e-commerce businesses, and service providers handling high ticket volumes.

What this workflow does

This workflow automatically triages incoming customer support tickets by sentiment using OpenAI GPT-4o. A ticket arrives via webhook, is normalized, analyzed for anger intensity (scored 0-10), and routed to the correct Slack channel in real time. High-anger tickets are escalated immediately, mid-range tickets go to standard support, and low-anger tickets or feedback are logged separately.

How to set up

  1. Add your OpenAI API credential to the AI sentiment analysis node
  2. Add your Slack OAuth2 credential to all three Slack nodes
  3. Update Slack channel names (#escalation / #support / #feedback) to match your workspace
  4. Activate the workflow and copy the webhook URL for your support form integration
  5. Send a test request to verify end-to-end execution

Requirements

How to customize

Adjust the anger score thresholds in the Switch node to match your team’s escalation policy. Modify the GPT-4o prompt to detect additional sentiment categories or extract custom fields from tickets. Add language detection for multilingual support.


Node List

#Node NameTypeRole
1When Ticket ReceivedWebhookTrigger on incoming HTTP POST request
2Normalize Ticket DataCodeSanitize and validate ticket fields
3OpenAI Sentiment AnalysisOpenAIAI anger scoring and sentiment tagging
4Parse Sentiment OutputCodeParse JSON output and decide routing
5Route by Sentiment ScoreSwitch3-way branch: β‰₯8 / 4-7 / ≀3
6Send to Slack #escalationSlackAlert for high-anger tickets
7Send to Slack #supportSlackNotification for mid-range tickets
8Send to Slack #feedbackSlackLog for low-anger tickets or feedback
9Respond with Routing OutcomeRespond to WebhookConfirm result to the caller

Total: 9 nodes (+ 5 Sticky Notes)


Sticky Note Compliance

#Sticky Note TitleColorRole
1Main Sticky Note (Overview)YellowWorkflow overview, How it works, Setup steps, Customization
2Receive and normalizeWhiteCovers webhook reception and data normalization
3Analyze sentimentWhiteCovers GPT-4o sentiment analysis
4Parse and routeWhiteCovers JSON parsing and routing logic
5Post to Slack channelsWhiteCovers all 3 Slack post nodes and webhook response

All sticky notes use H2 headings (## ) and follow n8n public guidelines.


Tags

ai gpt-4 openai slack customer-support sentiment-analysis automation

πŸ”— Nodes Used

Slack, Webhook, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup