Skip to main content

Prepare a workflow

Preparing turns the spec into the steps every run follows. Select Prepare in the editor; each prepare starts from the spec as it is at that moment. Build your first workflow walks through a first prepare; this page is the reference.

Preparing and cancelling a prepare need edit access to the workflow; Members and roles says who has it.

What happens, in order​

  1. A workflow still named Untitled Workflow asks for a name first, in Name your workflow, and prepares once you've named it.
  2. Flow checks that the spec has some text. An empty spec stops here with "Add a workflow description before preparing."
  3. Flow saves your changes.
  4. Sanity check. Flow spends up to 45 seconds reading the spec for problems. When it finds some, Workflow Review lists them and preparing waits: Proceed anyway continues, and Go back and fix stops. A check that runs longer is skipped, and preparing goes on.
  5. Architect. Unless the Architect setting is Off · compile directly, Flow checks that the spec states the path of each file it saves, whether that file replaces one already there, the columns or fields of each output, what is written when there are no items, and what a review shows. It fills in anything missing that has a usual answer, and the setting decides whether it can also stop to ask about a decision only you can make; the table below lists its modes. The Architect works only on a spec in one file. With more files, Flow prepares the spec as written.
  6. Generating workflow, Validating workflow, Building workflow and Finalising. When validation rejects the generated workflow, Flow generates it once more with the problems as feedback.

At the end, the Prepare tab shows "Preparation has been completed and the workflow can now be run" and Workflow stats: Nodes counts the connector calls, Loops the loops, and Branches the conditions. The workflow shows Ready on its project's Workflows tab, unless a save changed the spec after generating started; then it shows Draft, even if it was Ready before, until you prepare again. See Workflow status.

Architect modes​

The Architect setting is in the Settings tab of Tools and configuration. Choose a mode, then select Save; the tab's settings are kept only when you select it. A new workflow starts on Auto · defaults, no dialog. An older workflow keeps the mode it was saved with, which is Ask · questions first unless someone changed it.

ModeWhat Flow does
Ask · questions firstAsks you about decisions only you can make in A few questions before I generate the workflow, then prepares. The dialog opens while Flow reads the spec. When there is nothing to ask, it closes on its own, after "Applying the corrections to the workflow…" when Flow fills something in.
Auto · defaults, no dialogPicks the suggested answers itself, writes them into the spec, then prepares.
Off · compile directlyPrepares the spec as written.

In the questions dialog, Skip this time prepares without answering, and Don't ask again switches the setting to Off · compile directly and prepares without answering. When the Architect doesn't respond in time, preparing continues without it.

A notification says what the Architect did: "Architect: nothing to clarify", or "Architect applied 2 clarification(s)" with the number of assumptions to review in version history. Anything it fills in is saved as a new version of the spec, and each passage it changed gets a note above it, such as <!-- architect 2026-10-05T11:17Z: stated what a cell holds when a field is missing -->. Preparing ignores notes. See Workflows, versions and tags.

Specs that Flow Chat writes state these already, so preparing one seldom opens the dialog or saves a version.

When preparing fails​

MessageWhat to do
A compilation is already in progress for this workflow. Wait for it to finish or cancel it first.Wait for the current prepare, or cancel it.
gate failed after regenerate cycle, followed by detailsValidation rejected the workflow twice. Make the spec more exact where the details point, then prepare again.
This workflow cannot be built as written, followed by the stepsA step needs something no connector in the workflow offers. Add a connector that can do it, or change the step.
A website or terminal step could not be compiled, followed by the reasonFlow couldn't turn the step's description into actions. Check the description in the spec, then prepare again. Automate websites and terminals covers what a description needs.

When the spec names a reference table the project doesn't have, or one with no import made current yet, the Prepare tab lists it under Warnings and preparing goes on. The workflow's runs fail at the step that reads it until the table exists and holds records.

A mention that doesn't match a connector shows its warning on the chip in the editor before you prepare. A step that needs something no connector offers fails the prepare when Flow can see that every run reaches it, with a message that names the step. A step inside a loop, a condition or a helper passes the prepare. So does a step after any loop or condition that can skip items, stop or end the run early. The run then fails when it gets there. Write a workflow spec explains.

Cancel a prepare​

Once Flow starts generating the workflow, select Cancel in the Prepare tab; before that the button is unavailable. Flow stops at the next stage, so a stage already running finishes first. The tab then says "Compilation was cancelled. The previously compiled version, if any, is still the one Run executes; click Prepare to compile again."

To prepare, follow and cancel from your own code, see Author and deploy over the API. The API runs the same checks as Prepare, without the sanity check dialog and the Architect.