Flow definition
A workflow stores aflowDefinition: a graph of nodes and edges.
Node
data is a discriminated union by nodeType / actionType:
- Trigger —
nodeType: "TRIGGER"→ see Triggers. - Action —
nodeType: "ACTION"with anactionTypeofCREATE_OR_GET_PLAN,ADD_ITEMS_TO_PLAN,CALL_WEBHOOK, orSEND_EMAIL→ see Actions and Integrations.
Workflow record
Status
- DRAFT — editable, not triggerable.
- ACTIVE — triggerable; only active workflows execute.
- PAUSED — temporarily not accepting new runs.
- ARCHIVED — historical.
Execution model
A run starts from the trigger (which resolves the matched entities), then follows the edges through the action nodes in order. Each node becomes a step with its own status, resolved inputs, and output — and a node’s output can feed later nodes via interpolation. See Runs & examples. An example chain — your workflow uses whichever action nodes you connect; each becomes one step in the run.Validation rules
The builder enforces a few invariants:- Exactly one trigger node per workflow.
- An
ADD_ITEMS_TO_PLANnode’splanTypemust match theCREATE_OR_GET_PLANit references viasourcePlanNodeId. sourcePlanNodeIdmust point at an existing create-plan node.- No circular edges.
- Discount percentages are bounded to
[0, 100].
Continue to Triggers,
Actions,
Integrations & interpolation, and
Runs & examples.

