-
Notifications
You must be signed in to change notification settings - Fork 37
Setup Watson Natural Language Classifier and Dialog services on Bluemix
A) You need a Bluemix account. If you don't have one, sign up.
B) Bluemix use Cloud Foundry's command line tools to interact with your services from the command line. If you haven't already installed these tools, then go to the Cloud-foundry CLI tool page, scroll down to the installer section, and select the .pkg or .tgz approach.
NOTE for Mac El Capitan: The Cloud Foundry .pkg installer is buggy on El Capitan. We recommend downloading the binary instead for Mac until this issue is fixed. You may also need to run "xcode-select --install" if you recently transitioned to El Capitan.
C) 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
.
declared-services:
ipa-dialog_service:
label: dialog
plan: standard
ipa-nlc_service:
label: natural_language_classifier
plan: standard
applications:
- services:
- ipa-nlc_service
- ipa-dialog_service
name: <application_name>
command: node app.js
path: .
memory: 128M
####2. Name Your Dialog
Dialog names must be globally unique. So think of a clever dialog name and replace the <unique_dialog_name>
in public/javascript/ipaRemote.js.
var IPA_DIALOG_NAME = "<unique_dialog_name>";
####3. Create the Services on Bluemix Connect to Bluemix with the command line tool as shown below. You'll be entering the text on lines beginning with the dollar sign ($).
$ cf api https://api.ng.bluemix.net
Setting api endpoint to https://api.ng.bluemix.net...
OK
API endpoint: https://api.ng.bluemix.net (API version: 2.27.0)
User: <your email>
Org: <your email>
Space: <your default space>
$ cf login
API endpoint: https://api.ng.bluemix.net
Email> <your-email>
Password> <your-password>
Authenticating...
OK
Create the Natural Language Classifier service
$ cf create-service natural_language_classifier standard ipa-nlc_service
Create the Dialog service
$ cf create-service dialog standard ipa-dialog_service
####4. Next up? Training the Natural Language Classifier Our NLC service is running so let's train a NLC classifier with our user intent classes.