Overview
Three step types accept CEL expressions:
Each step type exposes different context variables to the expression:
Conditions
Condition evaluators receive step input context and must return a boolean.True runs steps, False runs else_steps.
Route on input content
Branch on previous step output
Run a classifier first, then route based on its output:Branch on additional data
Branch on session state
Loops
Loop end conditions receive loop output context and must return a boolean.True exits the loop.
Exit after N iterations
Exit on output keyword
Compound exit condition
Routers
Router selectors receive step input context and must return a string matching a step name fromchoices.