> ## 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.

<Steps>
  <Step title="Add the action">
    In the Workflow builder, click **+** between blocks and select **Analyze Sentiment** from the action library.

    <Frame>
      <img src="https://mintcdn.com/cassidy/Z6P2Z1FAlUR83Sw5/images/reference/analyze-sentiment-img-0.png?fit=max&auto=format&n=Z6P2Z1FAlUR83Sw5&q=85&s=ecec1db19dcdf957e57169ee8a648bbd" alt="Action library with Analyze Sentiment highlighted" width="990" height="416" data-path="images/reference/analyze-sentiment-img-0.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cassidy/Z6P2Z1FAlUR83Sw5/images/reference/analyze-sentiment-img-1.png?fit=max&auto=format&n=Z6P2Z1FAlUR83Sw5&q=85&s=03f7614a2b1d4a3f702ed90ae762af54" alt="Analyze Sentiment action added to the Workflow" width="908" height="486" data-path="images/reference/analyze-sentiment-img-1.png" />
    </Frame>
  </Step>

  <Step title="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](/guides/prompt-engineering#workflow-prompts) from previous steps or the trigger.

    <Frame>
      <img src="https://mintcdn.com/cassidy/Z6P2Z1FAlUR83Sw5/images/reference/analyze-sentiment-img-3.png?fit=max&auto=format&n=Z6P2Z1FAlUR83Sw5&q=85&s=3fbaf9ce485f4b4a061fcd1f31242401" alt="Text to Analyze field with variable reference" width="914" height="470" data-path="images/reference/analyze-sentiment-img-3.png" />
    </Frame>
  </Step>
</Steps>

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](/reference/actions/only-continue-if) or [Paths](/reference/actions/paths) to route your Workflow based on sentiment — for example, escalating very negative support tickets automatically.</Tip>

## Related

* [Only Continue If](/reference/actions/only-continue-if)
* [Paths](/reference/actions/paths)
* [Categorize Text](/reference/actions/categorize-text)
