Use the editor to build, test, and publish a workflow. For more detail, see the Editor reference.
Add a node
- Open a workflow.
- Click Add node, or press Tab. The node list opens.
- Type in Search nodes. A node that is not installed shows under "Not installed". See Install node packages.
- Click a node to add it. A workflow has one trigger node. See Triggers.
- Double-click the node to set its fields.
Other editor buttons are Zoom in, Zoom out, Fit view, and Auto arrange.
Use expressions
A field can hold an expression in {{ }}. For example, {{ $input.users }} reads the users field of the input. To read a variable, see Variables. To use a secret, see Use credentials.
Loops and joins
- An edge can go back to an earlier node. Use an If or Switch node to choose the edge that goes back and the edge that leaves.
- A node can have more than one parent. It runs once for each parent that sends data.
- A trigger node has no input. An edge cannot lead into it.
- A run stops with an error after
ZERODOT_MAX_NODE_RUNSnode runs (default 1000). This stops a loop that does not end. - To remove an edge, put the pointer on it and click the X.
Loop Over Items
The Loop Over Items node runs the nodes on its loop output once for each item of a list.
- Set
listto an expression, for example{{ $input.users }}. SetbatchSize(default 1). - Connect the
loopoutput to the nodes that do the work. - Connect the last of these nodes back to the input of the loop node.
- Connect the
doneoutput to the nodes that run after the last pass.
On each pass, the nodes on loop get { items, item, index, total }. For all fields, see the Editor reference.
Test a workflow
- Click Execute workflow to run the whole draft.
- Click Execute step on a node to run only that node. Its input is the last output of the node before it, or the pinned data of that node.
- Click Pin in the node output to keep that output. Test runs skip a pinned node. Click Unpin to remove the pin. Production runs ignore pins.
- Click Stop workflow to stop a run.
Test runs use real credentials and write real data. If a node has no input yet, run the workflow or pin the output of the node before it.
Paste nodes
Select nodes and copy them. Paste them in the same workflow or in another one. You can also paste a workflow from another tool. Zerodot matches its nodes with installed nodes and the node catalog.
After a paste, a window shows what to do:
- Nodes with a note on the canvas need a check.
- A node that has no match becomes a placeholder. It passes its input on. Click Use placeholders to keep it, or click Install for a missing package.
- Until you install the missing packages, the draft is not saved.
Import from cURL
Use this to fill an HTTP Request node from a cURL command.
- Open the node.
- Click Import cURL.
- Paste the command in cURL command.
- Click Import.
The import replaces the method, URL, query, headers, and body. Zerodot does not save a bearer token, basic login, or API key header from the command. A notice tells you this. Click Create credential to make a credential for it. See Use credentials.
Version history
Click Publish to make the draft the live version. Each publish makes a new version.
- Open the More menu and click Version history.
- Click a version. The list shows the changes.
- Click Restore to draft, then Replace the draft.
A restore replaces the draft. The live version does not change until you publish. To activate a workflow, it needs a trigger node and a published version.
Workflow settings
Open More, then Workflow settings. The dialog has three sections.
| Section | Field | Use |
|---|---|---|
| General | Tags | Labels for the workflow. Separate them with commas. |
| Execution | Time zone | The time zone for the workflow. The default is the project time zone. |
| Execution | Timeout (seconds) | Stops a run that takes longer. Empty uses the server default. |
| Execution | Error workflow | A workflow that runs when a live run of this workflow fails. |
| Execution | Auto retries | Tries a failed live run again from the failed node. 0 turns it off. |
| Execution | Wait between retries (seconds) | The wait before each retry. |
| Run data | Save data of successful runs | Keep or drop the data of successful live runs. |
| Run data | Save data of failed runs | Keep or drop the data of failed live runs. |
Test runs always keep their data.
To use an error workflow:
- Make a workflow with an Error Trigger node.
- Publish it.
- In the first workflow, pick it in Error workflow.
With auto retries on, the error workflow runs after the last retry fails.
Export and import
- Click More, then Export as a file. The editor downloads
<name>.zerodot.json. - In the workflow list, click Import and pick a file. Zerodot makes a new draft.
The file has no credential data and no variable values. Pinned data stays in the file. Remove private pinned data before you share the file. After an import, pick a credential again on the nodes that the page lists. Create the variables that the page lists.
To share a workflow with a link, see Share links.
Move to another project
- Open More, then Move to project. Or select workflows in the workflow list and click Move workflows.
- Pick a project in Move to.
- Read Check these before you move.
- Click Move.
The move does not copy credentials, variables, or tables. Make them in the new project first. A missing credential is cleared from the draft. A workflow that is active is turned off by the move. Turn it on in the new project.
Tags
Add tags in Workflow settings. In the workflow list, use Search name or tag to find a workflow by tag.
Command palette
Press Cmd+K (macOS) or Ctrl+K to open the Command palette. Type to search pages, workflows, and projects. Use the arrow keys to move, Enter to open, and Esc to close.