Running

Run a flow or a single neuron, follow it while it runs, stop it, and read the run log.

Running a workflow means starting one of its neurons: that neuron runs, and every neuron connected after it starts on its own as each one finishes. You run a workflow on its canvas: from the top bar, from the Neurons section or from a neuron's START tab. My workflows lists your workflows; open one there to run it. To run an agent, open it from My agents; see My Agents.

Run from the top bar

The run button sits at the right of the canvas's top bar. What it runs depends on what is selected:

  • With one flow, it reads Run flow and runs that flow from its first neuron.
  • With several flows, it reads Run plus the name of the selected neuron's flow. With nothing selected, it runs the first flow.
  • With a neuron selected that isn't connected to any other, it reads Run plus that neuron's name.

When the workflow has several flows, open the arrow beside the button (Choose a flow to run). Each flow is listed with how many neurons it has. Pick one to run it, or choose Run all flows to start every flow at once.

On a narrow window the button just reads Run.

Run from the Neurons section

  1. Open Neurons in the canvas's left rail.
  2. To run a whole flow, click the play button on the flow's header (Run plus the flow's name).
  3. To run one neuron, open its menu (Run and options) and choose:
    • Play: runs the neuron and every neuron connected after it.
    • Test this neuron only (shown when other neurons come after it): runs just this neuron. Nothing is sent, nothing is saved to memory, and the neurons after it don't start.
    • Play all queued (shown when an input has queued values): runs the neuron once for each queued value, one after another.

A neuron that isn't in a flow has its own play button on its row. The same choices are in the neuron's START tab; see Neuron nodes.

Before a run starts

When you press Play, the canvas first saves your changes, then checks the neuron:

  • It needs a value in at least one GET input. Instructions in DO alone are not enough.
  • No connection on the way into it may have a broken link (see "Broken links" below).

If a check fails, the neuron's result shows why and nothing is billed.

When a run asks for an answer

An input set to Ask when run asks for its value. When you press Play on the neuron, you're asked first, and Cancel runs nothing. When the neuron comes later in a flow, or starts from a schedule, an app event or a webhook, the run waits at that neuron: the neuron shows Waiting for you, the status card at the bottom reads Waiting for you with Answer and Stop (no timer runs), a notice says "needs an answer to go on" with Answer, and Runs lists it under WAITING FOR YOU. Click Answer and then Answer and continue to carry on, or Stop run to cancel it. The run waits for the time set in Wait for an answer, from 5 minutes to 24 hours; after that, the input's default value is used, or the neuron stops with "No answer given" and its On error link runs. See Neuron nodes.

One run at a time

Only one run can go at a time in a workflow. While a run is starting, the top-bar button reads Running…; once a neuron is working, it turns into Stop. Meanwhile every play button is greyed out. Hover over it to see "Wait for the current run to finish".

Follow a run

While a run is going, a status card at the bottom of the canvas shows which neuron is working, for example "Running Summarise…", how long the run has taken, and "Calling …" when the neuron is using a connected app. Click Details to open the Runs section.

When the run ends, the card sums it up: "Nothing running in …" with how many neurons ran, how many had an error, the credits recorded and the time it took. After Test this neuron only, it reads "Test run · …" and "Nothing sent, saved or run after it". Click View usage to see what the run cost.

In the Neurons section, each neuron's row shows where it is in the run: Running while it works, Waiting if it comes after a neuron that is running or has finished and hasn't started yet, and Completed once it has finished in this run. Waiting goes away when the run stops or when nothing starts for a short while, and Completed goes back to the neuron's usual status a minute after the run ends.

Stop a run

Stop ends a run early. Only the Builder who owns the workflow can stop a run.

  1. While a run is going, click Stop in the top bar, on the status card, on the running neuron's row or flow header in the Neurons section, or Stop run in the Runs section.
  2. The status card reads "Stopping · … is finishing". A neuron that is already working finishes its current step; no new neuron starts after it, a running Code neuron ends in error with "Stopped." (no On error neuron starts, and the sandbox time it used is charged), and any values still waiting in a queue are dropped.
  3. The card then reads "Stopped · …" with how many neurons ran before the stop.

