Skip to content

Conditional Router

Conditional Router compares a text with another and, depending on the result, lets the message through the True Route or False Route output. It is the way to say “if this happens, do that; otherwise, do the other thing” inside a flow.

When to use it

  • Sending to support the emails containing the word “urgent” and the rest to a normal inbox.
  • Following a different path depending on the category a classifier returns.
  • Stopping a process when a field comes empty.

Configuration

FieldWhat it does
Input TextThe text to evaluate.
OperatorHow to compare: equals (default), not equals, contains, not contains, starts with, ends with, is empty, is not empty or boolean validator (checks whether the text means true, such as true, yes or 1).
Match TextThe text to compare with. Hidden with is empty, is not empty and boolean validator.
MessageWhat goes out through the chosen route. Empty, Input Text itself goes out.

Advanced options

FieldWhat it does
Case SensitiveTells upper case from lower case. Off by default.

Output

  • True Route: the message goes out if the comparison is met.
  • False Route: the message goes out if it is not.

Only the components connected to the route that fires run. More in Flow logic.

Example

A shop wants to alert the team when a customer writes “return”.

  1. Connect the email text to Input Text, choose contains and type return in Match Text.
  2. Connect True Route to a Slack alert and False Route to the usual automatic reply.
  • Pass: forwards a message unchanged.