This article demonstrates the tone identification of a message received using IBM Watson Tone Analyzer.
What you'll need:
Skill level: Easy
Time required: 3 minutes
- Scheduler by Quickwork as a trigger--for triggering the journey
- IBM Watson Tone Analyzer: Action
Configuring a trigger
- Under the Trigger section, choose the Scheduler by Quickwork app from the drop-down menu in the App field.
- Select the trigger event, New scheduled event, from the drop-down menu in the Trigger Event field.
- Set the Interval for One day as we need to fetch the breaking news on a daily basis.
- Set the date and time of your choice in the Start At field and keep the Custom Payload field empty:
Configuring IBM Watson Tone Analyzer action
- Under the Steps section, choose the IBM Watson Tone Analyzer service from the drop-down menu in the App field.
- Select the Analyze emotions or language tones from text action from the drop-down menu in the Action field.
- Click the Link an account button to establish a new connection with IBM Watson Tone Analyzer service. You can also connect an existing account if you have one.
- The Text input field will open. Here, specify the text in the plain text format of which tonality and emotion you want to check. E.g., I regret to announce that the launching of GSLV rocket has failed due to technical flaws. The mission is in the abort state until further notice:
Executing the journey
Save the changes in a journey and click the Start Journey button. You'll be taken to the History tab automatically. Click on the journey ID that just got executed. In the Steps section, click the IBM Watson Tone Analyzer action bar to expand and switch to the Output tab to see the output:
You'll see a list of tones and emotions that IBM Watson Tone Analyser service checks for a text. After analyzing more precisely, it also returns with a dominant emotional tone and social tone of the text specified. The specified example text was regretful and sad, and so is the result.