O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building Cognitive Applications with IBM Watson Services: Volume 2 Conversation

Book Description

Abstract

The Building Cognitive Applications with IBM Watson Services series is a seven-volume collection that introduces IBM® Watson™ cognitive computing services. The series includes an overview of specific IBM Watson® services with their associated architectures and simple code examples. Each volume describes how you can use and implement these services in your applications through practical use cases.

The series includes the following volumes:


  • , SG24-8387

    Volume 1 Getting Started

  • , SG24-8394

    Volume 2 Conversation

  • , SG24-8393

    Volume 3 Visual Recognition

  • , SG24-8391

    Volume 4 Natural Language Classifier

  • , SG24-8392

    Volume 5 Language Translator

  • , SG24-8388

    Volume 6 Speech to Text and Text to Speech

  • , SG24-8398

    Volume 7 Natural Language Understanding


  • Whether you are a beginner or an experienced developer, this collection provides the information you need to start your research on Watson services. If your goal is to become more familiar with Watson in relation to your current environment, or if you are evaluating cognitive computing, this collection can serve as a powerful learning tool.

    This IBM Redbooks® publication, Volume 2, describes how the Watson Conversation service can be used to create chatbots and user agents that understand natural-language input and communicate with your users simulating a real human conversation. It introduces the concepts that you need to understand in order to use the Watson Conversation service. It provides examples of applications that integrate the Watson Conversation service with other IBM Bluemix® services, such as the IBM IoT Platform, Text to Speech, Speech to Text, and Weather Company® Data, to implement practical use cases. You can develop and deploy the sample applications by following along in a step-by-step approach and using provided code snippets. Alternatively, you can download an existing Git project to more quickly deploy the application.

    Table of Contents

    1. Front cover
    2. Notices
      1. Trademarks
    3. Preface
      1. Authors
      2. Now you can become a published author, too!
      3. Comments welcome
      4. Stay connected to IBM Redbooks
    4. Chapter 1. Basics of Conversation service
      1. 1.1 Introduction to Watson Conversation service
        1. 1.1.1 Supported languages
        2. 1.1.2 Innovative ways to use the Watson Conversation service
      2. 1.2 How to use the Conversation service
      3. 1.3 Conversation concepts
        1. 1.3.1 Intents and entities
        2. 1.3.2 An example of intents and entities in a conversation
        3. 1.3.3 Dialog
        4. 1.3.4 Dialog node
        5. 1.3.5 Context
        6. 1.3.6 Condition and responses
        7. 1.3.7 Conversation turn
        8. 1.3.8 Typical conversation flow
      4. 1.4 Conclusion
      5. 1.5 References
    5. Chapter 2. Conversation service workspace
      1. 2.1 How to use the Conversation service
        1. 2.1.1 Creating a Watson Conversation service instance
        2. 2.1.2 Launching the Conversation tool
        3. 2.1.3 Working with a workspace
        4. 2.1.4 Adding intents
        5. 2.1.5 Adding entities
        6. 2.1.6 Building a dialog
      2. 2.2 Exporting the workspace
      3. 2.3 References
    6. Chapter 3. Cognitive Calculator chatbot
      1. 3.1 Getting started
        1. 3.1.1 Objectives
        2. 3.1.2 Prerequisites
        3. 3.1.3 Expected results
      2. 3.2 Architecture
      3. 3.3 Two ways to deploy the application: Step-by-step and quick deploy
      4. 3.4 Step-by-step implementation
        1. 3.4.1 Downloading the project from the Git repository
        2. 3.4.2 Configuring the Conversation workspace for the Cognitive Calculator chatbot
        3. 3.4.3 Developing the Cognitive Calculator chatbot application
        4. 3.4.4 Testing the application
      5. 3.5 Quick deployment of application
      6. 3.6 References
    7. Chapter 4. Help Desk Assistant chatbot
      1. 4.1 Getting started
        1. 4.1.1 Objectives
        2. 4.1.2 Prerequisites
        3. 4.1.3 Expected results
      2. 4.2 Architecture
        1. 4.2.1 Project structure
      3. 4.3 Two ways to deploy the application: Step-by-step and quick deploy
      4. 4.4 Step-by-step implementation
        1. 4.4.1 Creating a new Conversation workspace
        2. 4.4.2 Adding intents
        3. 4.4.3 Adding entities
        4. 4.4.4 Creating the dialog
        5. 4.4.5 Testing the dialog
        6. 4.4.6 Creating the Help Desk Assistant chatbot application in Node-RED
        7. 4.4.7 Setting up the chat service (Slack)
      5. 4.5 Quick deployment of application
      6. 4.6 Next steps
      7. 4.7 References
    8. Chapter 5. Using a cognitive chatbot to manage IoT devices
      1. 5.1 Getting started
        1. 5.1.1 Objectives
        2. 5.1.2 Prerequisites
        3. 5.1.3 Expected results
      2. 5.2 Architecture
      3. 5.3 Step-by-step deployment of application
        1. 5.3.1 Creating the Watson IoT Platform service
        2. 5.3.2 Configuring the Android mobile device as an IoT device
        3. 5.3.3 Modifying the Chatbot Conversation workspace
        4. 5.3.4 Connecting the chatbot application to the IoT platform
        5. 5.3.5 Testing the application
      4. 5.4 References
    9. Chapter 6. Chatting about the weather: Integrating Weather Company Data with the Conversation service
      1. 6.1 Getting started
        1. 6.1.1 Objectives
        2. 6.1.2 Prerequisites
        3. 6.1.3 Expected results
      2. 6.2 Architecture
      3. 6.3 Two ways to deploy the application: Step-by-step and quick deploy
      4. 6.4 Step-by-step implementation
        1. 6.4.1 Configuring Conversation workspace for Cognitive Weather Forecast chatbot
        2. 6.4.2 Creating the Weather Company Data service instance
        3. 6.4.3 Developing the Cognitive Weather Forecast chatbot application
        4. 6.4.4 Testing the application
      5. 6.5 Quick deployment of application
      6. 6.6 References
    10. Chapter 7. Improving chatbot understanding
      1. 7.1 Getting started
        1. 7.1.1 Objectives
        2. 7.1.2 Prerequisites
        3. 7.1.3 Expected results
      2. 7.2 Use case implementation
        1. 7.2.1 Identifying the additional training that the Conversation workspace requires
        2. 7.2.2 Using the Improve component to train the Conversation workspace
        3. 7.2.3 Testing the improved Conversation workspace
      3. 7.3 References
    11. Chapter 8. Talking about the weather: Integrating Speech to Text and Text to Speech with the Conversation service
      1. 8.1 Getting started
        1. 8.1.1 Objectives
        2. 8.1.2 Prerequisites
        3. 8.1.3 Expected results
      2. 8.2 Architecture
      3. 8.3 Two ways to deploy the application: Step-by-step and quick deploy
      4. 8.4 Step-by-step implementation
        1. 8.4.1 Creating the Speech to Text service
        2. 8.4.2 Creating the Text to Speech service
        3. 8.4.3 Developing the Cognitive Weather Forecast chatbot application
        4. 8.4.4 Testing the application
      5. 8.5 Quick deployment of application
        1. 8.5.1 Deploy the application to Bluemix
      6. 8.6 References
    12. Appendix A. Additional material
      1. Locating the web material
    13. Related publications
      1. IBM Redbooks
      2. Online resources
      3. Help from IBM
    14. Back cover