This plugin is using Google Cloud Natural Language API for sentiment analysis. Click on image below to see the video:
- Copy
plugin-sentiment/public/appConfig.example.js
inappConfig.js
adding a value for theaccountSid
variable (this is the Twilio Accouint Sid for your Twilio Flex instance) - Copy
plugin-sentiment/src/components/SentimentMessageBubble/config.example.js
inconfig.js
specifying the value of your server inSERVER_URL
(see below) - Generate a service account credential json file from Google Cloud and place it in
server/google-creds.json
- Run
npm install
in bothplugin-sentiment
andserver
- Start the server running
npm start
inserver
folder. If needed, run the tunnel to port8080
. This is the server address you need to put inSERVER_URL
- Execute
npm start
fromplugin-sentiment
- Start chatting...