Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Use Natural Language Understanding
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio committed Oct 13, 2017
1 parent 233da55 commit 62cf6c8
Show file tree
Hide file tree
Showing 8 changed files with 4,085 additions and 888 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
@@ -0,0 +1,28 @@
language: node_js
dist: trusty
sudo: required
node_js: 6
script:
- npm run build
- npm run lint

cache:
directories:
- node_modules
env:
global:
- BX_APP=social-customer-care
- BX_API=https://api.ng.bluemix.net
- BX_ORGANIZATION=WatsonPlatformServices
- BX_SPACE=appgallery
before_deploy: npm install -g https://github.com/andresfvilla/bx-blue-green
deploy:
provider: script
script:
- bx-blue-green-travis
on:
branch: master
repo: watson-developer-cloud/visual-recognition-nodejs
skip_cleanup: true
notifications:
email: false
1 change: 0 additions & 1 deletion GulpFile.js
@@ -1,4 +1,3 @@

var gulp = require('gulp');
var wrench = require('wrench');

Expand Down
15 changes: 3 additions & 12 deletions README.md
@@ -1,4 +1,4 @@
# <%= bluemix.name -%> [![](https://img.shields.io/badge/bluemix-powered-blue.svg)](https://bluemix.net)
# Social Customer Care [![Build Status](https://travis-ci.org/watson-developer-cloud/social-customer-care.svg?branch=master)](https://travis-ci.org/watson-developer-cloud/social-customer-care)

This application is a Starter Kit (SK) that is designed to get you up and running quickly with a common industry pattern, and to provide information and best practices around Watson services. This application was created to demonstrate how the [Natural Language Classifier][natural-language-classifier] can be used to direct customer requests and queries to the appropriate agent or workflow. Additionally, [Natural Language Understanding][natural-language-understanding], and [Personality Insights][personality-insights] demonstrate how to efficiently provide an agent with customer insights.

Expand Down Expand Up @@ -27,7 +27,6 @@ TWITTER_ACCESS_TOKEN_SECRET=REPLACE WITH YOUR ACCESS TOKEN SECRET

### Run locally as Node.js application


```sh
npm install
npm run build
Expand All @@ -44,15 +43,9 @@ bx dev run
### Deploy to Bluemix as CloudFoundry application

```sh
cf push
bx cf push
```

### Deploy to Bluemix automatically

[![Deploy to Bluemix](https://bluemix.net/deploy/button.png)](https://bluemix.net/deploy)

[![Create Toolchain](https://console.ng.bluemix.net/devops/graphics/create_toolchain_button.png)](https://console.ng.bluemix.net/devops/setup/deploy/)

### Directory structure

```none
Expand All @@ -72,7 +65,6 @@ cf push
└── views // Views
```


## About this pattern

For a given input, a trained Natural Language Classifier responds with a list of intent classes and a confidence score. A frequent use case is to use the user intent and confidence scores to determine how best to assist a customer. This pattern can be used to send customers to an appropriate agent, to respond to commonly asked questions, and to begin the appropriate dialog conversation as is done with the [Conversational Agent](https://github.com/watson-developer-cloud/conversational-agent-application-starter-kit) Starter Kit. This Starter Kit demonstrates the basic approach of how the Natural Language Classifier can be easily used to improve customer support.
Expand Down Expand Up @@ -117,10 +109,9 @@ The following links provide more information about the Natural Language Classifi
* [API reference](http://www.ibm.com/watson/developercloud/personality-insights/api/v3/): SDK code examples and reference
* [API explorerer](https://watson-api-explorer.mybluemix.net/apis/personality-insights-v2): Try out the REST API


## License

This sample code is licensed under Apache 2.0.
MIT.

[natural-language-understanding]: http://www.ibm.com/watson/developercloud/natural-language-understanding.html
[natural-language-classifier]: http://www.ibm.com/watson/developercloud/nl-classifier.html
Expand Down
24 changes: 9 additions & 15 deletions manifest.yml
@@ -1,19 +1,13 @@
---
applications:
- disk_quota: 1024M
<% if (bluemix && bluemix.name) { -%>
name: <%= bluemix.name %>
<% } -%>
<% if (bluemix && bluemix.server && bluemix.server.domain) { -%>
domain: <%= bluemix.server.domain %>
<% } -%>
<% if (bluemix && bluemix.server && bluemix.server.host) { -%>
host: <%= bluemix.server.host %>
<% } else { -%>
random-route: true
<% } -%>
memory: 384M
- services:
- natural-language-classifier-service
- personality-insights-service
- tone-analyzer-service
name: social-customer-care
command: npm start
path: .
memory: 512M
instances: 1
timeout: 180
buildpack: sdk-for-nodejs
command: npm start
buildpack: sdk-for-nodejs

0 comments on commit 62cf6c8

Please sign in to comment.