Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Riyo

WatBot - An Android ChatBot powered by IBM Watson

WatBot is an IBM Watson powered ChatBot running on Android and using Watson Assistant service on IBM Cloud ( an open standards, cloud platform for building, running, and managing apps and services).

Coding the app on Android Stdio

Android Stdio is the official IDE for Android. Android Stdio provides the fastest tools for building apps on every type of android device.

Creation of Watson Assistant service

Watson Assistant combines a number of cognitive techniques to help you build and train a bot - definin intents and entities and crafting dialog to simulate Watson Assistant.

Getting Started

Before start using the Watson Assistant, sign up an IBM cloud account to create a service instance.

  1. In service name field, type a unique name for the new instance of the Watson Assistant service.
  2. Click create. There will be some details about the new instance in the "Service Details" page

Creating a workspace

Workspace can be created by either creating a new workspace from scratch or by importing a workspace from a JSON file.

  1. Click the Watson Assistant service constance on the IBM Cloud console to open the Service Details page.
  2. Then click the Watson Assistant tooling and click Launch tool.
  3. Click Click to create a new workspace.
  4. Specify the details for new workspace
    • Name
    • Description
    • Language

    Creating an Intent

    An intent reprsents the purpose of a user's input such as answering a question. By recognizing the intent expressed in a user's input, the Watson Assistant service can choose the correct dialog flow for responding to it. In the tool, the name of an intent is always prefixed with the# character.

    1. In Watson Assistant tool, open the Workspace and then click the Intents tab.
    2. Create New.
    3. Create the new Intent Name Field, type the descriptive name for the intent. For example,
      • #weather_conditions
      • #pay_bill
      • #cancel_policy
    4. In User example Field, type the text of a user example for the intent. the following are the examples for #weather_condition intent.
      • What's the weather?
      • Is it raining?
    5. Press Enter or click+ to save.
    6. Repeat the same process to add more examples.
    7. When you have finished adding examples, clickCreate to finish creating the intent

    Results

    The intent you created is added to the Intents tab, and the system begins to train itself on the new data.Click any intent in the list to open it for editing. The following changes can be made:

    • Rename Intent.
    • Delete Intent.
    • Add, edit, or delete examples.
    • Move an example to a different intent.

    Creating an Entity

    An entity represents a term or object that is relevant to the intents and that provides a specific context for an intent. By recognizing the entities the are mentioned int he user's input, the Watson Assistant service can choose the specific actions to take to fulfill an intent. In the tool , the name of an entity is always prefixed with the@ character.

    1. In Watson Assistant tool, open the workspace and then click the Entities tab.
    2. Click Create New .
    3. In the Add the Entity Name field, type a descriptive name for the entity. For example:
      • @location
      • @menu_item
      • @product
    4. In the Value field, type the text of a possible value for the intent. An entity value can be any string up to 64 character in length.
    5. In the Synonyms field, type any synonyms for the entity value. Press Enter to save each synonym.
    6. Click + and repeat the process to add more entity values.
    7. When finished adding values and synonoyms, click Create.

      Build the dialog flow

      A dialog is a branching conversation flow that defines how your application reesponds when it recognizs the defined intents and entities.

      Configure the App

      To configure the App you need to get the Watson Assistant service Username, PassWord and WorkSpaceId.

      1. Update the main activity with the username and password of the respective users
      2. Enable Text to Speech

        • Create a Watson Text to Speech(TTS) service on IBM Cloud
        • Navigate to Service Credentials tab and click on "View Credentials".
        • Build and Run your app.
        • Chat with your own bot

          AndroidAndroid

About

A Watbot to overcome the realtime time consuming services

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages