Coder Social home page Coder Social logo

ibm_earthquake--call-for-code's Introduction

CALL FOR CODE Day Workshop

Pre-requisite

IBM Cloud Account- https://bit.ly/ibm-acct

Steps

  1. Clone the repo
  2. Create an Action in IBM Cloud Functions
  3. Import documents to Watson Discovery Service
  4. Import Watson Assistant Workspace and update credentials
  5. Try it out

Architecture

Step 1: Clone the repo

git clone https://github.com/IBMDevConnect/demo-callforcodeday.git

Step 2: Create an Action in IBM Cloud Functions

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: Import documents to Watson Discovery Service

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: Import Watson Assistant workspace

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)

Step 5: Try it Out

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?

ibm_earthquake--call-for-code's People

Contributors

ishaan28malik 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.