botkit-watson-bot
allows you to analyze user's personality insights within a RingCentral Team Messaging team using Botkit and IBM Watson.
It takes advantage of Botkit's core functionality thus allowing you to create complex conversational flows via a simple interface. It also allows you to use custom storage methods/systems to enable data persistence across sessions.
Here's an excerpt of Botkit's readme.md
file:
[Botkit] provides a semantic interface to sending and receiving messages so that developers can focus on creating novel applications and experiences instead of dealing with API endpoints.
Personality Insights is a service provided by IBM Watson which applies linguistic analytics and personality theory to infer attributes from a person's unstructered text.
$ git clone https://github.com/ringcentral-tutorials/botkit-watson-bot-nodejs-demo.git
$ cd <APP_DIRECTORY>
$ npm install --save
$ mv .env.template .env
Update .env file with the credentails for the below properties:
RC_SERVER=https://platform.devtest.ringcentral.com
RC_CLIENT_ID=
RC_CLIENT_SECRET=
OAUTH_REDIRECT_URI=https://47b0d581.ngrok.io
PORT=4000
WATSON_USERNAME=
WATSON_PASSWORD=
WATSON_URL=https://gateway.watsonplatform.net/personality-insights/api
WATSON_VERSION_DATE=2016-10-19
WATSON_VERSION=v3
$ npm start
In the chat window enter the below command:
watson: analyze
Note: The Team should have 2000 charecthers minimum to perform Personality Insight Analysis.
Please see botkit
's guide and reference document here.
Something does not work as expected or perhaps you think this module needs a feature? Please open an issue using GitHub's issue tracker. Please be as specific and straightforward as possible.
Pull Requests (PRs) are welcome. Make sure you follow the same basic stylistic conventions as the original code (i.e. "JavaScript standard code style"). Your changes must be concise and focus on solving a single problem.
Copyright (c) 2016