Add or edit a logic tab

A logic tab defines a decision that can direct the conversation flow. Each tab contains conditions and instructions to follow if those conditions are met: "if these conditions are true, then do that".

You can:

  • Define a logic tab.
    You can create as many logic tabs as you need. If your logic has more than three tabs, the additional tabs are shown in a drop-down list.
  • Define an Else section with instructions to use when none of the tabs match.

Plan your tabs before you start

The chatbot checks logic tabs from left to right. If your logic has more than three tabs, the first three tabs are checked from left to right, then the remaining tabs in the drop-down list are checked from top to bottom. Once it finds a tab with matching conditions, the chatbot performs the instructions in the Then section of that tab and does not check the rest of the tabs. Logic tabs can't be re-ordered once they are created, so make sure you create your tabs in the order the conditions should be checked.

Logic conditions

A condition consists of:

  • The variable, constant, or entity to check.
    Only entities that are used in the Logic's Inbound Questions are available.
  • Whether the value of the variable, constant, or entity should equal or not equal the value you specify.
  • The value to check the variable, constant, or entity against.

You can define several conditions in a tab. If you define multiple conditions, you can control how the chatbot should evaluate them together:

  • Only match if all conditions in the tab are true.
  • Match if any condition in the tab is true.
  • Only match if no conditions in the tab are true.

Logic instructions

Use the Then section to define what the chatbot should do when the conditions are met:

  • Actions the chatbot should perform, such as setting a variable value or scheduling a notification.
  • The script to run or the passage or logic the chatbot should direct the conversation to.

Actions you define here are performed after any actions added via the logic menu button, but before the logic runs the script or directs the flow to the selected passage.

Define the logic tab

  1. Click the tab you want to define.
    If you need to add a new tab, click the + button beside the tab row.
    You can also delete logic tabs you no longer need.
  2. Type a Name for the tab.
    This name is never shown to your users.
  3. If you want to add multiple conditions, select whether all, any, or no conditions should be true for the tab to match.
    See Logic conditions.
  4. Define the condition:
    1. Select the variable, constant, or entity you want to check.
      Only entities that are used in the Logic's Inbound Questions are available.
    2. Select whether it should be equal or not equal to the value you specify.
    3. Type the value to check the variable, constant, or entity against.
  5. To add another condition, click + Condition.
    You can also delete conditions you no longer need.
  6. Scroll down to the Then section.
  7. If you want to perform actions when this condition is met, click Actions and configure them.
    Actions you define here are performed after any actions added via the logic menu button, but before the logic runs the script or directs the flow to the selected passage.
  8. Select either Start Passage or Run Script.
  9. Select the passage or logic to start or the script to run.
  10. Click Save.

Delete a condition

Logic tabs must have at least one condition.

To delete a condition:

  1. Click the menu to the right of the condition you want to delete.
    The menu only appears when the tab has more than one condition.
  2. Click Delete.
  3. Click Save.

Delete a logic tab

Logic must have at least one tab.

To delete a tab:

  1. Click the tab you want to delete.
  2. Scroll to the end of the Then section of the tab.
  3. Click Delete.
    The Delete button only appears if the logic has more than one tab.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.