This is a sample project to demonstrate the use of the Haven OnDemand client library and to help illustrate how Haven OnDemand’s powerful Text Analysis APIs can be used.
This Node.js app receives text messages via Twilio’s webhook service, analyzes the sentiment, using our Analyze Sentiment API, extracts any key concepts, using our Concept Extraction API, and extracts any entities (famous people, notable places, companies, organizations), using our Entity Extraction API. All of this information is then printed to the console.
A tutorial can be found in the 'Getting up and running with HPE Haven OnDemand' video. Update: The code has since been changed, but the key concepts remain the same.
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
Simply clone this repo onto your local machine and run:
npm install
