Skip to main content

Data and placeholders

In one sentenceEvery step declares which kinds of data it needs and which it produces, so the editor offers a step only where its inputs already exist; a step's named outputs are then read later as {nodeId.field} in text and as nodeId.field in conditions, so there is no field mapping to do.

Most automation tools ask you to wire the output of one step to the input of the next. Lumen does not. Data moves down the flow by itself, and what you write by hand is only the places where you want a value in a piece of text or a test.

Four kinds of data​

What travels between steps is one of four kinds. A document in a run carries any mix of them.

KindWhat it isTypical source
fileA reference to a stored file: its name, type and size, never its bytes.An attachment, an uploaded file, a merged PDF
textText extracted from a file, per file.Read the text
fieldsNamed, typed values found in a document.Find the details, an agent, Set fields
emailThe message itself: sender, subject, received time.The email trigger

Each step lists what it needs and what it produces. Merge them into one PDF needs file and produces file. Read the text needs file and produces text. An email trigger produces email and file. The kinds accumulate down the flow, so a step three places later still sees the email.

This is why the step picker never shows a step that cannot run at that point: a step that needs text is offered only after something that produces text. (An AI step that needs text can also take files directly and read them itself, so it does not need a read step first.) The editor and the server apply the same check, so a flow that saves is a flow whose steps all have what they need. The full needs and produces of each step is on its reference page.

Named outputs​

Besides the four kinds, a node exposes outputs: named, typed values that later nodes can read. A trigger and a step each have their own.

Output typeHolds
stringText.
number, integerA number.
booleanTrue or false.
dateA day or a time.
moneyAn amount with a currency. A condition compares its amount.
array, objectA list, or a set of named values.

Where the names come from depends on the node:

  • Fixed by the step. The email trigger always produces from, to, subject, body, attachments, senderVerified, receivedAt and messageId.
  • Chosen by you. An agent or Find the details step produces one output per field you ask for: a field named supplier becomes supplier. A Call API step produces the outputs you list.

An output is read by the id of the node that made it. The trigger in the examples below has the id email, and a step that finds details has the id details, so their outputs are email.from and details.total. Node ids are stable: renaming a step's title never breaks a reference to it.

A node can be read only by nodes that come after it on every path to them. A branch that skips a step does not leave a gap in a later reference, because the editor refuses a reference to a step that might not have run.

Placeholders in text​

Any setting that takes text accepts a placeholder: the output's reference in braces. Lumen fills it from the document when the step runs.

Approve {details.supplier}, {details.total}?
  • {details.supplier} is the output supplier of the node with id details.
  • {email.from} and {email.subject} are the sender and subject of the email that started the run.
  • Text with no placeholder in it is sent exactly as written.

A placeholder that finds nothing is left as written, so a gap is visible rather than silently blank. A Rename the file step goes further: if a placeholder in its pattern finds nothing, it keeps the file's own name and says which value was missing.

A step that sends a message to a person never sends a gap. On WhatsApp (send a text, send buttons, send a template, ask, and the caption of a document) and in Send email (subject and message), a placeholder that finds nothing fails the step before anything is sent, with an error such as the message would contain an unfilled value {agent.say}. So does an empty value in the message itself or in an email subject; an empty caption value is allowed. Text in braces that is not a field name, such as {see below}, is sent as written.

The Insert a value picker​

You rarely type a placeholder. Next to every text setting there is an {x} button with the tooltip Insert a value. Click it, or type { in the box, and a picker lists every output available at that step, grouped by the node that produces it and marked with an icon for its type. Choose one and its placeholder is written at the cursor.

The Rename the file step's settings with the field Name the file like holding the text {date} from {sender}.pdf. Below it the Insert a value picker is open with a search box. A group An email arrives lists from, to, subject, body, attachments, senderVerified, receivedAt and messageId, each with a small type icon, and a group This run follows.The Rename the file step's settings with the field Name the file like holding the text {date} from {sender}.pdf. Below it the Insert a value picker is open with a search box. A group An email arrives lists from, to, subject, body, attachments, senderVerified, receivedAt and messageId, each with a small type icon, and a group This run follows.
The picker lists only what is available at this step, grouped by where it comes from.

The picker only offers values the step can really read. If you type a placeholder for a step that is not before this one on every path, or for an output a step does not have, the editor colors it red and lists the reason under the box.

Dates in a layout​

A date output can be written with a layout after a colon:

TokenWritesExample for 20 Oct 2026
yyyyFour-digit year2026
yyTwo-digit year26
MMMMonth name, always in EnglishOct
MMMonth number10
ddDay20

{email.receivedAt:yyyy-MM-dd} writes 2026-10-20, and {email.receivedAt:MM/yyyy} writes 10/2026. Separate tokens with -, _, ., / or spaces. The value must be a date (YYYY-MM-DD or a full timestamp, read in UTC); on anything else the placeholder is left as written.

Built-in values​

Two groups of values exist without any step producing them.

From the email trigger. {email.from}, {email.to}, {email.subject}, {email.body}, {email.attachments} (how many), {email.senderVerified}, {email.receivedAt} and {email.messageId}, when the trigger has the id email. A flow started by another flow adds parentRun and parentFlow.

About the run. Every run has a run node, shown in the picker as This run:

ValueHolds
run.triggerWhich trigger started the run.
run.startedAtWhen the run started, with the time. Use it for the time.
run.dateThe day the run started. Use it for today's date.

A run that tests the flow also has run.test, which is true only then, and run.case, the row of the test case. A branch on run.test routes a test run around a step it should not do. See Test and evaluate.

Values in conditions​

A Branch, a Filter and a trigger's Start only when test outputs. There the reference is written without braces: details.total, email.from.

details.total >= 1000 AND (email.from ~ "supplier.example" OR email.subject STARTS "Re:")

The operators are =, !=, >, >=, <, <=, ~ (contains), !~, IN, NOT IN, STARTS, ENDS, IS EMPTY and EXISTS, joined with AND, OR and NOT. Three rules matter:

  • Text matching (~, !~, STARTS, ENDS) ignores case. = and IN do not.
  • The greater and less operators need a number, a money amount or a date. A money output compares by its amount.
  • A missing value makes every test false except IS EMPTY. To ask whether a value is there at all, use EXISTS.

The console builds the same test with pickers, one condition at a time, and the saved form is a field, an op and a value. See Branches and filters.

The same in YAML​

placeholders-invoice-mail.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: placeholders-invoice-mail
namespace: tenant-acme
spec:
displayName: Tell me about large invoices
triggers:
- id: email
ref: {name: email-arrives}
connectorRef: {name: invoices-inbox}
next: [text]
nodes:
- id: text
stepRef: {name: read-text}
next: [details]
- id: details
stepRef: {name: chat-agent}
config:
instructions: Find these details in the invoice.
fields: [{name: supplier}, {name: total, hint: Amount due, type: money}]
files: {mode: ifNoText}
next: [large]
- id: large
filter:
when: {expr: 'details.total >= 1000 AND email.from ~ "supplier.example"'}
next: [mail]
- id: mail
stepRef: {name: send-email}
config:
to: you@example.com
subject: "{details.supplier}: {details.total} ({email.receivedAt:yyyy-MM-dd})"
body: "{email.from} sent invoice {email.subject}, received on {run.date}."

Next steps​