Conditions and branching (if/then) in a workflow
Make your flows take decisions and follow different paths based on each contact data.
Watch this step in the video · If condition: a single rule
A linear workflow always does the same thing. With conditions and branching your flow takes decisions: it evaluates a rule and, depending on the result, follows one path or another. That way a single automation handles many scenarios.
The condition node (if/then)
The condition node evaluates a rule and splits the flow into two outputs:
- Yes (true): the nodes that run when the condition is met.
- No (false): the nodes that run when it isn't met.
Each output can have its own sequence of actions.
What you can evaluate
Conditions usually compare data from the flow context:
- A contact field (standard or custom): "Customer type = Wholesale?".
- The lifecycle stage or a deal's pipeline/stage.
- The conversation's channel or whether it has a certain tag.
- The content of the last message (for example, that it contains a word).
How to build a branch
- In the editor, add a condition node after the trigger or an action.
- Define the rule: field, operator (equals, not equal, contains, greater than, etc.), and value.
- Connect the Yes output nodes with the actions for that case.
- Connect the No output nodes with the alternative path.
Multiple conditions (AND / OR)
For richer rules, combine several conditions:
- With AND all must be met.
- With OR just one needs to be met.
Best practices
- Always cover the No path, even if just to close the flow cleanly.
- Avoid nesting too many branches; if the flow becomes unreadable, split it into several flows.
- Name the nodes so you can tell at a glance what each branch evaluates.
Tip: sketch the logic on paper before building it. A clear decision tree avoids orphan branches and customers who get stuck with no exit.
Related articles
-
Build your first workflow
Omnifox workflows automate your operation: a trigger starts the automation and action nodes do the work. Build a welcome message in minutes.
-
Workflow triggers catalog
Learn which events can start a workflow automatically in Omnifox.
-
Workflows complete guide
Workflows in depth, in 54 chapters: triggers, nodes, variables, testing, history, templates, import and export, with every setting explained and a real workflow end to end.
-
Action nodes available in workflows
Discover the actions a workflow can run automatically.
-
Ready-to-use workflow templates
Start your automations in minutes from prebuilt flows you can customize.