Sentiment

The Sentiment action can measure the sentiment of text.  This action assigns a value to the text being examined of positive or negative, as well as returning a sentiment score.

.

.

.

Note: functionality of this action is text-related only.

For more information about how to use IBM Watson’s Text Analysis, click here

Variables 

The Sentiment action creates the following variables to be used and evaluated in the rest of the flow:

.

.

Analyzing the Sentiment 

After the Sentiment action, you need to specify what you want to happen based on the Sentiment’s result. To do so, you can use either a Condition or Switch action. However, we recommend the Switch action since it allows you to be more specific and have more control with what you do next. 

.

.

Example Configurations 

The following are a few different examples in which you would evaluate the sentiment with either the Switch or Condition action.

.

.

Example: Condition / Switch input box evaluating the Sentiment