AI Rule Engine Docs
Go to App

Data & Transform Actions

Data actions shape values inside the run: compute and convert with Transform, assemble JSON or XML documents, and add or remove named values in the context.

At a glance

ActionUse it to
TransformRun one or more operators over a value (math, string, date, array).
JSON CreateBuild a JSON document from context values.
XML CreateBuild an XML document from context values.
Add to ContextSet named values into the context.
Remove from ContextDelete named keys from the context.

Inputs are value inputs (a constant, a context key, or a variable); outputs are written to a named context key.

Transform

A Transform action holds an ordered list of transformations. Each transformation takes an Input value, applies an Operator with zero or more Input Arguments, and writes the result to an Output context key. Each transformation also defines a failure reaction and an optional fallback value, so a failed operator can substitute a default instead of stopping the run.

The operators fall into four families:

FamilyExamples
MathAdd, Subtract, Multiply, Divide, Round, Abs, Min/Max, Pow, Sqrt.
StringAppend, Substring, Replace, ToUpper/ToLower, Trim, Split, Join, regex and JSON/XPath extraction.
Date/TimeAdd days/hours, diff between dates, extract parts, start/end of day/week/month/year.
ArrayAppend, Count, Distinct, Order, Take/Skip, Sum, Average, Contains, Slice.
Sequencing transforms Transformations run in order, so a later step can read a context key written by an earlier one. Chain several transformations to compose a small data pipeline inside a single action.

JSON Create

Builds a JSON document from a structured definition (the JSON root), pulling in context values where referenced, and writes the serialized document to an Output context key. Use it to assemble a request body or payload before an API action.

XML Create

Builds an XML document from a root element definition and writes it to an Output context key. Use it when an integration target expects XML rather than JSON.

Add to Context

Sets one or more values into the context. Each entry maps a target context key to a value input, so this is how you assign constants, copy a value from one key to another, or capture a variable into a named key for later actions to read.

Remove from Context

Deletes one or more named keys from the context. Use it to clear large intermediate values once they are no longer needed, or to avoid carrying sensitive data further through the run.

No standalone "set value" action Values are assigned through Add to Context (and through each action's own output keys). There is no separate generic Set action — Add to Context fills that role.