Arythmatic Flow Docs
Docs / Automation

Workflows

Chain requests on a canvas with conditions, loops and retries — and run the whole thing on a schedule.

When one request depends on another, the second only runs sometimes, and the whole thing has to happen at 3am, a workflow is clearer than a script — and you do not have to maintain, deploy or monitor it.

A workflow: nodes connected on a canvas, each passing its output to the next.
A workflow: nodes connected on a canvas, each passing its output to the next.

Building one#

  1. Open Automate → Workflows and create one.You get an empty canvas.
  2. Add nodes and connect them.Drag from one node's output to the next node's input. The connections are the order of execution.
  3. Reference an earlier node's output.Write {{nodeId.path}} — for example {{n1.data.token}} — anywhere in a later node.
  4. Run it.Each node shows its result, so you can see where a run stopped and why.

Node types#

NodeUse
RequestSend an HTTP request
TransformReshape data between steps
ConditionBranch on a value
LoopRepeat over a list or a data table
CodeArbitrary JavaScript when the others do not fit
Code nodes are different

Code node bodies are not {{variable}}-interpolated — read env.name instead. They receive input (upstream outputs), context (every node so far), and env, and await works.

Worth automating#

Running it on a schedule#

  1. Open the workflow's Schedule tab.Set a cron expression or pick an interval.
  2. Set who to notify on failure.A scheduled workflow nobody is told about is a cron job with extra steps.

Script or workflow?#

If most of the code would be scheduling, retrying, chaining and reporting rather than the actual logic, that is the part you should not be writing. If the logic is genuinely complex and the orchestration trivial, a script in a code node is the better answer.

Frequently asked questions#

How do I use one API response inside the next request?

Reference the earlier node as {{nodeId.path}} — for example {{n1.data.token}} — anywhere in a later node's URL, headers or body.

Can a workflow run automatically?

Yes. Set a cron expression or interval on the workflow's schedule tab, and configure who is notified when a run fails.