IBM Cloud Account- https://bit.ly/ibm-acct
- Clone the repo
- Create an Action in IBM Cloud Functions
- Import documents to Watson Discovery Service
- Import Watson Assistant Workspace and update credentials
- Try it out
git clone https://github.com/IBMDevConnect/demo-callforcodeday.git
Step 2.1 Click the Hamburger to open the menu
Step 2.2 Select Functions from menu
Step 2.3 Click START CREATING button
Step 2.4 Select Create Action
Step 2.5 Enter Action Name(copy Action Name in Notepad-required in later steps) and click Create
Step 2.6 Copy paste the code from ibm_cloud_functions_code.txt and click on Save
Step 2.7 Go back to Functions
Step 2.8 Click on API Key
Step 2.9 Take note of Current Namespace and API Key (required in later steps)
Step 3.1 Navigate to Catalog > AI > Watson Discovery
Step 3.2 Create Watson Discovery Service
Step 3.3 Copy Service Credentials-Username & Password(required in later steps) and Launch Tool
Step 3.4 Click on Upload your own data
Step 3.5 Enter Collection name and Create the collection
Step 3.6 Upload the files that are there in the directory discovery-data by clicking on Browse from computer
Step 3.7 Copy the Collection ID & Environment ID (required in later steps)
Step 4.1 Navigate to Catalog > AI > Watson Assistant
Step 4.2 Create Watson Assistant Service
Step 4.3 Launch Tool
Step 4.4 Import Workspace by clicking on Upload icon
Step 4.5 Choose JSON file workspace-dc5ee9e6-a979-4cd4-a548-520252772a61.json from the folder and click on Import
Step 4.6 Within Dialog Tab, click on Anything Else node
Step 4.7 Within JSON Editor, update IBM Cloud Functions username, password, namespace and action name (which was noted in Step 2.5 && Step 2.9 )
NOTE: From the API Key-The segment before the colon (:) is your IBM Cloud Functions Username & segment after the colon is your IBM Cloud Functions Password
Also, update Discovery service username,password, environment id and collection id (which was noted in Step 3.3 && Step 3.7)
Some questions you can try out are:
- Can the position of the moon or the planets affect seismicity?
- Can the ground open up during an earthquake?