Skip to main content

Logic nodes

Logic nodes can be used when the flow must be branched based on the given conditions.


1. Condition

This node is available for voice bots.

Branch the flow based on if-else logic with this node.

For example, in the given flow the variable issueDetail is storing the quick replies response (which is Yes/ No). Then the Condition is checked: If issueDetail = Yes, the AI-agent will move to the mentioned flow Else (if any other value is entered other than Yes), the text will be displayed to the user.

Condition node must have:

  1. If condition

Select a value (only one value can be selected) from the dropdown based on your use case, it consists of:

  • Journey Variables - Variables created for that particular flow. Use this to compare and branch flows based on variable values
  • Global Variables - Use these values to compare and branch flows based on existing global variables that are extracted.
  • User Properties - Use these values to compare and branch flows based on user properties like first name, gender, city, dob etc.
  • Others -
    • Intent: Used to compare and branch when a Intent is detected.
    • Entity: Used to compare and branch when an Entity is detected.
    • Entity Value: Used to compare and branch when a Entity value is detected.
    • Mustache: You can write complex variable object and compare it to other variables (example variables.var_name.key_name)
    • Inside agent working hours: This can be used to branch conversation based on agent working hours configured at Inbox.
    • Sentiment: This is used to branch based on the Sentiment detected on the last user message (Sentiment can be Positive/ Negative/ Neutral). For example, if questioned about the user experience in the flow, and user replies with something negative, Conditional node can be used to → connect the user directly to an agent. If the reply is of positive or neutral sentiment, you can add them to reply back later with logic etc.
    • globalModel: This is a context handler that is used to branch the flow based on the identified context. For example, if the user enters "Why is this process getting delayed?", the globalModel identifies the context as "why" and diverts the flow to the attached node (Execute flow-> followup and reply "We are processing your application, please stay with us.")

Context Handler is also available on our Beta release Input Node. Add an input node to your flow to access it.

To know more about handling contextual responses, click here.

  • System - Page URL. This will branch conversation flow based on the page URL detected.
note

These dropdown values are derived from the data available in the system. Journey variables are created by the user for that flow, Global variables are asked and extracted from the other nodes, User properties are extracted from variables and few are automatically fetched by the system like IP, Country, Timezone, Created at, etc.

  1. Condition

  1. Conditional Value

Multiple values can be selected based on the use-case.

This dropdown will consist of:

  1. Journey Variables
  2. Global Variables
  3. System Variables
  4. User Properties

When If-condition is Others or System these values are updated automatically.

  1. Else Condition

To add an Else-if condition, click +Add another condition.


2. Channel filter

Similar to the condition node, branch the flow based on the available active channels with this node.

Multiple channels can be configured for a AI-agent. Branching (based on If, Else-if and Else conditions) through this node can happen when the mentioned channels are configured.

For example, for the above flow, the following conditions are checked:

  1. If, Facebook or WhatsApp channels are configured, the first flow (provideCoupons) will be executed.
  2. Else-if, the Telegram or Skype channels are configured, a second flow (socialHandle) will be executed.
  3. Else, if none of the mentioned channels is configured, a question will be posed to a user to share their social media handle (text node).

Since none of the channels mentioned in If and Else-if was configured, the AI-agent displayed a text message ("Please enter your social media handle where we can reach you")