GithubHelp home page GithubHelp logo

fallingstar621 / customerengagementanalytics Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 264 KB

A demo for Customer Engagement Analytics: https://customer-engagement-analytics.mybluemix.net

License: Apache License 2.0

JavaScript 82.38% CSS 5.55% HTML 12.06%

customerengagementanalytics's Introduction

Customer Engagement Analytics

The Customer Engagement Analytics Demo brings IBM Watson Tone Analyzer and IBM Watson Discover services together for customer engagement analytics. It provides visual insights on chat quality monitoring, customer satisfaction measurement, agent performance evaluation and customer engagement tracking.

Getting Started

  1. You need a Bluemix account. If you don't have one, sign up. Experimental Watson services are free to use.

  2. Download and install the Cloud-foundry CLI tool if you haven't already.

  3. Edit the manifest.yml file and change <application-name> to something unique. The name you use determines the URL of your application. For example, <application-name>.mybluemix.net.

applications:
- name: <application-name>
 memory: 512MB
  1. Connect to Bluemix with the command line tool.
cf api https://api.ng.bluemix.net
cf login
  1. Create and retrieve service keys to access the Tone Analyzer service:
cf create-service tone_analyzer standard my-ta-service
cf create-service-key my-ta-service myKey
cf service-key my-ta-service myKey
  1. Create and retrieve service keys to access the Discovery service:
cf create-service discovery standard my-discovery-service
cf create-service-key my-discovery-service myKey
cf service-key my-discovery-service myKey
  1. Create an environment and a collection using your Discovery service keys.

  2. Create a .env file in the root directory by copying the sample .env.example file using the following command:

cp .env.example .env

You will update the .env with the information you retrieved in steps 5, 6 and 7

The .env file will look something like the following:

MY_TONE_ANALYZER_USERNAME=<username>
MY_TONE_ANALYZER_PASSWORD=<password>
MY_DISCOVERY_USERNAME=<username>
MY_DISCOVERY_PASSWORD=<password>
MY_ENVIRONMENT_ID=<environment_id>
MY_COLLECTION_ID=<collection_id>
  1. Install the dependencies your application need:
npm install
  1. Skip this step if you will use the default conversations provided for this demo under the public/data/conversations folder. If you prefer to load the demo with your own data, please follow instruction.txt and replace 'input_sample.csv' under the public/data/ folder by your own data; also remove all default data under the public/data/conversations folder. Then run the processing script:
npm run analyzeTones
  1. Go to Disovery Tooling and select your Discovery collection. Upload all JSON files under the resources/conversations folder.

  2. Start the application locally:

npm start
  1. Point your browser to http://localhost:3000.
  2. Optional: Push the application to Bluemix:
cf push

After completing the steps above, you are ready to test your application. Start a browser and enter the URL of your application.

        <your application name>.mybluemix.net

For more details about developing applications that use Watson Developer Cloud services in Bluemix, see Getting started with Watson Developer Cloud and Bluemix.

Troubleshooting

  • The main source of troubleshooting and recovery information is the Bluemix log. To view the log, run the following command:

    cf logs <application-name> --recent
  • For more details about the service, see the documentation for the Tone Analyzer service and the documentation for the Discovery service.


License

This sample code is licensed under Apache 2.0.

Contributing

See CONTRIBUTING.

Open Source @ IBM

Find more open source projects on the IBM Github Page

Privacy Notice

Sample web applications that include this package may be configured to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Node.js package version
  • Node.js repository URL
  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)
  • Labels of bound services
  • Number of instances for each bound service and associated plan information

This data is collected from the package.json file in the sample application and the VCAP_APPLICATION and VCAP_SERVICES environment variables in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

customerengagementanalytics's People

Stargazers

Hossein Taghi-Zadeh avatar Julia Nash  avatar

Watchers

Xiaotong Liu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.