> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neoagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Analyze Customer Sentiment

> Detect customer emotions in ticket communications to prioritize unhappy customers

It classifies ticket conversation history as positive, negative, or neutral and provides reasoning for the classification.

## Quick start

**1. Add to your workflow**

Add the action to workflows that process tickets with customer communications.

**2. Configure basic settings**

The action works with default settings, but you can add custom instructions for your specific business context.

**3. Set up custom fields (optional)**

By default the action writes to fields named "Neo - Customer Sentiment" and "Neo - Customer Sentiment Reasoning". Create these fields in your PSA before you configure the action, or set different field names in the action settings. Both fields must be of type **Text**.

**4. Add follow-up actions**

Use "Update Ticket Fields" to save sentiment data and "Notify Internal Team" to alert staff about negative sentiment tickets.

## How it works

The action focuses on customer messages to determine the overall sentiment:

1. **Positive** - Appreciation, satisfaction, or optimism
2. **Negative** - Frustration, urgency, dissatisfaction, or complaints
3. **Neutral** - Factual, routine, or emotionally neutral communication

The AI provides detailed reasoning for its classification and can optionally save both the sentiment and reasoning to custom fields in your PSA.

## Setup

**Tickets to analyze**: Works with any tickets from your workflow - typically all tickets from a specific search or filter.

**Custom instructions (optional)**: Add guidance such as:

* "Consider urgency keywords like 'ASAP' or 'critical' as negative sentiment"
* "Treat thank you messages as positive, even if brief"

**Save to PSA (optional)**: You can save sentiment results and reasoning directly to custom fields in your PSA system for tracking and reporting.

## Common use cases

> [accordion] Prioritize unhappy customers
>
> Automatically escalate tickets with negative sentiment by notifying team leads, increasing ticket priority, adding to "Needs Attention" queues, or assigning to senior technicians.

> [accordion] Track satisfaction trends
>
> Run sentiment analysis on recently closed tickets to measure customer satisfaction over time and identify service improvement opportunities.

> [accordion] Proactive outreach
>
> Monitor neutral sentiment on long-running tickets for proactive customer check-ins.

> [accordion] Service quality monitoring
>
> Analyze sentiment patterns across different service types, technicians, or time periods to identify areas for improvement.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.