Working with variables in RPAs

How variables work in Automize: insert values with {curly braces}, reach inside records, give fallbacks with ||, run formulas, share values across processes as Assets, and read the error markers.

Help Centre › Building Processes

Anywhere a step accepts text (typing into a field, making a decision, naming a file) you can insert a variable. A variable holds whatever an earlier step produced: a value you typed, a scraped value, an Excel cell, an extracted invoice field, or a record from a loop. When the process runs, Automize replaces the variable with its current value.

1. Inserting a variable

Wrap the variable's name in curly braces:

{firstName} → Cedric {invoiceTotal} → 1234.56

The name must match the variable exactly: variable names are case-sensitive, so {Total} and {total} are different.

Note: If a name can't be found, as a variable or as an Asset, you get #VAR! in its place. A typo shows up that way.

2. Reaching inside records (nested access)

When a variable holds a record (an object with fields) or a list, you drill into it with a separator. Five separators do the same job. We recommend :::

:: (recommended){invoice::supplier}
.{invoice.supplier}
:{invoice:supplier}
->{invoice->supplier}
|{invoice|supplier}

All five resolve to the same value. Chain them to go deeper, and use a 0-based index to reach list items:

{invoice::lines::0::amount} → the first line's amount {order::customer::address::city}

Older processes may use the other separators. They still work, but using :: everywhere keeps your processes consistent.

3. Keys that contain spaces or punctuation

If a field name itself contains a space, a dot, a pipe or another separator character, a bare separator can't reach it. Put that part in quotes, or in square brackets. Both do the same thing:

{record::"first name"} → reaches the "first name" key {record::'total (USD)'} → single or double quotes both work {record["first name"]} → bracket subscript {record::items[2]} → mix separators and brackets {record["nested"]["deep"]["value"]}

4. Fallbacks: the || operator

Use || inside a token to supply fallbacks. Automize tries each option left to right and uses the first one that has a real value:

{record::nickname || record::firstName} → nickname, else firstName {record::email || "no email on file"} → email, else the literal text {a::x || b::x || c::x} → the first of three sources that exists

Things to remember:

  • A quoted option ("…" or '…') is used as plain text, not looked up. Use it for a default message.
  • An unquoted option is a normal variable lookup.
  • An empty value is skipped, so {x || "fallback"} uses the fallback when x is empty.
  • Zero and false are real values and are not skipped. {count || "none"} returns 0 when count is 0.
  • || inside quotes is literal text, not the operator.

Don't confuse || (fallback) with a single |, which is a separator: {name|upper} reads a field called "upper" inside name. To change a value, use a formula (next section).

5. Formulas and functions

Start a token with = to run a formula inside text. Inside {=…} you can write variable names without their own braces. A field whose whole value starts with =, such as =CONCAT("Hello ", {name}), is also a formula; there you keep the braces.

{=ROUND(invoice::total * 1.15, 2)} {=CONCAT(record::firstName, " ", record::lastName)} {=UPPER(supplier::name)} {=IF(invoice::total > 1000, "approve", "review")} {=IFERROR(record::vat, 0)}

Function families include Math (ROUND, SUM, MIN, MAX…), Text (CONCAT, TRIM, LEFT, SUBSTITUTE, REGEXEXTRACT…), Date/time (TODAY, NOW, EOMONTH, NETWORKDAYS…), Logic (IF, AND, OR, SWITCH), Lookup (VLOOKUP, XLOOKUP, INDEX, MATCH), validation tests (ISNUMBER, ISEMAIL, ISBLANK…), and data/AI helpers (AI, TRANSLATE, EXCHANGE). For the full list see What calculation functions are supported.

6. When something is wrong

A bad variable or formula doesn't crash the process. Instead it puts an error marker in the text, so you can see what failed:

#VAR!The variable or path doesn't exist
#VALUE!Wrong type for the operation
#NAME!Unknown function name
#DIV/0!Division by zero
#N/A!Value not available (catch with IFNA)
#REF!Invalid reference
#NULL!Null or empty operand

Replace a marker with something friendly by wrapping the risky part in IFERROR(…) or adding a || "default" fallback. See also Formula errors.

7. Shared variables (Assets)

Some values are the same across many processes: a folder path, a sheet name, a supplier code. Store them once as Assets in Library › Variables, and use them in any process with the usual {name}.

  • A name must start with a letter and use only letters, numbers and underscores, for example invoice_folder.
  • An Asset can be text, a number, true / false, a date, or a secret that points to a saved credential.
  • Bot overrides give one bot its own value, for example a different folder path on each machine.
  • An Asset can also have a different value per environment.

When a run meets {name} and the process has no variable of that name, the bot looks for an Asset. It uses the bot's own value first, then the general one. The value is read while the run is going, so a change takes effect straight away. If there is no such Asset, you get #VAR!. Assets can't be used in a trigger's filter, only inside a run.

The edit form of a process no longer has its own Variable/Value rows. Use Assets instead.

8. Good to know

  • {} and { } (empty or whitespace braces) are left as plain text. They are not variables.
  • There is no escaping. {{name}} is not a way to print "{name}". Avoid stray braces in ordinary text.

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.