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

# Analyze sentiment

> Determine the sentiment of text — very negative, neutral, positive, or very positive — using AI.

Analyze the sentiment of text using AI. Use this to gauge the tone of customer messages, support tickets, reviews, or any text content.

**1. Add the action**

In the Workflow builder, click **+** between blocks and select **Analyze Sentiment** from the action library.

![Action library with Analyze Sentiment highlighted](https://mintcdn.com/cassidy/Z6P2Z1FAlUR83Sw5/images/reference/analyze-sentiment-img-0.png?fit=max\&auto=format\&n=Z6P2Z1FAlUR83Sw5\&q=85\&s=ecec1db19dcdf957e57169ee8a648bbd)

![Analyze Sentiment action added to the Workflow](https://mintcdn.com/cassidy/Z6P2Z1FAlUR83Sw5/images/reference/analyze-sentiment-img-1.png?fit=max\&auto=format\&n=Z6P2Z1FAlUR83Sw5\&q=85\&s=03f7614a2b1d4a3f702ed90ae762af54)

**2. Provide the text to analyze**

In the **Text to Analyze** field, enter or reference the content you want to analyze for sentiment. Use **#** to [reference variables](https://docs.cassidyai.com/guides/prompt-engineering.md#workflow-prompts) from previous steps or the trigger.

![Text to Analyze field with variable reference](https://mintcdn.com/cassidy/Z6P2Z1FAlUR83Sw5/images/reference/analyze-sentiment-img-3.png?fit=max\&auto=format\&n=Z6P2Z1FAlUR83Sw5\&q=85\&s=3fbaf9ce485f4b4a061fcd1f31242401)

The action returns one of the following sentiment classifications: **very negative**, **neutral**, **positive**, or **very positive**. You can reference this value in later steps.

> [!TIP]
>
> Combine with [Only Continue If](https://docs.cassidyai.com/reference/actions/only-continue-if.md) or [Paths](https://docs.cassidyai.com/reference/actions/paths.md) to route your Workflow based on sentiment — for example, escalating very negative support tickets automatically.

## Related

* [Only Continue If](https://docs.cassidyai.com/reference/actions/only-continue-if.md)
* [Paths](https://docs.cassidyai.com/reference/actions/paths.md)
* [Categorize Text](https://docs.cassidyai.com/reference/actions/categorize-text.md)


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