Skip to main content
Conditional branching lets you show different questions to different respondents based on what they’ve answered. You configure conditions on edges in the workflow canvas — the engine evaluates each outgoing edge in priority order and follows the first one that matches.

How edge evaluation works

When a respondent submits an answer and the engine needs to advance:
  1. All outgoing edges from the current node are sorted by priority (lowest number first).
  2. Each edge is checked in order. An edge matches if all its condition groups pass.
  3. The respondent is sent to the target of the first matching edge.
  4. If no conditional edge matches, the default route (unconditional edge) is taken.
  5. If there is no default route either, the respondent is sent to the fallback end node.
Priority is displayed as P0, P1, P2 … in the right panel. Lower numbers are evaluated first. You can reorder edges by dragging them.

Default route

Every node should have a default route — an unconditional edge that catches respondents who didn’t match any conditional edge. There can only be one default route per node. If all your edges are conditional and none matches, the respondent is sent to the fallback end node instead. That is usually not the intended behaviour, so always add a default route unless you deliberately want unmatched respondents to exit at the fallback.

Adding a conditional edge

  1. In the workflow canvas, draw an edge from a source node to a target node.
  2. Click the edge to open it in the right panel.
  3. Click Add condition group.
  4. Add one or more rules within the group.
  5. Set the group operator (AND — all rules must pass; OR — any rule must pass).
  6. Add more groups if needed and set the groups operator (AND or OR).

Condition structure

Each edge condition is a GroupedEdgeCondition with two levels:
Rule — tests one question’s answer against a value using an operator. Rule group — combines multiple rules with an AND or OR operator. Groups operator — combines multiple groups with AND or OR.

Operators

Available operators depend on the question type being tested.

Text questions (Short text, Long text, Email, Phone)

Number questions (Number, Date)

Rating questions (Star rating, Number scale, Opinion scale)

Same operators as Number questions.

Single-choice questions (Multiple choice, Dropdown, Yes/No)

Multi-choice questions (Checkbox, Picture choice with multiple)

Ranking


Example: NPS routing

An NPS question (Opinion scale 0–10) routes respondents into three paths:
Edge P0 config:
  • Group 1 → Rule: nps_question gte 9
Edge P1 config:
  • Group 1 → Rule: nps_question lte 6
Default edge: no conditions.

Example: Multi-condition routing

Route respondents who chose “Pricing” OR “Support” to a follow-up, everyone else to a general thank you:
Edge P0 config:
  • Group operator: OR
  • Group 1 → Rule: reason_question in pricing
  • Group 2 → Rule: reason_question in support

Next steps

Scoring

Assign point values to answers and use the score in routing conditions.

Workflow canvas

Draw edges and manage priorities on the visual canvas.