This sample demonstrations how to integrate the Watson Tone Analyzer with IBM Verse.
- Set up the Tone Analyzer Node.js starter application
- Follow instructions posted here
- Extend the starter application to perform tone analysis for mails being read in Verse
- Clone or copy this project
- Copy the section commented 'Handle request to analyze tone for Verse' into apps.js in the tone-analyzer-nodejs project
- Add the file
verse-tone.ejs
into the views folder in the tone-analyzer-nodejs project - Restart the starter application
- Use Verse Developer Chrome extension to register the sample
- Set up the Verse Developer Chrome extension using these instructions
- Replace the
applications.json
with the one from this project - Reload the extension and reload Verse
- Run the sample
- Select a mail and read it in Verse
- Open he overflow menu (select '...') and select the 'Analyze Tone' action
- A window will open and the tone analysis will be displayed