AI Rule Engine Docs
Go to App

Control & Flow Actions

Control and flow actions direct how a run proceeds: invoke another rule set, write to the log, iterate over an array, or pause for a person to step in.

At a glance

ActionUse it to
RuleInvoke another rule set, optionally passing parameters.
LogRecord a message and optional attachments during the run.
Human InterventionPause the run for human review, then resume.
Array LoopRepeat a set of actions once per item in an array.

Rule

The Rule action invokes another rule set by id, letting you factor shared logic into reusable units and compose larger workflows. Its key settings:

FieldRole
Rule Set IdThe rule set to invoke.
Copy Existing ContextWhether the called rule set inherits the current context.
Rule Set ParametersNamed values passed into the called rule set.

See Rules for how rule sets are organized.

Log

The Log action records a message during execution, which is invaluable for tracing and debugging. It takes a log level, one or more values to write (joined by an optional separator), and optional attachments referenced by context key.

FieldRole
Log LevelSeverity of the entry.
ValuesOne or more values that make up the message.
Value SeparatorOptional text inserted between values.
AttachmentsOptional context keys attached to the entry.

Log entries surface in Logging & Observability, where you can review what a run did.

Human Intervention

The Human Intervention action pauses the run and waits for a person to review and respond. The engine generates a time-limited URL (optionally a form) that a reviewer opens; submitting it resumes the run at a designated rule set.

FieldRole
Rule Set IdThe rule set resumed when the reviewer submits.
Url Expiration HoursHow long the generated link stays valid.
Max Url UsesHow many times the link may be used (defaults to one).
Generated Url Context KeyContext key that receives the generated link.
Form Document JsonOptional definition of the review form.

See Human Intervention for the full pause-and-resume flow. This action is not available inside extension projects.

Array Loop

The Array Loop action repeats a nested set of actions once for each element of an array, exposing the current item and index to the inner actions on each pass. Use it to process collections — for example, calling an API or transforming a value for every record in a list.