-
Ensure that you have an account on IBM Bluemix
-
If you already have a Bluemix account, then sign in to your account
- Click on the 'Deploy to Bluemix' button.
-
Name your app, select the Region, Organization and Space where the app will be deployed. Click 'DEPLOY'.
-
The deployment process performs the following actions:
- Creates the application
- Creates an instance of Conversation and Cloudant DB services
-
Click on "conversation-service" from Bluemix Dashboard. In the landing page, click on "Launch Tool" button.
-
Sign in to Watson Conversation editor. Import the workspace - telcobot-workspace.json from resources folder.
-
In the editor, click on "Deploy" from left hand navigation page. Copy the value of Workspace ID.
-
Click on the deployed app from Bluemix Dashboard
-
Go to Runtime -> Environment variables section
-
Under "User defined" section at the botton, click on Add button
-
Under Name, enter WORKSPACE_ID (with out quotes) and under Value, copy the workspace id from step 3 above
-
Click on Save button. The app will automatically restart.
-
Click on "cloudant-db" from the Bluemix Dashboard. In the landing page, click on Launch button.
-
Click on Databases from left hand navigation. Click on "Create Database" from top right corner.
-
Give a name to the database, like telco-users
-
To load demo / sample data to the database, two versions of data are available under resources folder: telco-users-cloudant.json and telco-users-cloudant.txt
-
Install couchimport tool to upload / download data to cloudant
sudo npm install -g couchimport
export COUCH_URL="https://username:[email protected]"
export COUCH_DATABASE="telco-users"
cat telco-users-cloudant.txt | couchimport --db telco-users
-
Launch the application from bluemix dashboard
-
Enter an username, say, ajay to login and see the chat bot working
This sample code is licensed under Apache 2.0. Full license text is available in LICENSE.
Find more open source projects on the IBM Github Page.