Sub topic 2
What a user flow shows
A user flow is a diagram of the paths a person can take through a product to reach a goal. It starts where the person arrives, it shows each step and decision along the way, and it ends where the goal is met or abandoned. This chapter explains what a user flow contains, what it leaves out, and the errors that make flows misleading.
Prerequisites
This chapter assumes you know three things:
- You are familiar with digital products such as apps and websites.
- You know what a screen in a user interface is.
- You know the basic idea of a persona (a described type of user) and a user goal (the outcome a person wants).
The previous chapter covered goals, tasks, and scenarios. A user flow builds on them. The goal tells you where the flow must end, and the scenario tells you who is walking it and why.
The working model
A user flow answers one question: given this kind of user and this goal, what routes can they take through the product?
Four properties define it.
- It is goal-driven. Every flow is anchored to something a user wants, such as "buy a ticket" or "get back into my account". A diagram of screens with no goal is a sitemap, not a flow.
- It follows a person, not the system. Each box is something the user sees or does, or a decision point the product or the user faces. Back-end processing appears only when it changes what the user experiences.
- It allows more than one route. Where a choice or a failure can send the user elsewhere, the flow shows the branch. This is the main difference from a single linear list of steps.
- It is bounded by entry and exit. The flow has a defined start and one or more defined ends.
A user flow usually covers a whole journey for a user type, and it may include several tasks. A task flow, covered in the next chapter, narrows to one task. In practice the two overlap, and many teams use the terms loosely. In this tutorial a user flow can span multiple paths and entry points, while a task flow stays on one task.
The building blocks
Every user flow is made from a small set of elements. The shapes below are the common flowchart conventions. Chapter 5 covers notation in detail, so here the focus is on what each element means.
| Element | Usual shape | What it represents | Example |
|---|---|---|---|
| Start or end | Rounded terminator | Where the flow begins or finishes | "Open app", "Home screen" |
| Step | Rectangle | A screen, page, or action | "Enter email and password" |
| Decision | Diamond | A point where the path splits | "Credentials valid?" |
| Connector | Arrow | The direction of movement | Arrow from one step to the next |
| Label | Text on an arrow | The condition for taking that branch | "Yes", "No" |
Keep one meaning per shape. If rectangles sometimes mean screens and sometimes mean back-end actions, readers cannot tell what they are looking at.
A worked example: signing in
The following diagram shows a user who opens an app and wants to reach the home screen. There are two ways in, and one failure path.
Read it from the top.
- The rounded start shape marks the entry point: the user opens the app.
- The first diamond splits the audience. Returning users and new users have the same goal (reach the home screen) but take different routes.
- The credentials diamond has two outcomes. "Yes" continues. "No" goes to an error message, and the arrow from the message returns to the credentials step, so the user can try again.
- Both routes end at the same terminator. Two paths to one destination is normal. It tells you the product has one successful end state for this goal.
Notice what the diagram does not show. It does not say how the app checks credentials, how long it takes, or what the error message says. Those belong in other artifacts. The flow shows structure only.
What a user flow does and does not show
A user flow is good at showing:
- Which paths exist and how they connect.
- Where users decide, and what each decision leads to.
- Where users can fail, and where a failure sends them.
- Whether every route reaches a real end.
- How many steps a goal takes, which hints at effort.
It is poor at showing:
- What a screen looks like. Wireflows and wireframes handle that.
- How the user feels. Journey maps handle that.
- How the whole product is organized. A sitemap handles that.
- How often each branch is taken. Analytics handle that, and you will see how in the validation chapter.
When someone asks a flow to carry all of these, it becomes cluttered and stops being useful. Treat the flow as one view of the product, not the whole picture.
Checking a flow for dead ends
A common error is a step that leads nowhere. The user reaches a box, and the diagram has no arrow out and no end marker. Either the designer forgot a branch or the product really traps the user.
You can check this mechanically when a flow is small enough to write as data. The script below stores a flow as a map from each step to its next steps. It then lists steps that have no outgoing connection and are not declared end points.
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); // []The output is an empty array, so every step either leads somewhere or is a declared end. To see the check work, delete the login_error: ["login_form"] line's contents by changing it to login_error: []. The script then prints ["login_error"]. That is exactly the mistake a reviewer should catch: an error message with no way to recover.
Two limits apply. The script finds steps with no exit, but it does not find steps that cannot be reached, and it does not find loops with no way out. A flow that cycles forever between two steps passes this check. Also, a passing check does not prove the flow matches how the product behaves. It only proves the diagram is internally complete.
Common errors
- No goal. The flow lists screens but never says what the user is trying to do. Fix it by writing the goal at the top and checking that every path serves it.
- Only the happy path. The diagram shows the route where everything works. Real users mistype, lose connection, and change their minds. Add at least the likely failure branches.
- Mixed levels of detail. One box says "Checkout" and the next says "Tap the blue Pay button". Pick a level and hold it. Readers lose the thread when the zoom changes mid-diagram.
- Unlabeled decisions. A diamond with two unlabeled arrows forces the reader to guess which condition leads where. Label every branch.
- Arrows that cross everywhere. Heavy crossing usually means the flow tries to cover too much. Split it into smaller flows rather than rearranging boxes.
- Designing for the system instead of the user. A box reading "Validate token" describes the server. A box reading "Show session expired message" describes the experience.
- Several unrelated end states with no names. If a flow ends in three places, name each. "End: order placed" and "End: cart abandoned" mean different things to the team.
Choosing between one flow and several
If a user flow grows past what fits on one screen or one printed page, ask whether it contains more than one goal. Signing in and resetting a password are separate goals even though they are connected. Drawing them as two flows, with a reference from "Forgot password?" to the second one, keeps each readable.
Summary of the model
A user flow starts from a goal. It then arranges entry points, steps, decisions, and error paths into a structure that reaches an end state. The next chapters look at each part closely, beginning with task flows, which apply the same idea to a single task.
Exercise
A teammate gives you a diagram of a checkout process. It has a rounded "Start" and a rounded "Order placed". Between them are six rectangles in a straight line, with no diamonds. List two things you would ask them to add or check, and explain why each matters for a user flow.
Show answer
First, ask where the user can make choices or where things can fail, such as payment declined, invalid address, or an item going out of stock, and add diamonds and error branches for them. A straight line shows only the happy path, so it hides the places where users get stuck. Second, ask about other entry points and end states, such as a user arriving from a saved cart or abandoning checkout, and name each end state. A user flow should show the routes that exist, not just the intended one. A reasonable additional check is that every rectangle either leads onward or is a declared end, so no step is a dead end.
Exercise
In the JavaScript dead-end check, you add a new step "help_page": [] to the flow object and link to it from login_error, so login_error: ["login_form", "help_page"]. Without changing endpoints, what does the script print, and what should you do about it?
Show answer
It prints ["help_page"], because helppage has no outgoing steps and is not in the endpoints set. You have two options. If helppage is a legitimate place for the user to finish, add it to endpoints. If the user should be able to continue, give it next steps, for example a link back to login_form. Choose based on what the product actually does.