BotFlow logic & routing

Use conditions and routing logic in BotFlow, including Set Condition and Switch Condition.

BotFlow logic & routing

Logical components control decision-making inside flows.

Available logical tools:

  • Set Condition

  • Switch Condition

  • Data Transfer

Set Condition

Set Condition logical block in KWIC BotFlow
Set Condition logical block in KWIC BotFlow
Set Condition configuration screen: variable, operator, and comparison value
Set Condition configuration screen: variable, operator, and comparison value

Purpose:

  • Validate user input and decide whether to continue or stop the flow.

Example:

  • If a user enters their age:

    • Age ≥ 18 → Continue

    • Age < 18 → Stop or redirect

Configuration steps:

  • Add Set Condition.

  • Click the edit icon.

  • Select the variable (example: age).

  • Choose a condition:

    • Equal to

    • Not equal to

    • Contains

    • Does not contain

    • Starts with

    • Greater than

    • Less than

  • Enter the comparison value (example: 18).

Multiple conditions:

  • OR → Any condition is true

  • AND → All conditions must be true

Switch Condition

Switch Condition logical block in KWIC BotFlow
Switch Condition logical block in KWIC BotFlow
Switch Condition configuration to route based on a variable value
Switch Condition configuration to route based on a variable value

Purpose:

  • Route users into different flows based on a variable value.

Example:

  • Age = 18 → Flow A

  • Age = 19 → Flow B

  • Age = 20 → Flow C

Last updated