Node reference

Logic nodes

The Decision node is Flux's branching step: it compares a value and sends execution down a different path.

The eight operators

OperatorTrue when
EQUALSThe values match
NOT_EQUALSThey do not match
GREATER_THANLeft is larger
GREATER_THAN_OR_EQUALSLeft is larger or the same
LESS_THANLeft is smaller
LESS_THAN_OR_EQUALSLeft is smaller or the same
CONTAINSThe value is found inside the other
NOT_CONTAINSIt is not

The value being tested is usually a {{POUT ...}} expression pulling a field from the previous node.

One condition, two paths.

When to use a decision rather than the model

An AI node can also route — you can tell it to answer differently in different cases. The difference is determinism:

Decision node

The same input always takes the same path. Use it for anything with consequences: amounts, entitlements, escalation thresholds.

AI node

Judgement over language — is this angry, is this a complaint, which of six topics is it. Use it where the answer is a matter of interpretation.

A common pattern uses both: an AI node classifies the message into a fixed label, and a Decision node routes on that label. You get language understanding with predictable routing.

Branching on the canvas

Wire the Decision node's outputs to the nodes that should run in each case. Only the taken branch executes — nodes on the path not taken do not run and produce no output.

That matters when you read a compiled log: a node missing from the log usually means its branch was not taken, not that it failed.

Common uses

  • Escalation thresholds — order value over a limit goes to a human.
  • Entitlement checks — a premium customer gets a different flow.
  • Guarding a step — only call the paid API when the field is actually present.
  • Language or region routing — send the conversation to the right response node.