Skip to content
Docs
On this page Flow builder 1/7
Internal — not published

The campaign builder draws a flow on a canvas made with React Flow and keeps its working copy in one builder store: the Steps, the arrows, the selection, what has changed since the last save, the latest flow-check problems and an undo history. The email builder is a Maily editor, used on the Templates page and inside the campaign builder for Send email content.

Flow builder

Loading a flow

The builder fetches the campaign’s flow and its Step settings, then joins them into canvas nodes. A Step whose type the builder does not know shows as an unsupported Step. Branch arrows out of a split keep their branch names and get no insert button; every other arrow has one. An End marker is drawn after every Step with nothing below it; End markers are never saved. A new flow starts with a single Start Step.

The canvas

PartWhat it does
Step cardsOne card design for every Step type. The card’s look and its plain-English summary come from one shared table of Step types
ArrowsA label on each branch arrow, such as “Replied”, “Positive” or a split branch name
LayoutSteps are placed top to bottom from estimated sizes, and placed again when the real sizes differ
First viewZooms so no branch is cut off, leaves room for the side panel, and scrolls to a Step named in the address
OverlaysZoom controls, flow stats, the issues pill, and the Ask Kit to change this flow prompt

Adding, inserting and deleting Steps all go through one set of flow actions. A new Step gets a readable id made of its type and a number, and the default settings for its type.

Step settings

The side panel edits the selected Step in two tabs. Content is laid out by hand for each Step type and places the Step’s main fields, such as the sender, the email content or the wait. Settings holds the Step’s name and every field the Content tab does not place, so no backend option is out of reach. Each field’s input is generated from the Step type’s description in the backend catalogue:

  • A hint on a field picks a special input: an AI or messaging account picker, a duration, a fit criterion, email content, or a multi-select. Other fields get plain text, number, switch, list or object inputs.
  • Text fields that accept variables show them as chips and offer the person fields from the backend’s variable list and the outputs of earlier Steps in the flow.
  • Path rules, split branches and the routes out of a Step have their own editors.

Saving and checking

How the builder saves and checks a flow Step 1 of 5

Every change updates the builder store and marks either the flow's shape or a Step's settings as changed.

Actions that need the saved flow, such as opening Review & launch, first push out any save still waiting. Leaving the page with unsaved edits asks for confirmation.

Run history

The history view lists the campaign’s past runs, the people in a run and, for one person, each Step’s filled-in settings and output.

Email builder

The email builder edits a subject, the editor’s own document (which the backend stores without reading) and the HTML body that is actually sent. On the Templates page it also edits a preview text, which is written into the HTML as a hidden line; Send email content in a campaign has none.

PartWhat it does
EditorText, headings, lists, buttons, images, columns, dividers, spacers and a footer. Typing / opens the block menu and @ opens the variable menu
VariablesShown as chips in the editor. They are written into the HTML in the same placeholder syntax the backend fills in, with an optional default
HTMLRendered from the editor’s document each time it changes
Custom HTMLA code editor with formatting and a live preview, for writing the HTML directly
ImagesUploaded to the backend. Files over 5 MB, or not JPEG, PNG, GIF, WebP or SVG, are refused here and by the backend
CountersThe subject counts against 60 characters and the preview text against 90; neither blocks a longer value

Two guards protect a saved body. If rendering fails, the builder can tell a failed render from an empty document, so a render error never blanks the stored HTML. While an image is uploading the editor holds a temporary local address, and saving waits until the real address replaces it.

Inside the campaign builder the email builder opens full screen over the canvas, with the outputs of earlier Steps offered as variables. It is created only while editing, because the editor fixes its document when it is created. A Send email Step that uses a saved template is copied into its own content when someone edits it, and remembers which template it came from so it can be linked again.

Docs
EN VI