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
- 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. - Type a Name for the tab.
This name is never shown to your users. - 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. - Define the condition:
- Select the variable, constant, or entity you want to check.
Only entities that are used in the Logic's Inbound Questions are available. - Select whether it should be equal or not equal to the value you specify.
- Type the value to check the variable, constant, or entity against.
- Select the variable, constant, or entity you want to check.
- To add another condition, click + Condition.
You can also delete conditions you no longer need. - Scroll down to the Then section.
- 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. - Select either Start Passage or Run Script.
- Select the passage or logic to start or the script to run.
- Click Save.
Delete a condition
Logic tabs must have at least one condition.
To delete a condition:
- 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. - Click Delete.
- Click Save.
Delete a logic tab
Logic must have at least one tab.
To delete a tab:
- Click the tab you want to delete.
- Scroll to the end of the Then section of the tab.
- Click Delete.
The Delete button only appears if the logic has more than one tab.
Comments
Article is closed for comments.