Sub topic 11
Building a Flow Step by Step
This chapter assumes you know the difference between a user flow and a task flow, can read standard flowchart shapes, and understand entry points, the happy path, decision points, and error paths. Here you put those pieces together into one process you can repeat for any goal.
Why a repeatable process helps
Most weak flows share the same problems. They start from screens instead of goals. They show only the happy path. They mix levels of detail, so one box says "Checkout" and the next says "Tap the blue button". A fixed sequence of steps prevents these problems because each step produces something the next step needs.
The process has seven steps:
- Write the goal and the scope.
- Collect inputs from research.
- List entry points.
- Draw the happy path.
- Add decision points.
- Add error paths and edge cases.
- Check the result and tidy it.
The following diagram shows how they connect. Step 7 can send you back to earlier steps.
Step 1: Write the goal and the scope
Start with one sentence in this form: A [type of user] wants to [goal] starting from [context]. For example: "A returning customer wants to reset a forgotten password, starting from the sign-in screen."
Then decide the type of flow.
- A task flow follows one task, for any user, and usually has one entry point. Resetting a password is a good fit.
- A user flow follows a particular kind of user through a larger goal and may include several entry points and choices, such as "Sign in or sign up".
Also write down what is out of scope. For the password reset, you might exclude "account locked by support". An explicit exclusion stops the diagram from growing without limit. If you later find the excluded case matters, you can draw it as its own flow and link to it.
Define the start and end conditions in the same step. The start is where the user is. The end is the state that means the goal is met. "Password updated and user can sign in" is a testable end. "User is happy" is not.
Step 2: Collect inputs
A flow based only on your own assumptions will describe how the team thinks the product works. Collect evidence about how people actually behave. Useful inputs include:
- Interview notes and personas, which tell you what the user is trying to achieve and what they already know.
- Analytics, such as drop-off points in the current product, which show where users fail.
- Support tickets, which list the real error cases.
- Competitor products, which show common patterns and expectations.
- Business and technical rules, such as password requirements or identity checks, which constrain the flow.
Write down the rules as plain statements before drawing. For example: "Reset links expire after 30 minutes" and "New password needs at least 12 characters". Each rule is a future decision point or error path.
Step 3: List entry points
An entry point is any place a user can begin the flow. List them before you draw, because each one may bring different context. A user who taps "Forgot password?" on the sign-in screen already has an email in mind. A user who arrives from a "your password was exposed" email may need a different first step.
For a password reset, the list might be:
- The "Forgot password?" link on the sign-in screen.
- A link in a security alert email.
- A support agent's instruction to reset.
Draw only the entry points that change the steps that follow. If three entry points all land on the same "Enter email" step, show them as three start markers joining one box. Do not draw three copies of the flow.
Step 4: Draw the happy path
The happy path is the shortest route where everything works. Draw it first, in a straight line, using only plain steps. Do not add branches yet. Each box should be one user action or one system response, written as a verb phrase: "Enter email", "Send reset link", "Open link from email".
Keep these conventions:
- Use rounded terminators for the start and end.
- Use rectangles for steps.
- Flow in one direction, top to bottom or left to right.
- Keep every box at the same level of detail.
A quick check for level of detail is to ask whether each box could be a screen, an action, or a system event. If one box is a whole sub-process, such as "Complete sign-up form", and its neighbour is a single tap, split or merge them so the diagram reads evenly.
Step 5: Add decision points
Walk along the happy path and ask at each step, "Could this go more than one way?" Each yes becomes a diamond with labelled exits. Common sources of decisions are:
- User state: does the user have an account, are they signed in, are they new?
- Input validity: does the password meet the rules?
- System state: is the link still valid, is the network available?
- Permissions: is the user allowed to do this?
Label every exit. A diamond with unlabelled arrows forces the reader to guess. Prefer yes/no questions or a short list of named outcomes. If a decision has more than three or four exits, you probably have two decisions merged together, so split them.
Step 6: Add error paths and edge cases
Now take each step and decision and ask what happens when it fails. Error paths are the failures you expect, such as a wrong password. Edge cases are rare but real conditions, such as an expired link, a double tap, or an email address that has no account.
For every error, decide where the user goes next. There are three common answers:
- Loop back to the same step with a message, which fits validation errors.
- Redirect to another step or flow, such as "Request a new link".
- End the flow with a clear failure state and a way out, such as contacting support.
The rule to enforce is that no step is a dead end unless it is a declared end point. A user who reaches an error screen with no button has been stranded.
Here is the reset flow with a validation loop and an expired-link branch:
Note that the expired-link branch returns to "Enter email" rather than ending. That is a design decision, and you should record why you made it.
Step 7: Check for gaps and tidy
Before sharing the flow, check it against a short list:
- Does every path start at a declared entry point?
- Does every path end at a declared end point or loop back?
- Is every diamond labelled on all exits?
- Are all boxes at a similar level of detail?
- Can the happy path be read without following any branches?
- Does the diagram fit on one page, or should part of it become a linked sub-flow?
You can automate the dead-end check if you store the flow as data. The following script represents each step as a key and its next steps as a list. It reports any step that leads nowhere and is not declared as an end.
const flow = {
open_app: ["has_account"],
has_account: ["login_form", "signup_form"],
login_form: ["credentials_valid"],
signup_form: ["home"],
credentials_valid: ["home", "login_error"],
login_error: ["login_form"],
home: [],
};
const endpoints = new Set(["home"]);
const deadEnds = Object.entries(flow)
.filter(([step, next]) => next.length === 0 && !endpoints.has(step))
.map(([step]) => step);
console.log(deadEnds); // []If you delete "home" from endpoints, the output becomes ["home"], which shows the check working. You could extend it to find steps that no other step points to, which reveals orphaned boxes.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Starting from screens | The flow describes the interface, not the goal | Write the goal sentence first |
| Drawing branches before the happy path | The main route is hard to see | Draw a straight line first |
| Mixed levels of detail | Readers cannot tell what a box means | Use one level for the whole diagram |
| Unlabelled decision exits | Readers guess the condition | Label every exit |
| Error screens with no exit | Users get stranded | Give each error a next step |
| One huge diagram | Nobody reads it | Split into linked sub-flows |
Worked summary
Applying the steps to the password reset gives these results.
- Goal: A returning customer wants to reset a forgotten password from the sign-in screen.
- Inputs: A 30-minute link expiry, a 12-character minimum, and support tickets about expired links.
- Entry points: The sign-in link and the security email, both landing on "Enter email".
- Happy path: Enter email, send link, open link, enter new password, password updated.
- Decisions: Link validity and password rules.
- Errors: Expired link returns to "Enter email". Weak password shows hints and returns to "Enter new password".
- Review: No dead ends, and the diagram fits one page.
Exercise
You are building a task flow for "change delivery address on an existing order". Name the first three things you would write down before drawing any boxes, and give one decision point and one error path you would expect to add after drawing the happy path.
Show answer
First, the goal and scope sentence (for example, "A customer with an unshipped order wants to change the delivery address, starting from the order details page"), including what is out of scope such as already-shipped orders. Second, the start and end conditions (start on order details, end when the new address is confirmed and saved). Third, the inputs and rules, such as the cutoff after which addresses cannot change and any address validation rules. A decision point could be "Has the order already shipped?" with exits to the edit form or to a message offering other options. An error path could be "Address fails validation", which shows a message and returns the user to the address field with their input preserved.
Exercise
The following flow data has a problem. Which step is a dead end, and how would you fix it? const flow = { start: ["form"], form: ["check"], check: ["done", "error"], error: [], done: [] }; const endpoints = new Set(["done"]);
Show answer
The step "error" has no next steps and is not a declared end point, so it is a dead end. Fix it by giving it an exit, such as error: ["form"] so the user returns to the form to try again. If the error is meant to end the flow, for example by directing the user to support, add a step such as "contact_support" and declare it an end point.