Integration Chatbot with NL Studio Tutorial

Introduction

In this tutorial, we will create a simple conversation bot and integrated to NL studio. For pre-condition, you must create a bot by follow this tutorial in here Bot studio tutorial. You will create a NLModel which able to process pizza ordering orders. Further explanation for NLStudio, you may see in here NL Studio Guideline

Let’s start !

Create Entity

Assumed you already logged in and visit your project. Go to NL Studio menu by click NL menu

bnl-1

Then, click on Create Entity to start.

bnl-2

Click on Create. Here is a view after you create intent entity

bnl-3

Conduct Data Training

After you created the entity, the next step is data training. You have to enter a sentence to train intent trait. Click on Training menu

bnl-4

Then, you are able to enter sentence to train data. Put a sentence “I want to order pizza” and press enter in your keyboard

bnl-5

Afterward, click on Add Trait and select intent:order.

bnl-6

Next, click “Train” button to train entity you has created. The final display will look like this

bnl-7

Entity shall train a lot for precisely understanding user’s input, if you’re doing training data in several sentences.

bnl-8

If you’ve done enough training, you are able to try testing by click “Test NLU” button. This feature will support you to predict more data.

bnl-9

Publish Your NL

Then, publish your NL for save training data and NL model.

bnl-10

Integration with NLUs

Next step is start integration with your bot using created entity. To get started, go to Bot menu and click NLUs sub-menu.

bnl-11

Click on Create NLU and fill in as follow

bnl-12

NLUid is found in NL menu in Setting. Click on NL menu, then click Settings

bnl-13

Afterward, copy NLUid into NLUid field in Create NLU drawer as follow

bnl-14

Click Create to continue. Successfully created NLUs will be appeared as follow

bnl-15

Integration with Bot

Next, go to Conversation Flows and click on tab Intents. Select orderTxt that you’ve created earlier to handle user input (you may see this tutorial Bot studio tutorial), then add a new classifier as below

bnl-16

Click Update to save updated Intent.

Testing Your Bot

Click on Publish bot to save your bot.

bnl-17

Voila, your bot is successfully integrated. Let’s start in bot emulator.

bnl-18

Contributing to the Documentation

Is something missing/incorrect? Please let us know by contacting support@kata.ai. If you know how to fix it straight away, don’t hesitate to create a pull request on this documentation’s GitHub repository.