# Flow builder overview

> How a flow runs, what starts it, the steps you can add, and the path from a blank canvas to a live flow.

A flow is a conversation drawn as steps on a canvas. Each step does one thing (send a message, ask a question, branch, call an API) and then follows one of its **outputs** to the next step. You build on a draft that saves as you go; people only ever talk to the version you publish.



## From blank canvas to live

1. In **Flows**, start blank or from a [template](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/templates) (**New flow** once you have flows).
2. Add steps and connect them on the [canvas](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/canvas).
3. Decide what starts the flow: [triggers](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/triggers), or pick it as a channel's flow in **Channels**.
4. Press **Test** and talk to it as a contact would ([testing](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/testing)).
5. Press **Publish**. See [Versions and publishing](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/concepts/versions-and-publishing).



The flows list shows each flow's state: **Draft** (never published), **Live** with its live version, or **Paused**, and whether the draft has **Unpublished changes**.

## How a flow runs

1. Something **starts a run**: a trigger matches a message, a message arrives on a channel that uses it as its flow, or another flow jumps into it.
2. The run enters steps one after another, following the outputs you connected. Steps that only decide or save something (a condition, a variable) run instantly; the run goes on until a step **waits**: for the contact's answer, a timer, a web request, an AI step or a person.
3. When the wait is over (the contact answers, the time comes, the person hands back), the run picks up where it was.
4. The run **ends** at an End step, at an output left unconnected, or when it jumps into another flow.

> [!NOTE]
> A run is pinned to the version it started on, so publishing a new version never changes a conversation already under way. One conversation has at most one run at a time.

### Safety limits

- **Steps per message.** One message can make a run go through at most 50 steps (you can lower this in **Flow settings**). Two steps that lead into each other without anything that waits would otherwise loop forever: the builder warns about such loops, and a run that hits the limit stops.
- **Messages per turn.** A flow can't send more than 20 messages in reply to one message.
- **Waits** (a timer, or how long a question waits for an answer) last at most 30 days.

These are the platform's defaults; your plan may set others.

## Steps

Add a step from **Add step** (or press ++N++), then click it to open its panel. Every panel has a **Learn more** link to the step's page.

| | Step | Does |
| --- | --- | --- |
| Talk | [Message](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/message) | Send text, images or files. |
| | [Question](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/question) | Ask something and save the answer. |
| | [Buttons](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/buttons) | Offer choices; each one is a path. |
| Logic | [Condition](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/condition) | Branch on variables and answers. |
| | [Set variable](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/set-variable) | Set, count or clear variables. |
| | [Randomizer](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/randomizer) | Split people across paths (A/B tests). |
| | [Wait](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/delay) | Pause for a while, or until opening hours. |
| | [Go to flow](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/jump) | Continue in another flow or step. |
| AI and data | [AI step](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/ai-agent) | An AI agent talks until a goal is met. |
| | [Knowledge lookup](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/knowledge-lookup) | Search your knowledge base. |
| | [HTTP request](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/http-request) | Call an API and keep fields from the reply. |
| People and contacts | [Hand to a person](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/handoff) | Pass the conversation to a person. |
| | [Update contact](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/contact-update) | Tag the contact or save their details. |
| | [End](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/end) | Finish the flow. |

## Outputs

Most steps have more than one output: a question can be **Answered**, get an **Invalid answer** or **No reply**; a web request ends in **Success** or **Error**. Connect the ones you care about.

- An unconnected **main** output means the run quietly ends there; the builder warns you.
- An unconnected **secondary** output (an error, a timeout, "anything else") is allowed: the run simply ends on that outcome. Connections from secondary outputs are drawn dashed.

## Who can build

Builders, admins and owners create, edit, test and publish flows. Agents and viewers can open the flows list but not change it. See [Workspaces and roles](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/concepts/workspaces-and-roles).
