This is a demo app of the Vonage Messages API integrated with IBM Watson Natural Language Analyzer API and News API running on Ruby on Rails. The application responds to the sender of a WhatsApp message with the sentiment and tone of the daily headlines requested by topic.
- A Vonage account
- A IBM Watson account
- A News API account
- Ruby on Rails
- ngrok
- Clone this repository
- Provision a Vonage WhatsApp number (More info can be found here.)
- Create a Vonage Messages API application from the Vonage API dashboard
- Follow the IBM Watson instructions to create a new IBM Watson Natural Language application on their dashboard
- Sign up for a News API account
- Link your WhatsApp number to your application in the Vonage API dashboard
- Move
./env.sample
to./env
- Define your Vonage, News API and IBM Watson credentials in the
/.env
file - Start up the Rails server and ngrok
Send a WhatsApp message with the news topic you want analyzed to your WhatsApp provisioned number. For example, send the topic "weather" to the number. You will receive a response with the overall sentiment and tone for the topic you messaged.
This application is under the MIT License