blokboard/ Open beta

Build workflows

Data and variables

Follow values through the graph and choose between variables, Globals, and State.

Each execution path carries a payload and the values made available along that path. A node can transform its incoming payload, emit a new one, or route it onward unchanged.

Payloads and node outputs

Payloads can be objects, arrays, strings, numbers, booleans, or null. Their shape depends on the node. Select an executed node to see the actual value before writing an expression.

Node scopes expose an input and an output. For example, {{start.output.startTime}} reads the Start output. A Variable node normally has the scope variable; additional Variable nodes use names such as variable2. Use the expression picker to select the correct node and field.

Reference names are assigned when nodes are created and saved with the workflow. Saving, reloading, renaming a display label, or deleting another node does not renumber them. Pasting a copy assigns new reference names to the copied nodes.

For nodes with several outputs, the port name can be part of the output structure. Refer to the generated node reference and the picker instead of guessing a path.

Named variables

The Variable node assigns names to values. If it creates customerName, later nodes on that path can read {{customerName}}. Its output object contains the variables it just assigned.

Choose the value type using the small control before the name: Aa for text or expressions, 09 for numbers, {} for objects, and [] for lists; boolean and null are also available. Enter valid JSON for object and list literals. To copy a value from another node, choose Text and enter an exact expression; its resolved type is preserved.

Variables belong to an execution path. A value created on one sibling branch is not automatically available to another sibling. Connect the dependency explicitly.

Instruction, transaction and file values

Some nodes return a named value type with details the next node needs:

Value typeCreated byUsed by
instructionBuild instructionsBuild transaction, directly or as a list
transactionBuild transaction and Sign transactionSign transaction; Send transaction requires every signature
fileOpen file and Create fileRead file, Write file, Save file and attachment-capable nodes

Pass the whole value with an exact expression. Variable, State and append preserve its type and source information; copying only a field or inserting it into a sentence does not. A file value identifies bytes held by the current runtime for the current run. Saving that reference in State does not keep the file alive after the run.

Choose the right lifetime

  • Variables: intermediate values for the current execution path.
  • Globals: reusable configuration available when a run begins.
  • State: workflow memory that persists between runs on a particular runtime.

Keep credentials in connections or the wallet vault, rather than ordinary values.

Variables or State?

Both can hold a number, text, a list, or an object. What differs is who shares the value and how long it lasts.

QuestionVariableState
Who shares it?Later nodes on the same path.Reads of that key in this workflow and runtime.
How long does it last?This execution path.Across runs, until cleared or replaced.
Who sees updates?Later steps on that path.Later reads of the saved key.

Ordinary variables can be updated: another Variable node can assign the same name later on a path. Other item paths keep their own values. State is useful when the value must be shared between item paths or remembered by a later run. Earlier node outputs remain snapshots; {{state.key}} reads the current saved value when each node starts.

A Variable node's configured inputs stay saved in the workflow. Values calculated during a run do not overwrite those inputs or become saved State.

Wallet report: keep each wallet's values on its own path

A multi-wallet balance sheet can read wallets concurrently and build a report row for each one. Treasury might return 2 SOL while Operations returns 0.4 SOL. Each row must keep its own wallet address, balance, and status, even when requests finish in a different order.

Use the balance node's output directly, or a Variable if you want a reusable name such as walletBalance. A single State key called walletBalance would be shared: Operations could replace it before Treasury reads it. Separate State keys could avoid that collision, but would leave persistent data that this report does not need. The next report should fetch fresh balances.

Balance changes: remember the previous run

A SOL change report needs both today's balance and the previous observed balance. If Treasury had 2 SOL on the previous run and has 1.8 SOL now, the report shows a change of -0.2 SOL. A Variable alone cannot supply the earlier observation after the run has ended.

This example saves raw lamport strings under a State key containing the wallet address, such as sol:ADDRESS. Initialize State creates a missing baseline as null and preserves it on later runs. The report compares that baseline with the current balance, then Update State saves the new balance after appending the wallet's report row. The first run establishes a baseline. The saved value records an observation, not successful email delivery; use a fresh baseline if you change networks.

Dust cleaner: share a batch between sequential items

In the Solana dust cleaner, dustTokenAmount, batchSize, and confirmationTimeoutSeconds are Variable inputs set near Start. Each item builds its own instructions. State holds the pending batch so the next sequential item can append to it and the done path can read any remainder.

Sequential Iterate controls when item paths run; it does not carry a Variable assignment from one item into the next. State bridges those paths. The cleaner clears the batch after confirmation and explicitly deletes the old batch before initializing a fresh one at the beginning of each run. Here State's shared memory is useful even though the batch is temporary.

Do you need both nodes in every workflow?

No. If a later node can reference an earlier output directly, you do not need a Variable node just to copy it. Use Variable for useful names, reusable values, or a clear set of run inputs. Use State for shared progress or memory between runs. Putting everything in State adds shared names and cleanup work; using only Variables loses persistent memory and shared batches.

Next: expressions, Globals, and persistent State.