Skip to content

Nodal Flows ​

Nodal flows let you build browser automations visually. Each node represents an action, and connections define the run order.

Use a nodal flow when:

  • the automation is mostly a sequence of browser actions,
  • non-developers need to understand or edit it,
  • you want to organize the flow visually,
  • you start from a nodal blueprint.

Building a nodal flow ​

Create a flow and select Visual Builder. Use the visual editor to add nodes, connect them, configure their settings, and define their inputs.

See the complete canvas shortcut reference for keyboard commands, selection gestures, viewport controls, and advanced move tools.

Nodal flows support:

  • manual runs and triggers,
  • screenshots, downloads, and video recordings,
  • blueprint imports and updates,
  • reusable code and nodal snippets,
  • private local functions with optional arguments and recursion,
  • MCP exposure,
  • REST API triggers.

Importing a nodal blueprint recreates its visual graph and keeps it linked to the blueprint source. Imported items are read-only; duplicate one to create an editable copy.

Core visual nodes ​

The editor includes structural nodes in addition to nodes generated from the Flow API:

NodePurpose
RUNEntry point of the main flow.
TERMINATECleanup branch (shown as FINALLY) that runs after the main flow, including after failures. Off by default: enable FINALLY node in the flow settings to show and run it. While off, the branch is hidden and skipped at run time but kept for later.
CodeRun custom asynchronous JavaScript inside the generated flow.
Set variableAdd one or more values to the current flow state.
Set OutputAdd values to the final $output object.
MetaAdd searchable metadata to the run context.
If / ElseRoute execution through a true or false output.
LoopRepeat a branch over items or while a condition applies. The active iteration is available through $loop.
FilterKeep array items that satisfy an expression.
LimitSelect a range of items from an array.
MergeRejoin branches using append, object assignment, or first non-empty behavior.
No-opJoin or organize connections without performing an action.
Declare FunctionDefine a private function subgraph and expose a callable node in Local Functions.
Sticky NoteAdd non-executable context to the canvas.

Nodes created from Flow API helpers use the same signatures and behavior as their code equivalents. See the Flow API reference for their parameters and return values.

Referencing data in expressions ​

Node parameters accept expressions wrapped in {{ }}. Run data is reachable only through $run or through a named node:

ExpressionValue
{{ $run.$input.email }}Flow input, as received by RUN.
{{ $run.$output.total }}Values added so far with Set Output.
{{ $run.$context.flow_id }}Run context.
{{ $run.myVar }}A variable defined upstream with Set Variable or a Code node. Variables accumulate from node to node.
{{ $('Load Cookies').$result }}The state recorded after a specific node, by its label.
{{ $loop.item }}, {{ $loop.index }}Current iteration inside a Loop.
{{ $capture.response.body.contentJson }}Current request and response pair inside a Sniff Network callback. See $sniffNetwork.

Bare identifiers such as {{ $input.email }} or {{ myVar }} are not defined in expressions. Code nodes run plain JavaScript and expose the same data through $run; assign to $run.myVar to make a value available to following nodes.

The expression and Code node editors provide context-aware autocomplete:

  • Suggested contains $run, $now, $if, $ifEmpty, and the locals valid at the current node.
  • Earlier nodes contains $('Node name'), $nodes, and known output paths from reachable upstream nodes.
  • Methods contains Puppetflow helpers, DateTime methods, object members, and JavaScript symbols.
  • Tools contains resource-aware entries for variables, channels, AI models, Data Tables, mailbox watchers, snippets, tabs, stopwatches, network profiles, and cookie jars.

Type $page. to browse the Puppeteer API. Autocomplete uses both the installed Puppeteer declarations and the latest static or runtime node-output preview. Entries outside the current graph scope are not suggested.

Inspecting run data ​

Open a node to inspect its Before and After data. Runtime values come from the latest manual run launched by the current user. When no runtime snapshot is available, the editor shows a static preview inferred from the graph and the flow inputs.

The node footer identifies the current data source.

  • Use static preview returns to inferred data. This is useful after changing flow inputs because existing snapshots keep their original inputs.
  • Use run #N restores runtime data.

The choice is remembered across nodes.

The JSON view of Before lets you select an upstream node. The immediately preceding node uses $run; older nodes use $('Node name'). The After panel is read-only and shows the current node output.

