Logic Node¶
The Logic Node provides a simpler experience to developers, facilitating the use of context variables and the definition of complex transition conditions. Its two primary features are:
- Ability to manage variables and values of variables in the context object.
- Ability to define nested transition conditions.
This article shows you how to add and configure the Logic node.
Add the Node¶
The setup of a logic node in a dialog task involves the following steps:
- Open the dialog task to which you want to add the Logic node.
-
Add the Logic node in the designated place. For steps on adding nodes, refer here.
Note
You can add a logic node within an existing sequence or outside any existing sequence. If you add it outside, a new, untitled sequence will automatically get created containing the new logic node.
-
The Logic node is displayed with the Component Properties tab selected by default.
Configure the Node¶
Component Properties¶
Note
All changes made to the Component Properties tab will affect all instances of the Logic node, across Dialog Tasks.
To configure the Component Properties tab, please follow the steps below:
- On the Component Properties tab, you can modify the Name and Display Name.
- Use the Manage Context Variables section to set the context variables by entering a key-value pair. Use the full path of the variable in the key field i.e.
context.BotUserSession.<variable_name>.
- In the Variable Namespaces section (v8.0), associate the variable namespaces to execute this node and its transitions. This option is visible only when the variable namespace is enabled for the assistant. You can go with the task level settings or customize it for this node. For more information, refer to Managing Namespace.
Instance Properties¶
Note
The settings in the Instance Properties tab are specific to the current dialog task and do not reflect in other dialog tasks that use this node.
Use the Instance Properties to define any user tags that you want to set.
- On the Logic node properties panel, click the Instance Properties tab.
-
Under the Custom Tags section, add tags to build custom profiles of your VA’s conversations. Click here for more.
Connections Properties¶
Note
- Connection properties can be seen and accessed only if this is the bottommost node of a sequence.
- The conditions configured here are applicable only for this instance and will not affect this node when being used in any other dialog.
To set up node connection conditions, please follow the steps outlined in Adding IF-Else Conditions to Node Connections.