Chatbot Help Portal

How can we help you?

Keyword Rules
How to use keyword

Train your bot with keywords

Keyword is the feature that helps your bot to handle the situation where the chat user disrupts the flow with some questions or sentences. With Keyword, a bot can recognize customers' messages and give them suitable responses. The response can be a block or a text that doesn't exist in the flow. The more keywords you add to your bot, the more intelligent the bot becomes.

Why should you use Keyword for chatbot?

By using Keyword, you can get some benefits:
  • Gives out automatically response to disrupt messages
  • Gives out the information that doesn't exist in the flow
  • Take chat users back to the bot's flow
  • Make your bot become more natural
  • Keyword can be activated anywhere in the flow

How to use keywords

Keyword Set

Keyword Set is a group of keywords that are under the same category or purpose.

We recommend you to create a set per topic. Head up to the "+" button next to the language you want to create the Keyword set or click on the New Keyword Set. For example, if you build a housing facilities bot, creating a Kitchen set and Living room set separately is better and easier to control than a general set that has both of them.

After clicking the New Keyword Set or "+" button, you will be requested to use NLP if you want to create a Smart Keyword. Go to Integration > Click here for more details about

Now fill up the following information:
  • Name: Give a name for Keyword Set.
  • Language: The language is used in the set. If your bot is multilingual, you should create the same sets in the languages being used in your bot.

For Smart Keywords:

  • Minimum Confidence: is the minimum ratio of confidence for analyzed results. There are three levels of minimum confidence: Low, Medium, Strict.
    • Choose Low option in case you expect that your bot can automatically give out the designed answers, even when the chat users’ input is different and it matches just a little meaning with what you have trained your bot.
    • Choose Medium or Strict option if you want your bot to understand customers’ inputs at a higher level. We recommend you to choose Medium for the best experience.
  • NLP Engine: This is the AI technology from the third-party that you choose to integrate with your bot. For now, BotStar supports you to integrate with

Define Keyword

Keyword can be created as Keyword and Smart Keyword

The difference between Keyword and Smart Keyword is that Smart Keyword gets support from the third-party provider, so the bot can understand much better to the same inputs from customers and provide the correct answers.

Create a Keyword

Set up Rule

Checkout options that you can consider to train your bot.

  • A bot can recognize the insensitive case.
  • You have to be careful with short words such as "I" and "you" because they can unintentionally match with Keywords which have those words and chat users may receive wrong answers.
  • Rule message is one of and the message begins with allowing more than one message in one rule and each message is separated by a comma(,). But Message is, Message contains...and... and a message is sticker only allow one message in one rule.

Set up Response

To set up a response you can choose one of two options which are Write a response or Select a block.

Write a response: In the case of training small talks or you want to give your customers some information that doesn't exist in the flow based on the message. You can write a response manually, it makes your bot more natural.

1. Click on write a response.

2. Write the answer you want your chat users to receive.

Select a block: you can set up a response by selecting an existing block for the bot to take the chat user back to the flow, then they can continue the conversation from that block.

1. Click on Select a block.

2. Choose the existing block in your bot flow.

Prioritize principle

Keyword features can help you give out a suitable answer to customers anywhere in the flow based on the keywords in their response. But in some cases, it is not always your intent for keywords to be triggered every time in the flow. Or customers accidentally type more than two keywords in one sentence which bot may send the response of the keyword you don't want.

Prioritize Keyword

You can follow this example to have a clear thought about this principle. In this example, you set up two Keywords:
  • The first Keyword is the message containing "order" and its response will be the block "order?" in the flow which contains the message "what do you want to order?".
  • The second Keyword is the message containing "take-out" and its response is "Thank you for using our service. you can go to the cashier to order and wait for your take-out". The Keyword "order" is above the Keyword "take-out". So that when the customer types these two Keywords in one message, they will receive the response from the Keyword "order"

We pretend the chat user's message is "I'd like to order take-out". Here is the result:

When you change the Keyword with the message "take-out" from the bottom to the top. They will receive a response from the Keyword "take-out" after the change.

Prioritize Keyword Set

If chat users accidentally type more than one keyword in one message and those Keywords come from different Keyword Sets, the bot will match the keyword in the first Keyword Set. You can always change the Keyword Set's order to satisfy your needs.

Note: Remember to Publish your chatbot again if you make any changes on your chatbot or else nothing will be changed on your Facebook page or Website.

Keyword priority in Flow

Priority Keyword in the flow means that you will train the bot to understand that at those specific blocks, when will it need to prioritize the flow or when will it need to prioritize the keywords. Normally, the bot will automatically prioritize the flow.

Now, assuming we have a simple bot flow when you want the bot to prioritize Keyword first then automatic flow at a specific block:

The keyword is Message contains “opening time" with the response is “Our coffee store opens at 8 A.M and closes at 10 P.M"

With the priority principle, if you do not set any response validation value or connector condition for the block, then it will automatically use the next block as a response. And if bot still can't understand customer’s sentences, then it will be triggered to Fallback block.

You also can change the priority by clicking Outgoing Connections, move Global Triggers and Keyword block above the block Quantity (Automatically)

In short, the bot will respond according to this order:
  • Response Validation Value
  • Connectors
  • Keywords
  • Fallback block

Was this article helpful?
Chatbot Help Portal | 2024