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
| Field | What it does |
|---|---|
| Input Text | The text to evaluate. |
| Operator | How 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 Text | The text to compare with. Hidden with is empty, is not empty and boolean validator. |
| Message | What goes out through the chosen route. Empty, Input Text itself goes out. |
Advanced options
| Field | What it does |
|---|---|
| Case Sensitive | Tells 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”.
- Connect the email text to Input Text, choose
containsand typereturnin Match Text. - Connect True Route to a Slack alert and False Route to the usual automatic reply.
Related components
- Pass: forwards a message unchanged.