Insert a value
Use {{ event.field }} in message fields that support templates. Select an example and click a field in the event shape: that copies it with its braces, ready to paste. Right-click a field to copy only its path, for a filter or inside an expression you have already opened. A source’s fields differ from those of other sources.
Nested fields use dots, and array positions start at zero: {{ event.logs.0.address }}. The input.event and input.actions aliases also work in templates.
Use an earlier action
Outputs use actions followed by the action type and its count within the path, such as actions.transform_1 or actions.agent_1. The inspector shows the current key.
Only earlier outputs from this path are available. Reordering two actions of the same type or deleting one can change the numbering. Retest downstream messages after editing.
Arithmetic and number formatting
Templates support arithmetic on numeric values. Division keeps up to 18 fractional digits and truncates. For example, {{ event.value_decimal / 1000 }} expresses an amount in thousands.
Shape a number with a function: {{ format(event.value_decimal, 2) }} writes 7,000,000.00, with separators and exactly two decimals. round, floor and ceil take the same two inputs and leave the separators out: {{ round(event.price_usd, 2) }}. abs removes the sign. Functions and arithmetic combine: {{ format(event.value_decimal * actions.token_price_1.usdc.price_usd, 2) }}.
An unknown field renders empty and is reported as unresolved in previews. Division by zero or a nonnumeric operand also cannot produce a valid value. Fix these warnings before enabling, or give the value a fallback.
Every operator and function, with examples, is in Fallbacks, math, and number formatting.
Optional data
Inspect several examples where possible. A sale price, USD estimate, or metadata field present on one event may be absent on another. Add a fallback with two bars: {{ event.token.symbol || event.token.address }} uses the address when the token has no symbol, and {{ event.collection.name || "an unnamed collection" }} uses the text. Fallback text goes in quotes. A fallback applies when the value is missing or empty, never when it is 0.
In a batch, use event.count, event.events, and batch summary fields. Do not assume a single transfer’s transaction link or wallet fields exist at the top level.