---
sourceDocument: Xanadu Enable AI
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/intelligent-experiences

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Use Sentiment Analysis with Workflow Studio

# Use Sentiment Analysis with Workflow Studio {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Create a flow to upgrade the assignment group of a case if the user has a negative sentiment in the short description.

## Before you begin

Role required: admin

## About this task

The Sentiment Analysis capability helps determine whether the user-generated text has a positive or negative sentiment. If a user is expressing negative statements such as "Level 1 support couldn't help me," you could upgrade the assignment group automatically for the case to help the user have a better experience.

For more information on tracking Generative AI Controller usage, see [Monitoring Now Assist usage](https://www.servicenow.com/docs/access?context=monitoring-now-assist-usage&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US).

## Procedure

1. Navigate to AllProcess AutomationFlow Designer.
2. Select NewFlow.
3. Enter the name of the flow, such as <kbd class="ph userinput">Change assignment group if negative sentiment</kbd>.
4. Select Submit.
5. Select Add a trigger.
6. Select RecordCreated to update a new record.
7. Select the table that the flow should run on.  
   For this example, select the Case (sn_customerservice_case) table.
8. Select Done.
9. Under Actions, select Add an Action, Flow Logic, or Subflow and then select Action to open the Actions panel.
10. In the action selector, search for the Generative AI ControllerSentiment Analysis action and select it.
11. Drag a data pill from the Data panel or select the data pill picker icon.  
    In this case, drag the TriggerCase RecordShort description.
12. Select Done.  
13. Add an action by selecting Add an Action, Flow Logic, or Subflow.
14. Select Flow LogicIf.
15. Give the Condition label a name, such as <kbd class="ph userinput">Negative sentiment</kbd>.
16. For the Condition field, drag a data pill or select the data pill picker icon to search for the correct condition.  
    In this case, drag the Sentiment Analysisresponse.
17. Select <kbd class="ph userinput">contains</kbd> the value <kbd class="ph userinput">Negative</kbd>.  
    Note:  
    Capitalization matters. This flow won't work if the value is set to <kbd class="ph userinput">negative</kbd>.
18. Search for Update Record and select the action.
19. Drag the TriggerCase Record data pill into the Record field or select the icon to search.  
    The Table field is filled in automatically based on the Trigger record.
20. Select Add field value and search for the fields that you want to update.  
    In this example, select Assignment group.
21. Select which value you would like to set the field to.  
    The field value depends on your use case. In this example, the value is set to <kbd class="ph userinput">Service Desk</kbd>.
22. Select Done.
23. Save the flow by selecting Save.

## What to do next

After you've saved the flow, you must activate the flow to migrate it to production or test it further.

*[\>]: and then