Queues

A queue lines up several values for one input, and each value becomes its own run. Set it up on a Set in advance input in GET, then press Play all queued in the neuron's menu or Play through the queue in START. The Neurons section shows how many values are queued on each neuron. See Neuron nodes for how to add values to a queue. A Code neuron can't play through a queue: loop over the items in your code instead (see Code). A single Play on it uses the current input.

Circular flows

A circular flow is a flow whose connections loop back, so its neurons can run again and again. Use one on purpose when a flow should repeat, for example to refine a draft until it is good enough.

When a workflow has a loop, the Neurons section shows a Circular flow card: "Connections form a loop, so this flow may run repeatedly. Monitor credit usage."

  • Loop shows which loop the current run is on, out of the most allowed.
  • Stop after sets how many loops a run may make before it stops by itself. Type a number and click away to save it; a number outside the allowed range is changed to the nearest one allowed. Hover the box to see the range. A number above the default shows a warning, because more loops can mean more credits.
  • Force stop appears while the loop is running. Click it to stop the run.

A circular workflow has no flow-level run: flow headers have no play button, and the top-bar button needs a neuron. Select the neuron the loop should start from, then click Run plus its name.

My workflows

My workflows (under Automations in the top bar) lists every workflow you own. Runs don't start from this page: click a card to open its canvas, and run it there.

The line under the title counts your workflows, how many are published as agents, and how many need attention. Click New workflow to start a blank one.

Find a workflow

  • Search workflows: type part of a name, up to 200 characters. The list updates as you type.
  • Tabs: All, Published as agents, Needs attention and Drafts, each with its count. A workflow needs attention when it has broken links, or when the last runs its schedules, webhooks or app events started failed. Runs you start yourself on the canvas don't count, and a paused workflow doesn't need attention for being paused. A draft is a workflow that has never run and isn't published as an agent; its first run ends that.
  • Sort: Recently edited or Name.
  • Show more loads the next cards, with how many are left.

A workflow's card

Each card shows:

  • A small map of the workflow's neurons and links, with broken links in red. A paused workflow's map is greyed.
  • How it starts, at the top left: its schedule, the app event that starts it, Webhook, or By hand.
  • A badge when something needs a look: the number of broken links, Run failed or Failing with how many runs (hover over it to see the last error), Paused, or Draft. A failed run that a schedule, webhook or app event started is also listed in Needs you on Home, with Fix to open the canvas; see Home and the app bar.
  • Its name, its description, how many neurons and flows it has, and when it was last edited.
  • Agent, when it is published as an agent. Click it to open the agent.

The card's menu

Click More actions (the three dots beside the name) for:

  • Open canvas: opens the workflow.
  • Rename: edit the name on the card. Press Enter to save, or Escape to cancel.
  • Duplicate: makes a copy of the workflow ("Duplicated" with its name).
  • Open the agent when the workflow is published, or Publish as agent, which opens the canvas ready to publish. See Publishing your agent.
  • Pause triggers / Resume triggers (not on drafts): see below.
  • Delete: see below.

Pause a workflow's triggers

