Skip to content
Docs
On this page How a Step picks its next arrow 1/5
Internal — not published

A flow has two halves. The shape is the list of Steps with their canvas positions and the arrows between them. The settings are stored per Step: its type, its name and what the user filled in, with variables such as a first name still written as placeholders. A workflow joins the two halves when it starts.

The builder saves the halves separately, two seconds after the last edit. A Step’s settings are always saved whole, never as a partial change. The End markers on the canvas exist only in the builder and are never saved.

How a Step picks its next arrow

Most Steps continue along at most one arrow, picked like this:

  1. The Step produced a route name and an arrow carries that name. AI reads the reply works this way: it names an intent, and the arrow for that intent is taken. With no arrow of that name, the arrow with no name and no condition is taken.
  2. Otherwise the arrows are tried in the order they were saved. The first arrow whose condition holds on the Step’s output, or that has no name and no condition, is taken. Send Steps work this way: their arrows test whether the person replied, clicked or opened, and the arrow with no condition (No response in the builder) takes everyone else.
  3. No arrow matches, and that branch of the flow ends.

Because of the order in rule 2, an arrow with no condition that was saved ahead of a conditional arrow from the same Step is always taken, and the conditional arrow never is.

Split into paths is the one Step that takes every outgoing arrow at once. Each of its arrows normally leads into a Path Step that decides whether the person continues down that branch; see Waits, branches and exits.

Step types

Each Step type is one self-describing definition: a name and category for the catalogue, whether it forks, the shape of its settings with hints for the form (an account picker, a duration, a fit criterion, email content), the shape of its output, and the code that runs it.

The backend collects every definition when it starts and refuses to start if two share a name. The builder fetches the same definitions and draws each settings field from its shape. The builder also keeps its own table of every Step type’s name, menu group and icon, and its Step menu offers only types that are in both lists. A new Step type therefore needs one backend definition, which the flow check picks up without other changes, plus an entry in the builder’s table before people can add it.

Variables

A Step’s settings are filled in just before the Step runs, from the person, their company, the workspace (name, booking link) and the outputs of earlier Steps in the same flow. A placeholder that has no value becomes empty text. Filling happens once, so a placeholder that appears inside an AI personalize result stays as literal text. The filled-in settings are what the Step record keeps.

A Send email Step that uses a saved template loads the template while the Step runs, and fills the template’s subject and body from the same values.

The flow check

The check reads a whole flow and returns a list of problems, each naming the Step by its internal id and saying how to fix it. The same messages are fed back to the model when AI drafts a flow. The builder rewrites each message as a short plain-language problem attached to its Step, and adds two checks of its own: an account, model or owner left blank, and a route that still leads to an End marker.

How a flow is checked before launch Step 1 of 5

Any change in the builder marks the flow as unsaved. Two seconds after the last change the builder saves it.

The check fails whenExamples
The start is wrongNo Start Step, more than one, or an arrow leading into it
Steps or arrows are malformedDuplicate ids, an arrow from a Step to itself, an arrow to a Step that does not exist
A Step type or setting is invalidAn unknown type, or settings that do not fit the type’s shape (up to five problems per Step)
The flow loops or has islandsA cycle, or a Step that cannot be reached from Start
Branch names do not line upA route name on a Step that does not route by name, a name the split or the classifier does not have, or a split branch with no arrow
Path rules are incompleteCustom rules with no rule, a rule with nothing to compare, a rule with no value to compare against, or a number comparison against text
Variables point nowhereAn unknown filter, an unknown person, contact, company or workspace field, or a reference to a Step that does not exist, is not earlier in the flow, or has no such output

AI flow drafts

The builder’s Ask Kit to change this flow prompt and Draft my campaign on the New campaign page both ask the workspace chat model for a whole flow, and fail when the workspace has no chat model.

  1. The prompt describes every Step type with its settings and outputs, the person fields that variables can use, and the current flow.
  2. The model answers with a complete flow. The flow check runs on it; if problems remain, the answer and the problem list go back to the model, up to three attempts in all. If the third answer still has problems, the draft fails and the campaign keeps its current Steps.
  3. The accepted flow replaces every Step of the campaign in one transaction. Every Step lands at the same position and the builder lays the flow out when it loads.
Docs
EN VI