February 28, 2020 By Kazuki Nobutani 4 min read

Part 2 of a four-part series. In this post, you’ll learn how to configure watsonx Assistant to process simple Q&A. 

In this post, we are going to configure watsonx Assistant to process simple Q&A for your chatbot using the sample on this Git project. This sample is a bank’s Virtual Agent chatbot, and its dialog flows are pre-defined. 

Step 1. Understanding watsonx Assistant

watsonx Assistant is IBM’s AI product that lets you build, train, and deploy conversational interactions into any application, device, or channel. You need to train your Watson assistant to recognize “intents” and the “entities” of a user input and define a “dialog” flow that incorporates your Intents. 

As you add training data, a natural language classifier is automatically added to the skill. The classifier model is trained to understand the types of requests that you teach your assistant to listen for and respond to. 

In this series, we are not going to define complicated dialog flows, but if you are interested, here is the official document to which you can refer.

Step 2. Set up watsonx Assistant

In this part, we are going to use this sample from a Git project. We are not going to deploy the sample app here, but we are importing intents, entities, and dialog flows. 

  1. Go to the Git project and download the source code from Clone or download
  2. Open watsonx Assistant from the IBM Cloud dashboard.
  3. Open Skills and click Create skill.
  4. Specify the location of the workspace JSON file in your local copy of the app project and click Import: <project_root>/training/bank_simple_workspace.json
  5. By default, you have an assistant called My first assistant and it is associated with a default skill called My first skill. Open it in the Assistants menu on the left, then Swap skill to the imported Banking_Simple_DO_NOT_DELETE.

Step 3. Understanding the dialog (optional)

It is good to see how dialog flows, intents, and entities are defined for future reference. For instance, an intent named #Business_Information-Contact_Us will be triggered by inputs like the following:

  • Can I email you?
  • Can I talk to someone?
  • I need an SMS number customer service
  • What are your contact details?

Entities are like attributes of Intents. In this case, the entity @contact_type is used to refine user intents and act like a subcategory of #Business_Information-Contact_Us with the following values:

  • address
  • call
  • email
  • SMS

Now, the dialog defines how Watson behaves depending on inputs. In this example, when #Business_Information-Contact_Us is triggered, Watson checks which @contact_type the user prefers and responds accordingly.
 

Step 4. Try it

Let’s try it and see how your assistant behaves. Click Try it on the right top corner and test that it works as expected. In the following image, Watson detected #Business_Information-Contact_Us and @contact_type correctly and responds as expected.

What’s next?

You’ve now configured your Watson to handle sample Q&A. In the next parts of this blog series, we are going to integrate with Node-RED. You can, of course, train Watson however you want and connect with your own app in the future. 

Alternatively, you can add direct integration by clicking Add integration in the assistant menu. 

Disclaimer

IBM is not liable for any damages arising in contract, tort or otherwise from the use of or inability to use this post or any material contained within. All sample code is provided as-is and IBM does not support customization. Do not use the code in production. 

Was this article helpful?
YesNo

More from Cloud

New 4th Gen Intel Xeon profiles and dynamic network bandwidth shake up the IBM Cloud Bare Metal Servers for VPC portfolio

3 min read - We’re pleased to announce that 4th Gen Intel® Xeon® processors on IBM Cloud Bare Metal Servers for VPC are available on IBM Cloud. Our customers can now provision Intel’s newest microarchitecture inside their own virtual private cloud and gain access to a host of performance enhancements, including more core-to-memory ratios (21 new server profiles/) and dynamic network bandwidth exclusive to IBM Cloud VPC. For anyone keeping track, that’s 3x as many provisioning options than our current 2nd Gen Intel Xeon…

IBM and AWS: Driving the next-gen SAP transformation  

5 min read - SAP is the epicenter of business operations for companies around the world. In fact, 77% of the world’s transactional revenue touches an SAP system, and 92% of the Forbes Global 2000 companies use SAP, according to Frost & Sullivan.   Global challenges related to profitability, supply chains and sustainability are creating economic uncertainty for many companies. Modernizing SAP systems and embracing cloud environments like AWS can provide these companies with a real-time view of their business operations, fueling growth and increasing…

Experience unmatched data resilience with IBM Storage Defender and IBM Storage FlashSystem

3 min read - IBM Storage Defender is a purpose-built end-to-end data resilience solution designed to help businesses rapidly restart essential operations in the event of a cyberattack or other unforeseen events. It simplifies and orchestrates business recovery processes by providing a comprehensive view of data resilience and recoverability across primary and  auxiliary storage in a single interface. IBM Storage Defender deploys AI-powered sensors to quickly detect threats and anomalies. Signals from all available sensors are aggregated by IBM Storage Defender, whether they come…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters