Develop a Virtual Assistant with IBM Watson and .NET Core on IBM Cloud Code Engine-Part 2

The Virtual Assistant

Our virtual assistant will be able to assist a New Bank customer with the following:

  1. Provide the products and services the Bank offers
  2. Explain financial and banking terms
  3. Provide the account balance for a specific bank account
  1. Build the virtual assistant with Dialog an Intents
  2. Integrate the Watson Assistant widget with the website
  3. Generate the new docker image and deploy it to IBM Cloud Code Engine

Provision a Watson Assistant service instance on IBM Cloud

Login to IBM Cloud and select Watson Assistant from the Catalog

Watson Assistant Plus Trial plan
Instance of Watson Assistant with Plus Trial plan
Watson Assistant — Assistants

Build the virtual assistant with a Dialog skill and Intents

Watson Assistant has the concept of Skills for developing a virtual assistant. The most common used skill is the Dialog skill which allows to define a conversational workflow. The Search skills provides integration with Watson Discovery for search capabilities using Natural Language Processing (we will use a Search skill with Watson Discovery in Part 3). A new type of skill is the Actions skill (still in Beta) which provides a new approach for building virtual assistants with Watson.

Watson Assistant skills
Add a dialog skill to your virtual assistant
Virtual Assistant with a dialog skill
New Bank Virtual Assistant dialog skill
  1. Intents — Intents are phrases the user may enter and will in turn expect a single action to be performed.
  2. Entities — Represent synonyms and patterns
Create #reportLostCard intent
Examples for lost card intent
User examples for #whatProductsAndServices intent
New Bank dialog skill with two intents
New Bank virtual assistant dialog
#reportLostCard dialog node
#whatProductsAndServices dialog node
Test your virtual assistant

Integrate the Watson Assistant widget with the website

Watson Assistant provides an out of the box integration widget. In order to obtain the integration script for the widget go back to main screen of the virtual assistant.

Web chat options
Script to embed the assistant on the website
Script code from Watson Assistant copied in _Layout.csthml
Local test of the Web Chat
Website with integrated widget running locally

Generate the new docker image and deploy it to IBM Cloud Code Engine

In order to generate the new docker image we need to delete the Publish folder in Visual Studio.

Publish folder
Deploy application image to IBM Cloud Code Engine
Runtime settings for application running on IBM Cloud Code Engine
IBM Code Engine Application URL
Published website with Watson Virtual Assistant



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store