YOCTOL.AI Document
  • Welcome Page
  • Seeker - Guideline
    • Fan analysis: Intimacy Level and Tag
    • Post & Analysis Dashboard
    • Publishing Tool: Create posts with auto tag and reply
    • How to set a Tracking URL
    • How to use Ads Audience tool
    • Message & Keyword Reply
    • Role Settings
    • Broadcast
    • FAQ
  • Creator - Chatbot Building Guide
    • (1) Create YOCTOL.AI Account
    • (2) Create Chatbot and Connect
    • (3) Create Intents and Utterances
    • (4) Train and Test
    • (5) Create Entity
    • (6) Edit Dialogue
    • (7) Set Rules
    • (8) Publish
  • Creator - Advanced Settings
    • Switch to Live Agent - Messenger
    • JSON API for Messenger
    • JSON API for LINE
    • Referral Link - Messenger
    • Extension
    • Tag
  • Creator - Campaign Promotion Guide
    • Set Broadcast Message
    • Auto Reply for Campaign
  • Creator - Common Issues
    • FAQ
    • How to improve my chatbot’s accuracy?
    • How to Activate a Staging Chatbot?
    • Can’t Find Existing Pages.
    • How to Switch back to Live Agent? (LINE)
    • Downloading and Uploading Chatbots
    • How to Switch Languages? (Chinese, English)
  • Creator - Term Translations
    • Dialogue
    • Message
    • Component
    • Intent
    • Utterance
    • Entity
    • Rule
    • Regular Expression
    • Menu
    • Default Reply
    • Welcome Message
    • Live Agent
    • Permission Management
Powered by GitBook
On this page
  • Things you should know
  • Steps
  • Types of Rules

Was this helpful?

  1. Creator - Chatbot Building Guide

(7) Set Rules

Previous(6) Edit DialogueNext(8) Publish

Last updated 5 years ago

Was this helpful?

Things you should know

Rules are a set of certain conditions to tell the bot what to respond. To put it simply, rules are the connections between “what bot understands” (e.g., NLU) and ”what bot responds” (e.g., message). Setting rules means to set up which message the bot will respond with, once the bot understands certain contents.

Steps

  1. Click on My Bot > Dialogue

  2. Select the message that you want to add rules on.

  3. On the top, select Rules , then add a rule by clicking + Rule

  4. On Type , choose the type of rule (Types are illustrated as follow.)

Types of Rules

  1. NLU (Intent and Entity)

  2. Keyword matching (one or more keywords)

  3. Regular expression

Method 1 and 2 are more commonly used. Below is an in-depth description on the differences.

1. Using NLU as a rule

‌Set a rule with intents and/ or entity as a rule.

For example: Intent “Take away”, “Price”, Entity “Drinks”

2. Using keyword matching as a rule

For instance, you can set keywords such as “take away” or “order” as a rule. When any of these keywords appears in the sentence, it tells the bot to respond with this message.

‌3. Using regular expressions as a rule

Regular expression is a sequence of characters that define a search pattern. For instance, you want to set up a rule that can match the words including “order” and “take away”, you can use regular expression as the rule.

I want to order drinks. I want to take away .

The above sentences, you can use a single regular expression to match both of them.

^I (want|would like to) (order|take away)(drinks)?.$

Note: A particular rule can be only used in one message. A message can contain several rules.

For more detailed tutorial, check out

Regular Expression