Sub topic 11
Building a Flow Step by Step
Assume you know what a user interface screen is and can describe a basic user goal. You should also understand that a flow models actions and outcomes, not every visual detail of an interface.
A useful flow starts with a specific goal. For example:
> A returning customer wants to buy a saved product.
This goal is narrower than “use the shopping app.” A narrow goal gives the flow a clear beginning and end.
1. State the goal and success condition
Write the goal from the user’s point of view. Then define what success means.
| Item | Example |
|---|---|
| User goal | Buy a saved product |
| Success condition | An order confirmation appears |
| Main user | Returning customer |
| Product area | Saved items and checkout |
The success condition prevents the flow from expanding into unrelated tasks, such as browsing recommendations or changing account settings.
2. List entry points
Users may begin the same task in different places. Record the entry points before drawing the main path.
For the shopping example, users might enter from:
- The saved-items list
- A product detail page
- A reminder notification
If these entry points quickly merge into the same step, show them as separate starts that connect to one shared flow. If they require different decisions or information, create separate flows.
3. Draw the happy path
The happy path is the shortest expected route from the starting condition to success. Do not begin with every error or unusual case. First list the normal actions and system responses:
- Open saved items.
- Select a product.
- Tap Buy now.
- Confirm the delivery address.
- Choose a payment method.
- Submit the order.
- Show the confirmation.
Use a rectangle for an action or screen, a diamond for a decision, and rounded shapes for the start and end.
4. Add decisions and branches
A decision is a point where the next step depends on a condition. Phrase the condition as a question, and label each connector with its outcome.
For example, after the user selects a payment method, the system may ask whether that method is valid:
- Yes: continue to order submission.
- No: show the payment error and let the user choose another method.
Add branches only when they affect the user’s route. A decision that never changes the route does not need a diamond.
5. Add errors, edge cases, and endpoints
Walk through each step and ask what could prevent progress:
- The saved product is no longer available.
- The delivery address is outside the service area.
- Payment is declined.
- The network request times out.
- The user cancels checkout.
Each branch needs a useful destination. It might return to an earlier step, offer recovery, or end the task with a clear message. Do not let a connector lead to nowhere unless that node is an intentional endpoint.
You can represent the flow as data and check for accidental dead ends:
const flow = {
saved_items: ["product"],
product: ["address"],
address: ["payment"],
payment: ["confirmation", "payment_error"],
payment_error: ["payment"],
confirmation: [],
};
const endpoints = new Set(["confirmation"]);
const deadEnds = Object.entries(flow)
.filter(([step, next]) => next.length === 0 && !endpoints.has(step))
.map(([step]) => step);
console.log(deadEnds); // []6. Review the level of detail
Choose detail based on the audience and decision being made. A stakeholder review may need major steps and outcomes. A design review may need individual screens, fields, and validation states. Avoid mixing five-minute actions with internal database events in one diagram.
A practical flow should let another person answer three questions quickly:
- Where does the user start?
- What can change the route?
- How does the user reach success or recover from failure?
Exercise
What should you do first when a flow contains many unrelated screens and features?
Show answer
Narrow it to one user goal and define the success condition before adding more steps.