Analyze Customer Sentiment
This recipe demonstrates how to analyze customer sentiment and use that analysis to drive intelligent, personalized communications and management alerts.
Overview
Customer sentiment analysis helps you:
- Identify frustrated or unhappy customers early
- Alert management to service quality issues in real-time
- Every week, get a list of tickets with negative sentiment to review
Prerequisites
Required Custom Fields
Create these custom fields in your PSA:
- Customer Sentiment (Text field) - Stores "Positive", "Negative", or "Neutral"
- Sentiment Analysis Details (Text field) - Stores AI reasoning about the sentiment
Workflow 1: Analyze and Store Customer Sentiment
- Type: Triggered
- Triggers:
- Ticket Created
- Customer replied to a ticket
- Filter Tickets [Optional] - Filter tickets by board, queue, status, etc.
- Analyze Customer Sentiment Smart Action - Configure as follows:
save_sentiment_in_custom_field
:True
custom_field_name
:"Customer Sentiment"
store_reasoning_in_custom_field
:True
reasoning_custom_field_name
:"Sentiment Analysis Details"
custom_instructions
: [Optional] - Add custom instructions to the AI to fine-tune the sentiment analysis.
- Update Ticket Fields - Store the sentiment and reasoning in Ticket's custom fields in your PSA.
Workflow 2: Alert on Negative Sentiment
- Type: Triggered
- Trigger: After Workflow 1 is finished
- Filter Tickets:
[Custom Field] Customer
Sentiment = "Negative" - Build Message Smart Action - Create management alert with
message_type
: "Internal":Create an urgent alert message for management about tickets with negative customer sentiment.
Include the ticket number, company name, contact name, sentiment reasoning, and a link to the ticket.
Format as a clear, actionable alert that helps prioritize customer satisfaction issues.
Include specific quotes or details from the sentiment analysis to help management understand the situation. - Notify Internal Team - Send to management via Teams/Email
Workflow 3: Weekly Sentiment Summary Report
- Type: Scheduled
- Schedule: Every Monday at 9:00 AM
- Filter Tickets
[Custom Field] Customer Sentiment
= "Negative" AND# Days since Ticket was Closed
≤ 7 - Create Report Smart Action
Create a table with the following columns:
- Resource Name
- Ticket Count
- Ticket Links
Sort by Ticket Count in descending order. - Notify Internal Team - Email the weekly report to management