Sub topic 13
From Flows to Wireflows and Screens
This chapter covers how to turn a finished flow diagram into a wireflow and then into screen designs. It assumes you can read and draw flow diagrams, and that you can name the happy path, decision points, and error paths of a flow. It also assumes you know what a wireframe is: a low-detail layout of one screen.
What a wireflow is
A flow diagram shows steps and decisions as abstract shapes. A wireflow keeps the same connections but replaces each step with a small wireframe of the screen the user sees at that step. Arrows leave from the element the user acts on, such as a button, a link, or a form submit.
The two diagrams answer different questions:
- A flow answers "what happens, in what order, and where does it branch?"
- A wireflow answers "what does the user see and tap at each point, and where does each action lead?"
Because a wireflow sits between the flow and the final screens, you can use it to find layout problems early. You can also use it to find missing states before you spend time on visual design.
Why not jump straight from flow to screens
Teams that skip the wireflow often find these problems late:
- A step in the flow needs more than one screen, or several steps fit on one screen, and nobody decided which.
- A decision in the flow has no visible control that triggers it.
- An error path exists in the diagram, but no screen shows the message.
- Two screens look unrelated even though the flow says they belong to the same task.
A wireflow surfaces these problems while changes are still cheap.
Mapping flow elements to screen elements
Each flow element becomes something concrete. The mapping is rarely one to one, so decide it on purpose.
| Flow element | Becomes in a wireflow |
|---|---|
| Step (rectangle) | One screen, one state of a screen, or a modal, sheet, or inline panel |
| Decision (diamond) | A control the user operates, or a system check shown by two outcome screens |
| Start or end (rounded shape) | An entry screen, a deep link, or a confirmation screen |
| Connector (arrow) | A tap, a click, a submit, or an automatic transition |
| Error branch | An error state: inline message, banner, or full error screen |
A decision made by the user, such as "Has account?", becomes two visible choices on a screen. A decision made by the system, such as "Credentials valid?", has no control of its own. It becomes a result that appears after a submit action, so the wireflow shows two outcome screens leaving the same button.
Screens versus states
The most common modeling question is whether something is a new screen or a new state of the same screen. Use these rules:
- If the user stays in the same context and the layout mostly stays the same, draw a state. An inline validation message on a form is a state.
- If the user's context changes, or the primary content is replaced, draw a new screen.
- If the element interrupts the task and must be dismissed, such as a confirmation dialog, draw it as an overlay linked to the screen beneath it.
In the sign-in flow, "Show error message" loops back to "Enter email and password". In a wireflow, this is one login screen with two states: the default form and the form with an error. It is not two separate screens. Drawing it as one screen with two states keeps the diagram honest about what the developer builds.
Building a wireflow step by step
- Start from the validated flow. Do not begin a wireflow from a flow that has unresolved dead ends or unlabeled decisions.
- Pick the scope. A wireflow is usually one task flow, not a whole product. Large wireflows become unreadable.
- List the screens and states. Go through the flow and write down one line per step: the screen name, its purpose, and its states.
- Sketch each screen at low fidelity. Use boxes, labels, and placeholder text. Show only the elements that matter to the flow: primary actions, inputs, key content, and messages.
- Connect actions to destinations. Draw each arrow from the control that triggers it, not from the edge of the screen.
- Add the error and edge states. Give each error path in your flow a visible screen or state.
- Review against the flow. Every path in the flow should appear in the wireflow, and every arrow in the wireflow should exist in the flow or be added to it.
Step 7 matters because the two documents drift apart. If you add an arrow in the wireflow, such as a "Cancel" link, update the flow too.
A wireflow as a diagram
Mermaid cannot draw real wireframes, but you can model the screen-and-state structure of a wireflow as a state diagram. This is useful as a screen inventory before you sketch the layouts. The diagram below is for the password reset task.
Notice that the loop from the flow ("Show rule hints" back to "Enter new password") is now inside one screen. The state diagram makes it clear that the developer builds one screen with a hint area, not two screens.
Checking the wireflow in code
You can reuse the idea from the earlier dead-end check. Store the screen inventory as a map from each screen to the screens it links to, then verify two things: every link points to a screen that exists, and every screen can be reached from the entry screen. Unreachable screens usually mean a leftover from an earlier draft or a missing arrow.
const wireflow = {
request_reset: ["check_email"],
check_email: ["new_password"],
new_password: ["new_password_error", "password_updated"],
new_password_error: ["new_password"],
password_updated: [],
old_help_page: ["request_reset"],
};
const entry = "request_reset";
const missingTargets = Object.entries(wireflow).flatMap(([screen, next]) =>
next.filter((target) => !(target in wireflow)).map((target) => `${screen} -> ${target}`)
);
const reachable = new Set();
const queue = [entry];
while (queue.length > 0) {
const current = queue.shift();
if (reachable.has(current)) continue;
reachable.add(current);
for (const target of wireflow[current] ?? []) queue.push(target);
}
const unreachable = Object.keys(wireflow).filter((screen) => !reachable.has(screen));
console.log(missingTargets); // []
console.log(unreachable); // ["old_help_page"]The script prints an empty list of missing targets and flags old_help_page, which nothing links to. Whether to delete it or add the missing link is a design decision. The script only tells you where to look.
Choosing fidelity
Wireflows can be drawn at different levels of detail. Pick the lowest level that answers the question you have.
- Boxes and labels. Good for checking structure and flow with stakeholders. Cheap to change.
- Wireframe-level screens. Good for checking layout, control placement, and content priority. Use these for most design reviews.
- High-fidelity screens in a prototype. Good for usability testing with realistic content and visual design, and for developer handoff. Expensive to change.
A common mistake is adding visual polish too early. Reviewers then comment on colors and fonts instead of the flow, and the team becomes reluctant to restructure what looks finished.
Common errors
- Drawing every screen in the product. A wireflow covers one task. Link to other wireflows at the edges instead.
- Arrows from nowhere. An arrow that starts at the screen border hides which control triggers it, so developers cannot tell what to build.
- Treating states as screens. This inflates the diagram and hides that the user stays in one context.
- Dropping error and empty states. Happy-path-only wireflows lead to error handling invented during development, which is often inconsistent.
- Letting the flow and wireflow diverge. Keep one source of truth for the logic, and update the other when it changes.
- Ignoring entry points. If the flow has several entry points, such as a deep link from email, the wireflow needs a screen or state for each one.
Moving from wireflow to final screens
Once the wireflow is reviewed, each wireframe becomes a high-fidelity screen. Carry these items forward so nothing is lost:
- The screen name, matching the name used in the flow and the wireflow, so everyone uses the same term.
- The list of states for each screen, with a design for each.
- The trigger and destination of each action.
- Notes on conditions that the diagram cannot show, such as rules for password strength or timeouts on the reset link.
Keep the flow, wireflow, and final screens linked by shared names. When a developer asks why a screen exists, you can trace it back to a step in the flow and then to the user goal.
Exercise
A sign-in flow has a step "Show error message" that loops back to "Enter email and password". In the wireflow, should you draw this as two screens or as one screen with two states? Give your reasoning, and say what the arrow leaving the Sign in button looks like.
Show answer
Draw one screen with two states: the default form and the form with an error message. The user stays in the same context and the layout barely changes, so a second screen would overstate what the developer must build. The "Credentials valid?" decision is made by the system, so it has no control of its own. Instead, two arrows leave the Sign in button. One goes to the home screen when the credentials are valid. The other goes to the error state of the sign-in screen when they are not.
Exercise
You run the reachability script on your wireflow and it reports that the screen promo_banner_detail is unreachable, and that the link checkout -> gift_options has no matching screen. What does each result mean, and what are two ways you could resolve the first one?
Show answer
The unreachable screen is defined in the inventory, but no arrow from the entry screen leads to it, directly or through other screens. It may be a leftover from an earlier draft, or an arrow may be missing. You can resolve it by deleting the screen if it is no longer part of the task, or by adding the missing arrow, and updating the flow so the logic still matches. The missing target means checkout links to a screen named gift_options that is not in the inventory. Either the screen needs to be designed and added, or the link should be removed or renamed if it is a typo.