Kata Documentations
Username
Kata Documentations
Tutorial

Creating a Simple Hello World Chatbot

Create a Project

First login/sign up to https://platform.kata.ai/login

And click on “Create Project” and fill in the form. Each project contains one bot design, one NL, and one CMS. You will be directed to this page.

bhw-1

Noted

You can try bot in Menu Test Chatbot (in the bottom right corner).

bhw-1test

Create a Hello Flow

Create Flow

You may find a flow that is created automatically by the system or default flow. We will add a new flow called helloFlow. Set flow to active, and persistent.

bhw-2

It will be shown like this.

bhw-3

Create keyword NLU for helloFlow

In this step, we will define the NLU (Natural Language Understanding) to trigger order flow. NLU is used to translate user inputs into data that machine can understand. There are many types of NLU, but the type that we will use in this particular flow is called keyword. To define the NLU, go to NLUs menu and create.

We will name it hello_NLU

bhw-4

It will be shown like this.

bhw-5

Create Intent

Go back to Conversation flow menu and choose intent. Click on “+” button in Conversation Flow menu. Set the Intent name to helloIntent and choose option as initial. Add a classifier and choose NLU that we create. We are gonna match it with helloWorld (keyword in NLU).

bhw-6
bhw-7

Create action for showing Hello World

Create State

Choose a states and click on "+" button. We will create a initial state. Set name to init and choose Initial State, and click create.

bhw-8

We will create another state for showing the response in our bot. Choose action to text.

bhw-9

Add text response to Hello World!.

bhw-10

Action should be shown like this.

bhw-11

Create Transation

Now, we will create a transition between two states that we have created before.

Click the green dot on init state, and a connector line will appear. Connect that line to hello state. If you do it right, a Create Transition form will appear.

bhw-12

Set the condition to intent=='helloIntent' and click Create.

bhw-13

Testing

Before this step don't forget to Publish your change. And then try your bot in Test Chatbot menu. Try to enter keyword that you define in NLU.

Viola! You have succeed build your first bot!

bhw-14

© 2024 Kata.ai. All rights reserved.

Version v4.0.0. Last updated 15 March 2022.

  • Twitter
  • GitHub
  • LinkedIn
  • Medium