Completed code for the tutorial found in the 'Getting up and running with HPE Haven OnDemand' video.
Essentials you’ll need to create this app:
- Node.js installed on your computer
- Haven OnDemand account - to perform analysis of text messages
- Twilio account - to deliver text messages to the webhook
- ngrok - to receive POST requests on local computer from external APIs
To help illustrate how Haven OnDemand’s powerful Text Analysis APIs can be used, we’re this Node.js app receives a text message via Twilio’s webhook service, analyze the sentiment, using our Analyze Sentiment API, extract any key concepts, using our Concept Extraction API, and extract any entities (famous people, notable places, companies, organizations), using our Entity Extraction API, then print all of this information to the console.
Simply clone this repo onto your local machine and run:
npm install