Pause triggers stops the workflow's schedules, webhooks and app events from starting it. "Paused. Nothing starts it until you resume." The card shows Paused.

  • What would have started it during the pause is missed, not run later. A schedule skips its run, a webhook call is refused (the webhook panel's Calls tab shows "Rejected: This workflow's triggers are paused. Nothing was run."), and an app event is ignored.
  • You can still run it yourself on the canvas. The canvas shows "Triggers paused. Schedules, webhooks and app events start nothing." with Resume.
  • Agent setups made from it run on their own copies and are not affected. Your own setup of an agent you published runs on the workflow itself: a pause stops its webhooks and app events too, but its schedules keep running.

Click Resume triggers in the menu, or Resume on the canvas, to turn them back on: "Triggers on. It runs again when started."

Delete a workflow

Delete removes the workflow from the list at once and stops its triggers: a webhook call is refused with "This workflow was deleted. Nothing was run." Its dashboards are hidden with it. A message says "Deleted" with its name and Undo; click Undo within a few seconds to bring the workflow back, with its dashboards. The message stays up if you move to another page. A deleted workflow is removed for good after 30 days.

A workflow published as an agent can't be deleted: its Delete reads "Unpublish the agent first" and opens the canvas ready to publish, where you can unpublish it.

A broken link is a link on a connection that no longer fits, for example because the parent no longer has the item it passed, or the child's input changed type. A broken link stops the neuron it leads into and every neuron after it from running.

  • When a link breaks, a notice says "Broken link — Parent → Child: …. Open the connection to fix it."
  • The neuron after it shows Blocked in the Neurons section, and the connection line is marked.
  • Pressing Play shows "Fix the broken link before running — …".

To fix it, click the connection line to open the connections window, then remove the link or link the right item. See Connections.

The run log

The Runs section in the canvas's left rail shows what ran.

  1. Open Runs in the left rail. The button at the top runs or stops the workflow, like the top-bar button.
  2. LATEST RUNS lists the runs you started since you opened the workflow, newest first, by the neuron you played, with how long it took and whether it finished, failed or was stopped. A failed run shows its error. A Code neuron's run also shows the credits it cost and, for you only, Logs with what the code wrote. Click Logs to open them.
  3. Each run shows the memories it used. Click one to open it in Memory; a memory that is no longer there opens Memory instead. Lines under the run say what it saved or proposed to memory, or why something wasn't remembered, and "Saving to memory…" while it is still saving.
  4. A run that failed on a broken link or a broken reference has a Fix button that takes you to the setting.
  5. RUNS lists the workflow's runs, newest first, one row per run. Each row shows how it started (By hand, Schedule, Webhook or App event), whether it is Running, Done or Failed, its error or the first line of its result, what it cost in credits, and how long ago it started. Click Show more to load older runs. Runs you started with Test this neuron only are not listed here; they show only under LATEST RUNS. Click See all usage to open the Usage page.

LATEST RUNS starts empty each time you open the workflow. RUNS stays, and keeps recent runs only.

Open a failed run

Click a Failed row in RUNS to open the neuron that failed. The canvas selects it and moves to it, and a message at the top says how the run started, when it failed and why, for example "A scheduled run failed 2h ago: …". Click Dismiss to hide the message. If that neuron is no longer in the workflow, the canvas opens the neuron the run started from instead.

Fix in Home's Needs you, a failed workflow run in Home's Recent runs, and the Run failed or Failing badge on a workflow's card in My workflows open the canvas the same way.

Limits

  • Loops before a circular flow stops: 3 loops by default. You can set from 3 loops up to 50 loops.
  • Inputs per neuron: up to 3 inputs when DO is AI, and up to 5 inputs when DO is Steps or Code.
  • File upload: up to 32 MB per file.
  • Search on My workflows: up to 200 characters.
  • A deleted workflow: removed for good after 30 days.

Common problems

Play is greyed out

Something in the workflow is already running, and only one run can go at a time. Wait for it to finish, or stop it.

The run button says "Select a neuron to run"

There is nothing to run yet, or the workflow has a loop. Click a neuron on the canvas, then click the run button.

This neuron is busy with another run

The neuron is still working on an earlier run, for example one started by a schedule or a webhook. Try again in a moment.

Please provide at least one input with content and instructions

The neuron has nothing to work on. Give one of its GET inputs a value and write instructions in DO.

No input content provided

The neuron has instructions but none of its GET inputs has a value. Type or upload a value, then run it again.

A connection leading into this neuron has a broken link. Open the connection named in the message and fix or remove the link.

Could not stop the run

The stop request didn't go through and the run is still going. Click Stop again.

A circular flow stopped by itself

The run reached the number of loops set in Stop after. Raise the number if the flow needs more loops, keeping an eye on the credits each loop uses.

Nothing runs while I look at an older version

While you view an older version from Versions, nothing can run. Click Back to current first. See Versions.

Running - Docs