Sub topic 7
Mapping the happy path
This chapter assumes you can read basic flowchart shapes (terminators, steps, decisions), know what an entry point is, and have a user goal in mind for the flow you are drawing. Here you map the happy path, which is the first layer of any flow. Decision points and error paths come in later chapters.
What the happy path is
The happy path is the shortest sequence of steps that takes a user from an entry point to their goal when everything goes right. The user has what they need, makes no mistakes, and the system responds correctly every time.
The happy path is the spine of the flow. Every other path, such as validation errors, optional branches, and recovery routes, attaches to it. If you can't state the happy path in one line, the flow's goal is probably unclear.
Three properties define it:
- It has one entry point. If a flow has several entry points, map one happy path per entry, or pick the most common entry first.
- It has one successful end state. Reaching the goal is the end. "User gives up" is not part of the happy path.
- It has no decisions that the user can get wrong. A decision diamond can sit on it, but only the "yes" or "success" branch is followed.
Why map it first
Mapping the happy path first has practical benefits.
- It fixes the scope. Once the start and end are written down, the team can argue about what belongs inside the flow instead of arguing about the whole product.
- It exposes missing steps. A gap such as "the user opens the email link" with no step for sending the email shows up quickly in a linear sequence.
- It gives a baseline for effort. The number of steps on the happy path is the minimum cost to the user. Each step you can remove helps every user.
- It keeps the diagram readable. Starting with errors and edge cases produces a tangle before anyone agrees on the main route.
A step-by-step method
1. Write the goal and the end state
State the goal as a user outcome, then define how you will know it happened. For a password reset, the goal is "regain access to my account". The end state is "password updated". Write the end state as an observable system state, not a feeling.
2. Fix the entry point
Pick the point where the user starts. For this flow it is "forgot password" on the sign-in screen. If the same goal can start from an email link or a support chat, note those entries, but map the primary one first.
3. List the steps in order
Work forward from the entry. For each step ask: what does the user do or see next, assuming success? Write each step as a short verb phrase, such as "Enter email" or "Open link from email".
4. Separate user actions from system actions
Some steps are user actions (enter email). Others are system actions (send reset link). Both belong on the happy path, because the user's wait or the system's response often explains why a flow feels slow. Some teams mark system steps with a different color or a swimlane. Pick one convention and keep it.
5. Check the granularity
Each step should be one meaningful move toward the goal, not a single tap and not an entire task. Two checks help:
- If a step contains the word "and", it is probably two steps.
- If several steps always happen together with no thinking or waiting between them, they can be merged.
6. Draw it with standard notation
Use rounded terminators for the start and end, rectangles for steps, and arrows for direction. Keep the diagram in a single direction, either top to bottom or left to right.
Worked example: resetting a password
Here is the happy path for resetting a password. It shows only the success route. There are no error branches yet.
Read it as a sentence: the user taps "forgot password", enters an email, the system sends a link, the user opens it, enters a new password, and the password is updated. That is five steps between the start and end.
Notice what is missing. There is no check that the email exists, no rule check on the password, and no expired link. Those are decision points and error paths. Leaving them out is deliberate, so you can first agree that the main route is correct.
Happy path and decision points
Real flows contain decisions even on the success route. The password flow, for example, checks whether the new password meets the rules. On the happy path you still draw the diamond if the decision is part of the design, but you follow only the success branch and leave the failure branch for the error-path pass.
You have two reasonable choices:
| Approach | What you draw | When it fits |
|---|---|---|
| Linear happy path | Only steps, no diamonds | Early discovery, workshops, quick alignment |
| Happy path with decisions | Steps plus diamonds, only the success branch drawn out | Handoff to design, when the checks matter to the build |
Either way, the success branch should be the one that continues in the main direction of the diagram. Putting failure branches off to the side keeps the spine visually obvious.
Checking a happy path in code
If you store a flow as data, you can verify the happy path automatically. The convention here is that the first item in each step's list of next steps is the happy-path successor. The function follows that route from the start and fails if it reaches a dead end or a loop before the end state.
const flow = {
forgot_password: ["enter_email"],
enter_email: ["send_link"],
send_link: ["open_link"],
open_link: ["enter_new_password"],
enter_new_password: ["password_ok"],
password_ok: ["password_updated", "show_rule_hints"],
show_rule_hints: ["enter_new_password"],
password_updated: [],
};
function walkHappyPath(flow, start, end) {
const path = [start];
const seen = new Set([start]);
let current = start;
while (current !== end) {
const next = flow[current];
if (!next || next.length === 0) {
throw new Error(`Dead end at ${current}`);
}
current = next[0];
if (seen.has(current)) {
throw new Error(`Loop on the happy path at ${current}`);
}
seen.add(current);
path.push(current);
}
return path;
}
const path = walkHappyPath(flow, "forgot_password", "password_updated");
console.log(path.join(" -> "));
console.log(`${path.length - 1} transitions`);Running it prints the seven nodes joined by arrows, ending at password_updated, and then 6 transitions. The show_rule_hints loop is allowed to exist in the data, because the happy path never takes it. A loop that appears on the happy path itself would mean the user can never finish, so the function reports it as an error.
Common errors
- Hidden failure in the main route. A step such as "Verify identity" often hides a decision. Ask what happens if it fails. If the answer matters, it deserves its own diamond.
- Too much detail. Listing every field and tap turns a flow into a screen spec. If a step is only one input in a form, fold it into "Fill in the form".
- Too little detail. A step like "Complete onboarding" hides a whole flow. Break it into its own flow and link to it.
- Multiple goals in one path. If the path ends in two different successes, it is two flows. Split them.
- Designing for the ideal user only. The happy path is a starting point, not the design. Products that stop at this stage ship interfaces that fail on the first typo.
- Forgetting the end state. A path that trails off at "Show screen" has no verifiable goal. End on the outcome, such as "password updated".
- Drawing the team's view, not the user's. Internal steps, such as a back-office approval, may belong in a system lane. They should not be disguised as user steps.
Using the happy path afterwards
Once the team agrees on the happy path, it becomes the reference for later work. Decision points are added where a step can have more than one outcome. Error paths are attached to the steps that can fail. Wireflows place a screen on each step. During testing, the happy path becomes the script for the first task, and the step count becomes a benchmark to compare against real behavior.
Exercise
A product team maps the happy path for "buy a ticket". They draw: Open app, Search event, Choose seats, Pay, Show ticket. A teammate says "Pay" should be split into "Enter card details" and "Confirm payment", and another asks to add "Card declined" to the same path. Which of these changes belong on the happy path, and why?
Show answer
Splitting "Pay" into "Enter card details" and "Confirm payment" is a valid change if they are separate user moves, and it follows the one-meaningful-move rule for granularity. "Card declined" does not belong on the happy path because it is a failure outcome. It should be added later as an error path attached to the payment step.
Exercise
Using the data format from this chapter, a flow has checkout: ["review", "login"] and review: ["checkout"], and the happy-path walker starts at checkout with the end done. What does the walker report, and what should you change?
Show answer
The walker follows the first successor of each step, so it goes from checkout to review, then back to checkout. It reports a loop on the happy path at checkout. Fix the data so the first successor of review leads forward toward done. Any step that sends the user back should come after the forward step in the list, so it counts as a non-happy branch.