Skip to content

Flows

Flows are behavioral specifications — they describe what happens when a user does something or when a process runs. Think of them as integration test scripts for your architecture.

Switch to the Flows tab in the sidebar and click the + button. Give your flow a name like “User Registration” or “Order Checkout.”

Flows use a script view — a vertical list of numbered steps. Each step describes one thing that happens.

No test linked
1
User submits registration form
2
API validates input fields
3
API checks for existing account
4
API creates user record
5
API sends welcome email

Click on any step to edit its description. Use the + button between steps to insert new ones. Drag the handle on the left to reorder.

Real flows have decision points — “if the payment succeeds, do X; if it fails, do Y.” Click the branch button on a step to add branches.

No test linked
1
User submits payment
2
Payment gateway processes charge
2a.1
Create order record
2a.2
Send confirmation email
2b.1
Show error message to user
2b.2
Log failed attempt
3
Redirect user to order page

Each branch needs a condition — what triggers this path. The flow resumes at the next sequential step after the branches.

Steps can reference processes and operations from your model. These appear as violet pills under the step description. This links the behavioral flow to the actual code that implements each step.

AI agents use these links to understand which code supports which business flow. The AI Advisor checks for coverage gaps — steps without linked processes, or processes not covered by any flow.

Flows aren’t just documentation — they’re specifications that can drive integration tests. You can link a flow to a test file via source mapping, including a test command. The agent knows what to test and how to run it.