Tailflow
Skip to article
Browse documentation

Build a flow

Templates and event fields

Insert event data and earlier outputs without guessing field names.

Insert a value

Use {{ event.field }} in message fields that support templates. Select an example and use the field picker to copy its exact path. 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.

Message Template Editor and Preview
1Event shape
2Message
Rendered
125000 USDC moved
Example. Copy a field’s path from the event shape, insert it in the message, and check the rendered value before enabling.Changes stay in this example. Nothing is saved or sent.

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.

Email Configuration with Transform Output
Transform · Output
actions.transform_1.summary
125000 USDC transferred
actions.transform_1.link
https://example.com/transaction
Email · Body
Rendered
125000 USDC transferred https://example.com/transaction
Example. Select an output from the earlier Transform action, then test the message. The action must be above the message on the same path.Changes stay in this example. Nothing is saved or sent.

Arithmetic and missing values

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.

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; they are not automatically replaced with useful fallback text.

Message Preview with an Unresolved Field
Event shape
token_symbol
USDC
value_decimal
125000
Email · Body
Rendered
transfer
Unresolved: event.symbol
Example. Check the exact path against Event shape. Replace the unresolved name with token_symbol before enabling.Changes stay in this example. Nothing is saved or sent.

Optional data

Inspect several examples where possible. A sale price, USD estimate, or metadata field present on one event may be absent on another. Use Transform to produce fallback text when your message needs it.

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.

Transform Configuration for Missing Values
Transform · Script
Email · Body
Example. Use Transform when a missing value should produce readable text. A direct template cannot invent a useful fallback.Changes stay in this example. Nothing is saved or sent.