Flows
A flow is an automation that runs in a sandboxed browser environment. It is the core unit of work in Puppetflow.
Creating a flow
Open Flow Explorer and click New Flow. Choose a source:
- Visual Builder - Build a nodal flow with nodes and connections.
- Raw Code - Write the script in the built-in Monaco editor.
- Git Repository - Link a file from a repository and synchronize it on push or tag events.
Every flow has a name and a generated ID used for API and CLI access. Flows can be organized into folders.
Flow types
Puppetflow supports two flow types.
| Type | Best for |
|---|---|
| Nodal flow | Visual automation steps that are easy to inspect and modify. |
| Code flow | Custom JavaScript and direct Puppeteer control. |
Both types support the same run options, artifacts, recordings, and API responses.
Snippets
Snippets are reusable functions that can be called from code flows, nodal flows, and other snippets. Each snippet has a generated ID, used with a $$ prefix, and an optional comma-separated argument list.
When creating a snippet, choose one of two immutable types:
| Type | Description |
|---|---|
| Nodal snippet | Build the function visually with nodes and expressions. |
| Code snippet | Write the function body directly in JavaScript. |
Both types expose the same callable interface. For example, a snippet with ID snip_k8Zt3xQ9mA2f and arguments street, city can be called from code:
const address = await $$snip_k8Zt3xQ9mA2f(street, city);Inside the snippet, named arguments are available through $input, such as $input.street and $input.city.
Nodal snippets
A nodal snippet starts at the fixed SNIPPET node instead of a flow RUN node. Connect actions from this node to define the function body. Assign values to $output when the caller needs a result. There is no dedicated Return node.
The nodal toolbox lists accessible snippets in the Snippets category. Adding one creates a call node with an input for each declared argument. This works for code and nodal snippets, so callers do not need to know how the snippet was implemented.
Local functions
Nodal flows and nodal snippets can also declare private functions from the Local Functions toolbox category. A declared function:
- has optional named arguments available through
$input, - can be called from
RUN,TERMINATE, a snippet body, or another local function, - can call itself recursively,
- returns its
$outputobject to the caller.
Local functions belong only to their containing graph. Use a snippet when the function needs to be reused by other flows or snippets.
Import and export
Code snippets are exported as JavaScript files. Nodal snippets are exported as versioned JSON files containing the graph and compiled code required for portability. The snippet importer accepts both formats.
Changing a snippet label does not change its ID or usages. Blueprint snippets remain locked to their source and can be duplicated when an editable copy is needed.
AI models Beta
AI models are reusable resources exposed to code and nodal flows through their AI integration. Each AiModel contains exactly one provider model. Provider credentials remain in the AI integration.
To create one:
- Connect OpenAI, Gemini, Anthropic Claude, or Mistral under Integrations.
- Open AI Models and click New Model.
- Select the AI integration and one discovered provider model.
- Enter a descriptive model name.
- Choose its owner, visibility, and optional group.
The Vision filter shows models with vision support. $aiControl requires one because it sends browser screenshots to the provider. $aiMessage uses text-capable models.
An AI model receives an AiModel.id starting with aim_. IDs are resolved with the permissions of the user who triggered the run. Both the AI model and its integration must be active and visible to that user. Renaming a model does not change its ID; deleting one leaves its references unresolved.
See Code Flows for JavaScript examples and Nodal Flows for the visual nodes.
Data Tables
Data Tables store structured data that flows can read and update. Open Data Tables from the main navigation, below Snippets. The page has two panes:
- Data Tables lists the tables you can access.
- Data displays the selected table and its rows.
Access
A data table contains its settings, columns, and rows. Visibility can be owner-only, team-wide, or workspace-wide.
Visibility controls read access. Changing settings or columns and writing rows require management access.
Flow runs use the permissions of the user who triggered the run. A node can therefore be valid for one user and fail for another user who cannot access the same data table.
Tables and columns
Each table starts with three system columns:
| Column | Description |
|---|---|
id | Generated numeric row ID. |
created_at | Date and time when the row was inserted. |
updated_at | Date and time of the most recent update. |
System columns are read-only. Custom columns support string, number, boolean, and datetime. A custom column can be renamed, moved, or deleted, but its type cannot be changed after creation.
Deleting a column permanently removes its values. Deleting a table permanently removes the table and every row it contains.
Editing data
Use Add Row to insert an empty row. Custom columns are nullable, so a row does not need a value for every column.
- Single-click a cell to focus it.
- Double-click an editable cell to change its value.
- Clear a string, number, or datetime editor to store
NULL. - Boolean cells accept
NULL,TRUE, orFALSE. - Copy a focused cell with Cmd/Ctrl + C.
- Paste into a focused custom cell with Cmd/Ctrl + V. The pasted value is checked against the column type.
- Drag a header border to resize a column.
- Use the column menu to rename or delete a custom column.
The first column selects rows. Use its header checkbox to select the current page, then delete or export the selection.
Filtering and export
Column filters run on the server and work with pagination. Available operators depend on the column type. Active filters can be combined and cleared from the data grid.
Tables can be exported as CSV, JSON, or XML. Export every row, the filtered result, or selected rows.
Imports support the same formats and append rows. Drop a file into the modal or paste its content. Headers and object keys match existing columns; blank or missing values become NULL.
Using Data Tables in flows
The Data Tables toolbox category appears before Utilities and contains nodes for row queries, row mutations, and table management. Operations on an existing table use one searchable Data Table selector, or an expression that resolves to its stable tableId.
For code flows and Code nodes, type a $dataTable* helper and open autocomplete inside the quoted tableId argument. The editor displays table names while inserting stable IDs. Create and list are workspace-level management operations, so they do not require a table selector.
Flow Inputs support the datatable resource type.
- Form mode provides a searchable Data Table selector.
- JSON mode stores
${dataTables.<tableId>}and autocompletes names while inserting stable IDs. - Code blueprints use
// @input table [datatable]: "${dataTables.dtbl_...}".
See Data Table nodes for the visual workflow and Data Table Flow API for JavaScript signatures, filters, options, and return values.
Flow settings
| Setting | Description |
|---|---|
| Timeout (seconds) | Maximum run time. |
| Max Retries | Number of automatic retries on failure. |
| Proxy routing | Connect directly, use one specific proxy, or rotate through a filtered round-robin pool. |
| Viewport | Custom viewport width and height (overrides workspace defaults). |
| Output & artifacts | Configure screenshots, downloads, and recordings in output. |
| Run retention limit | Maximum number of runs to keep. |
| Visibility | Owner, Team, or Workspace. Change it from the flow menu or the editor header badge. |
Each trigger has its own active toggle. Inactive triggers ignore webhook requests or schedules.
Proxy routing
Proxy routing has its own section in flow settings:
- None connects directly.
- Specific always uses the selected proxy when it is available to the user starting the run.
- Auto (round-robin) rotates through the proxies available to that user.
Auto pools can be filtered by proxy country and group. Conditions inside one rule group use AND; separate groups use OR. For example, the following rules select French or US proxies from the Managed group:
(Country = FR AND Group = Managed)
OR
(Country = US AND Group = Managed)The editor shows a live expression summary. If no available proxy matches the configured rules when a run starts, the run is rejected instead of falling back to an unfiltered proxy.
Folders
Flows can be organized into nested folders. Drag and drop flows and folders to reorganize. Each folder has a sort order and supports full breadcrumb navigation.
Blueprints
Blueprints are reusable packages published through the blueprints store. A blueprint can contain one or more flows and snippets under a single namespace.
Open the blueprints store from the flow or snippet area. Filter by type, category, text, popularity, downloads, likes, date, or local usage.
Categories include Auth, Scraping, Files, Notifications, Data, Fun, Form, and Social.
When importing a blueprint, you can:
- select which flows and snippets to import,
- override the imported flow name, description, visibility, owner, or team,
- override snippet label, description, group, scope, owner, or team,
- import code or nodal flows and snippets,
- keep the imported item linked to its blueprint source for update checks.
Imported flows and snippets are locked to their blueprint source. This prevents accidentally editing a shared blueprint copy in place. Duplicate an imported item if you need a fully editable local version.
Blueprint updates
Imported items remain linked to their blueprint source. Puppetflow can then notify you when an update is available.
To distribute internal blueprints without publishing them to the public store, see Private Libraries.
Running a flow
Click Run Flow in the flow editor to trigger a manual run. You can also:
- Set up triggers for automatic runs.
- Use the REST API to trigger programmatically.
- Run from the CLI with
php artisan flow:run --id=flow_k8Zt3xQ9mA2f.
Icons
Each flow can have a custom icon displayed in the explorer and listings. Options include emoji, a color swatch, or an uploaded image.
