What a flow is
A flow is a pipeline you draw instead of code: a vertical chain of steps that starts at the Flow inputs node and runs from top to bottom. Each step is a script, a SQL query, a decision, a loop or a ready-made action, and each one can use what the steps above it returned.
- Read the flow canvas and add a step with the + between two steps
- Know every kind of node a flow can hold, and when to pick each
- Tell the draft from the published version, and what publishing checks
- Follow a run as it walks the graph
A pipeline you can see
Open a flow and the canvas shows it as one column. At the top is the Flow inputs node: it declares the flow’s parameters (what a person, a schedule or an API call passes in), and steps read them as nodes.flow_inputs.<param>. Under it, every step hangs on the line in the order it runs. There is nothing to wire by hand and no position to manage — the canvas lays the flow out itself from its structure, so a condition opens its branches side by side, a loop draws a frame around its body, and every group closes with a cap where the flow continues.
A text input on Flow inputs can take a format — e-mail, phone, CPF, CNPJ, CEP, URL or a mask of your own. The run form shapes it as it is typed, every way of starting the flow (the editor, the API, a schedule, a share link) checks it, and the steps receive it in one form however it was typed: a CPF typed 123.456.789-09 reaches the steps as 12345678909, a phone as +5511987654321.
A step’s result is its output: what a script returns, the rows a query reads, the answer an HTTP call gets. Any step below can read that output in one of its inputs, as nodes.<name>.output. Every input is one expression, and that is how data moves through a flow without any glue code.
Add a step
- Create the flow
On the project’s Code page click + New, pick Flow, type a Flow name and click Create flow. It opens with a Flow inputs node and nothing under it.
- Click a +
Every connector carries a +. Click the one where the step should go — under Flow inputs, between two steps, inside a branch or a loop body. The Add Node menu opens with a search box (Search node types…).
- Pick a node type
Choose a language (or PostgreSQL / MySQL) from the grid at the top, a control node from the list under it, or a ready-made step under Apps & data. The step lands on the line and the steps below move down to make room.
- Open its sheet
Clicking a step opens one sheet over the flow, the same for every kind: Inputs and a small map on the left, what the step does in the middle, Output and Logs below it, and Assistant, Execution (retries, time limit, cache) and History on the right. Esc takes you back to the canvas.
Copy, paste and undo work on steps the way they do in a text editor. A step’s right-click menu has Copy and Paste; closing a sheet leaves its step selected on the canvas, and Ctrl+C, Ctrl+V and Ctrl+D (duplicate) act on it.
The step sheet
Click a step and one sheet opens over the flow and the project navigation; the top bar stays. Everything about that step is in the same places whatever its kind, and everything about the whole flow (Chat, Runs, Run, Triggers, State) stays beside the canvas. To change area, close the sheet first.
| Where | What is there |
|---|---|
| Header | The step’s name (click to rename), its kind and its position, 3 of 6, with previous and next. The Edit | Run switch, Saved or Unsaved draft, and Run step where the step can be tested alone. |
| Inputs, left | Every value the step reads. A script, SQL, subflow, AI Scraper or e-mail template has named inputs, and you edit their expressions here. On every other kind the form in the middle holds the expressions, and this column lists what they read: click a row to go to its field. |
| Map, under Inputs | The flow’s real shape with this step marked. Hovering an input lights the steps it reads; clicking a step moves there. |
| Middle | What this kind of step does: the code editor, the SQL with its connection, the condition’s branches, the loop’s list and settings, the HTTP request, the e-mail, the approval. |
| Below the middle | Output, with status, duration and used by 2 (the steps that read it); Logs; and, on a step with code, Problems, where a click goes to the line. Test results and run results land here alike. |
| Panel, right | Assistant: the flow assistant, knowing which step you are on. Execution: the step’s run settings, on the kinds that have them. Dependencies: an inline Python step’s packages. History: this step’s past runs; a row opens that run, and Test with these inputs tests the step with what it received then. |
Edit and Run
Run is the same sheet, read-only, showing the step as a run executed it. Inputs show the values it received and where each came from, the middle shows what that run executed even if you edited the step since, and Output and Logs are that run’s. A step that did not run says why: the branch was not taken, a rule skipped it, the flow stopped earlier, or nothing has run yet. Run again goes back to Edit and tests the step with those same inputs. See Debugging a flow run.
Run step
Run step runs this step alone and puts the result in Output. In Edit an input is only its expression. Pressed there, Run step switches the sheet to Run with one empty, highlighted field for each input that reads another step or the flow: fill them and press Run step again. The values are used only by that run and never change the expression; a step whose every input is a plain value runs at once. A step that would write somewhere asks first, and an e-mail asks before it sends a real one, naming who would get it; a loop asks for sample items. Conditions, parallel nodes, approvals and Flow inputs have no Run step: they do their work by running the rest of the flow.
Moving around
- Alt+PageUp and Alt+PageDown go to the previous and next step from anywhere; Alt+↑ and Alt+↓ do the same outside code and fields. The order goes into a loop’s body and each branch, with Flow inputs first and the Preprocessor and On error last.
- Ctrl+B (Cmd+B on a Mac) hides everything but the step’s main content, and brings it back. The seams drag, and the sizes are remembered in this browser.
- Esc closes the innermost thing open: a completion list, a popover, a dialog, and then the sheet.
- The step and the mode are in the page’s address, so reloading, going back and a shared link all return to the same place. An edit is an ordinary draft change: nothing extra to confirm, and undo still reverses it after the sheet is closed.
Every kind of node
The Add Node menu groups everything a flow can hold. Each kind has its own page.
| Node | What it does |
|---|---|
| Python, TypeScript, JavaScript, C, C++, Go, Bash, PHP, Ruby | A script step with its own code, run in the same sandbox as any script. Existing Script links a script of the project instead, and always runs its current code. |
| PostgreSQL, MySQL | A SQL step: one query on a project connection; its rows feed the steps below. |
| Condition | If / else if / else: runs exactly one branch. |
| Loop | For each item of a list or of a query’s rows, one at a time or several at once. |
| Parallel branches | Named branches that run together; the next step reads each by name. |
| Approval | Pauses the run until a person approves or rejects it. |
| Flow, AI Scraper | Run another published flow, or a published scraper, as one step (subflows). |
| Send email, HTTP Request, Transform, AI step, File, Google Sheets, Google Drive | Built-in steps, no code, each configured in its own sheet. Send email sits with the control nodes; the others form the Apps & data group (Google Sheets and Drive are covered in their own page). |
On error and Preprocessor
Two special steps sit outside the chain and appear as cards at the top-left of the canvas instead of nodes on the line. The On error step runs once when the flow fails — to notify someone or record it; the run stays failed. The Preprocessor runs first, and only, when the flow is called through an API endpoint: it receives the request and returns the flow’s inputs. A flow has at most one of each.
Draft, publish, run
What you edit is the flow’s draft. Save stores it; Run Flow runs exactly what is on the screen, so you can try a change before anyone else depends on it. Publish checks the draft and freezes it as a numbered version — and the version is what everything outside the page runs: schedules, API endpoints, event triggers and other flows calling it as a subflow. Edits after that stay in the draft until you publish again; Version history lists every published version and can restore one.
What publishing checks
The same check runs when you publish and when you run, so a problem is named before any step executes. The answer names the step and carries a stable code:
missing_connection— a SQL step (or a built-in step that needs one) has no connection.binding_problems— an input cannot work: a step that does not exist, a variable that does not exist, text without quotes… The answer lists each one with its step and field (all of them).invalid_parameter— a constant does not fit the type the script declares.approval_in_loop,approval_in_branch,parallel_branches_min— a step sits where it is not allowed.
How a run walks the graph
A run starts at Flow inputs with the values it was given and goes down the line. A step starts only after the one above it has finished; a condition runs only the branch it picks and marks the others skipped; a loop repeats its body once per item; parallel branches run side by side and meet at their join. The canvas shows it live — each step’s status and time on the node — and clicking a step opens its sheet in Run, with the details of that step (what a run shows).
Limits and rules
- A flow has one Flow inputs node, at most one On error step and at most one Preprocessor.
- A whole run has a time limit, 30 minutes by default, set in the flow’s settings; each step can have its own on its Execution tab.
- Script steps have no network access, like every script; reach outside services with the built-in steps or a project integration.