Nodes can execute more than once inside a Loop or a Sniff Network callback. When at least two runtime snapshots exist, an N of M selector appears in the JSON view. Use it to inspect each retained $loop.item or $capture value independently. The first execution is selected by default.

The Schema view keeps all upstream nodes expanded as separate roots and shows their final state. Iteration selection is available only in the JSON view.

Execution histories are bounded. By default, Puppetflow keeps the first three executions of each node within an overall size budget. The node's final state remains available.

Truncated arrays and objects show [Preview items omitted] or [Preview properties omitted]. Network capture bodies are stored separately and loaded when a node references them. Expressions using $capture.response.body show Loading captured responses… while they load.

If a run exceeds the accepted preview size, the node footer reports it and the editor falls back to the static preview. Self-hosted instances can adjust the nodal run preview limits.

Reusable functions ​

The Snippets toolbox category contains the snippets available to the current user. Each snippet appears as its own node with configurable inputs matching its declared arguments. Code and nodal snippets behave identically when called from a nodal flow.

The Local Functions category is for functions private to the current graph. Add Declare Function, configure its name and optional arguments, then add its call node wherever it is needed. Local functions can call other local functions or themselves recursively.

Function arguments are exposed through $run.$input inside the function. Values added with Set Output are returned to the caller. Functions do not use a Return node.

Using AI Beta ​

The AI toolbox category contains:

  • AI Message - Sends a text prompt through a configured AI model. It supports system instructions, message history, sampling controls, token limits, and text or structured JSON output.
  • AI Control - Uses a vision-capable model to inspect the current browser screenshot and execute restricted browser actions until an objective completes or reaches its iteration limit.

Before adding either node, connect an AI integration and configure an AI model containing one provider model. AI Control requires a vision-capable model.

AI Control can optionally save each inspected screenshot as a run artifact. Its output includes the final status, message, iteration count, executed actions, AI model, and usage information.

Using Data Tables ​

Open the Data Tables category in the toolbox to add a Data Table operation. It appears before Utilities. Existing-resource nodes have one searchable Data Table selector that shows table names and inserts stable tableId values. The selector can also use an expression.

Data Table nodes use the same operations as the code API:

NodePurpose
Insert RowInsert one row and return the stored row.
Update Row(s)Update every row matching the filters.
Upsert Row(s)Update matching rows, or insert one row when no match exists.
If Row ExistsContinue through the true or false output.
If Row Does Not ExistContinue through the true or false output.
Get Row(s)Return matching rows with sorting and limits.
Delete Row(s)Delete matching rows.
Create Data TableCreate a table and its custom columns.
Delete Data TablePermanently delete a table and its rows.
List Data TablesReturn accessible tables and their columns.
Update Data TableUpdate a table's name, description, visibility, owner, or team.

Create Data Table and List Data Tables are workspace-level management nodes and do not require a selected table. Create accepts custom columns plus ownership and visibility options. Delete and update operate directly on the selected table.

Row values ​

The Values field is generated from the selected table. Each custom column has an input matching its type. You may leave nullable columns empty.

Switch the field to JSON or Expression when values must be computed dynamically. JSON values are keyed by column name:

json
{
  "email": "person@example.com",
  "score": 42,
  "active": true,
  "processed_at": "2026-08-27T20:30:00Z"
}

Filters ​

Each filter contains a column name, a condition, and an optional comparison value. Add more than one filter when the query needs several conditions.

Use allConditions to require every filter or anyCondition to accept a row matching at least one filter. Conditions such as isEmpty, isNotEmpty, isTrue, and isFalse do not need a comparison value.

The form selects valid conditions based on the column type. Switch to Expression to supply the complete filter array dynamically.

Mutation safeguards ​

Update Row(s) requires at least one filter unless Update all is enabled explicitly. Upsert Row(s), both existence nodes, and Delete Row(s) always require filters.

Enable Dry run on update, upsert, or delete nodes to preview the before and after rows without saving the operation. Table deletion has no dry-run mode.

Conditional outputs ​

If Row Exists and If Row Does Not Exist have true and false outputs. Connect both outputs as you would on an If / Else node. The branches can join again later in the flow.

For the complete filter format and all node options, see the Data Table Flow API reference.

Run snapshots ​

The Visual snapshot in run details uses the same nodal canvas in read-only mode. It preserves local-function subgraphs and snippet calls, highlights the currently active path, and displays traversal counts when loops or repeated function calls execute an edge more than once.