Rules

Rules teach your botClosed A software application that handles customer interactions in place of a live human agent. how to respond to messagesClosed Anything a contact says in a bot interaction, whether question or statement, written or spoken. that are the same in every context. Every time the bot recognizes the intent associated with that rule, it responds the same way. Rules are useful situations such as:

Before you add a new rule, be sure you have created the intent for the rule, if it doesn't exist already.

Rules vs Stories

Rules are one method of teaching your bot to respond to contact utterancesClosed What a contact says or types.. The other method is to create stories. Stories allow you to teach your bot how to respond in the context of the conversation. When context matters to understand what the contact wants, use a story. If context doesn't matter and the contact's utterance means the same thing all the time, use a rule.

For example, if the contact says "What are your hours," the bot probably doesn't need any context and you can use a rule. But if the contact says "How do I do that," the bot needs to understand the context of the message. What the contact asked earlier in the conversation will help the bot understand how to respond appropriately, so you should use a story.

Conditions

You can define specific conditions that must be met in order for the rule to be used. This allows you to have the bot follow a rule in certain circumstances. This is helpful if you want the bot to respond to the same message in different ways, depending on some criteria.

You can choose from the following types of conditions:

  • Active Form: The rule only triggers when the specific form or forms are active.
  • Slot Value: The rule only triggers when the specified slot or slots have the configured value.