Echo Dot (3rd Gen) - Smart speaker with Alexa - Charcoal

Use your voice to play a song, artist, or genre through Amazon Music, Apple Music, Spotify, Pandora, and others. With compatible Echo devices in different rooms, you can fill your whole home with music.

Buy Now

Wireless Rechargeable Battery Powered WiFi Camera.

Wireless Rechargeable Battery Powered WiFi Camera is home security camera system lets you listen in and talk back through the built in speaker and microphone that work directly through your iPhone or Android Mic.

Buy Now

Build a Chatbot With IBM Watson Assistant -Part2-

0
410


What is the Intent and how to implement it to the Chatbot

Abdelhakim Ouafi

Welcome to the second lesson on how to Build Chatbots with IBM Watson assistant, we saw in the last lesson how the chatbots can benefit your business and then we have registered an account and we created a Watson Assistant skill.

If you didn’t watch the previous tutorial you can see it in the link below.

In this lesson, we’ll look at one of the three important concepts of a chatbot, Which are intents

What is the Intent?

Watch this Little video to understand what is the intent.

Create a skill for your chatbot

To work with intents, you will need to create a dialog skill that will contain the intents, from the Skills page of your Watson Assistant instance, click on the Create skill button.

Here you’ll be able to add a Dialog Skill as shown in the image below, with the Dialog skill selected, click on Next.

You will be asked to enter a Name and an optional Description, Go ahead and fill in all the information, Enter Hotel Reservation Chatbot or whatever you want for the name.

we will name it “Hotel Reservation Chatbot” for this example but feel free to use any name you want you might want to use the chatbot for plane reservation or selling books store, and then hit the Create dialog skill button.

you will be redirected to create an intent page as shown in the image below, just hit the create intent button.

Here you’ll be asked to specify an Intent name and a Description, set a greetings intent as shown here in the image.

You can leave the description blank and then click the Create intent button.

You’ll be asked to create some user examples to train Watson on the concept of greetings, Enter hello then click Add example.

Repeat the process for other greeting examples such as hi, good morning, good afternoon, and so on. Make sure you add one example at the time.

Now go back to the previous page just by clicking on the arrow beside #greetings in the left top.

You will see a page like this just click on create the intent button again.

Repeat this process to add the thank you and goodbyes intents, with at least 4 appropriate examples each.

For the “thank you” intent, you can use examples like thank you, Thanks, you’re welcome, Cheers and appreciate it.

For goodbyes intent, you probably want to use goodbye, Bye, see you, See ya, Take care, See ya later and talk to you soon.

you can add as many examples as you want, this is just some useful example you may use.

At this point, you’ll have the most basic small talk intents that the chatbot needs to have.

You can check if your intents are working well and no error, click on the Try it button in the top right.

A chat panel will appear where you can try user input, so you can try the performance of the chatbot.

Go ahead and try some greetings, like thank you, thanks, and bye messages.

feel free to use any example you have tried Watson to recognize in the panel.

Feel free to try both examples you provided and expressions that you haven’t provided as examples.

For instance, try hola and Bonjour. Though specific to certain languages, they are common enough intentionally to be recognized as greetings by Watson.

Adding Intents

Content Catalogs provide a great and easy way to add intents to your Watson Assistant dialog skill and to see what’s available, click on Content Catalog within your dialog skill.

Select one category of your choice, for example, Banking.

Here, we will be adding the content catalog to the dialog skill by clicking on the Add to skill button.

Try: cancel a card in the Try it out panel or I got a new card or ask about the card fees and see what you get.

Feel free to use any questions related to banking issues like these examples:

Can I cancel a credit card I just applied for?

Can you tell me about how much fee the bank charged for last month on my credit card?

Give me more options about credit card charges.

We are not going to use them for our Chatbot so select the checkmarks next to them and press the Delete button.

Make sure you keep the chitchat intents we created earlier.

Import Intents from a CSV file

The CSV file contains two columns, one for user message, and the other one is the text response.

Download the CSV file I have prepared for you on my Github page Here.

The customers might ask the chatbot about hours of operation and addresses of our Hotel Chatbot, so this CSV file includes examples for both hours info and location info.

From the Intents section of your skill, click on the arrow icon next to the Create intent button.

Select Choose a file from the window that appears, choose your CSV file and then click on the Import button.

A window appears shows you what was imported so to make sure that you have imported the right CSV file.

Feel free to see the intents that you have imported and the examples for each of them, Now open Try it out panel.

ask anything related to the hours of operations of the Hotels or the address where the Hotels are located, and you can see that the chatbot was able to classify the questions very well.

In the next lesson, we will see how to add entities to our chatbot.



Read More

LEAVE A REPLY

Please enter your comment!
Please enter your name here