Flows and interaction design
A flow is a set of states and the moves between them: draw every way each step can fail before you polish the way it succeeds, and give each failure words, a way back and a human at the end
You are writing a flow spec for sign-up with identity verification. Where does most of the work in the spec belong?
A flow is the part of design where a good screen can still lead to a bad product. This chapter is about drawing the whole journey, with the unhappy paths first-class, and about the rules a regulated flow has to obey. The research that tells you where people fail is in research and usability testing. How the spec is agreed with product and engineering is in design in the product trio. Here the subject is the spec itself.
A flow is states and moves
A set of screens shows what the person sees. A flow shows what can happen. The useful way to think about it is as a small state machine: the person is in a state (a screen, or a moment such as “waiting for a code”), and from each state a limited set of moves leads to other states. A move is something the person does (taps, types, leaves) or something the system does (answers, times out, refuses).
Drawn that way, three things become visible.
- Dead ends. A state with no way forward, back or out. “Verification failed” with a single button that repeats the same step is a dead end for anyone whose details will fail again.
- Lost work. A move that throws away what the person already entered. A form that clears when it shows an error makes the person do the work twice.
- Missing states. The waiting state, the half-finished state, the state where the person comes back tomorrow. These have no screen in the mock-up, which is why nobody designs them.
You do not need a tool for this. A state is a box, a move is an arrow with a label, and a page of paper is enough. Boxes with no arrows leaving them are your dead ends.
Start from the unhappy paths
Name what goes wrong before you draw what works. For every step where the person gives something or the system checks something, ask what can fail, and work through five sources. The list stops you stopping after the first two.
| Source | What it looks like at an input step | Question to ask |
|---|---|---|
| The person | Typo, wrong field, no document to hand, changed their mind | Can they tell what they did wrong, and fix it without starting again? |
| The data | Name on the record differs from the name typed; number not found; already registered | Which of these can the person fix, and which needs a human? |
| The system | Timeout, service down, slow answer | What do they see after five seconds, and is the step safe to repeat? |
| The rules | Not eligible, under the minimum age, limit reached | Is this an error, or a decision the person should be told about plainly? |
| The channel or device | SMS never arrives, app killed, phone dies, signal drops | When they return, where do they land and what is kept? |
Two of these deserve a note. A rules failure is not an input error: the GOV.UK Design System error message is for validation errors, so a person who is ineligible or cannot fix the problem is better served by a plain explanation with next steps than by a red message. And a system failure should leave the person safe: if the verification call timed out, say whether pressing again could do harm, and make sure it cannot.
The Owoleaf flow, step by step
At 60 people Owoleaf is live in four states, has 14 engineers and signs up customers in the app and, since the USSD channel, from a feature phone. The identity check is the step where the unhappy paths multiply. The table below takes the happy path from the opening and lists, for each step, what the spec must also draw. It is the working view Chinyelu uses before she makes a single polished screen.
| Step | Happy path | Failures to draw |
|---|---|---|
| 1. Phone number | Customer types a Nigerian mobile number | Too few digits; a number already on a wallet; a number typed with +234 or with a leading 0 |
| 2. Code by SMS | A six-digit code arrives within seconds; customer enters it | Code never arrives; arrives late, after a resend; wrong code three times; code expired; app killed while waiting |
| 3. BVN and match | Customer types the BVN; the service returns a record that matches | Mistyped digits; no record found; name differs; phone differs from the one linked; service timeout; BVN already on another wallet; customer has no BVN; customer declines to share it |
| 4. PIN | Customer picks a four-digit PIN and repeats it | Two entries differ; PIN too easy to guess; app killed before the second entry |
| 5. Home | Wallet opens on tier 1 with a daily send limit of ₦30,000 | Customer reaches the limit later: not an error but a state that explains tier 2 |
The tier 1 limit of ₦30,000 and the tier 2 limit of ₦200,000 are the figures Owoleaf’s help centre uses in this course. They are illustrative. They are not the Central Bank of Nigeria’s, and published sources disagree about the real ones, as the chapter on building a PSB or mobile money product shows.
The BVN step has eight failure rows because it joins two systems you do not control: the customer’s memory of a number, and a national database. The next two sections cover what the rules say about that step and what to do with each row.
The rules the flow must obey
A flow in a regulated product is not free to put steps where they look best. Rules fix some of them. Write each into the spec as a constraint, with its source and the date you checked it, because the design that ignores a constraint gets rebuilt. These are the ones that bear on Owoleaf’s onboarding. Compliance owns the reading of them, and in a company of 60 that is one person, Kabir, so the constraints list is written with him.
An identifier before a tier 1 wallet. The Central Bank of Nigeria’s BVN page describes a circular effective 1 December 2023 that makes a BVN or a NIN mandatory for tier 1 accounts and wallets, keeps both required for individual tier 2 and 3 accounts, and says account opening should begin by retrieving the BVN or NIN data electronically from the NIBSS or NIMC databases. This chapter read that description, not the circular’s own text, and did not confirm its reference number or its enforcement dates, so check both with complianceas of 2026-11. For a designer the consequence is plain. The identifier is not a field you can make optional or defer; it decides whether a wallet exists. The BVN and the NIN are different numbers from different issuers that look alike, which the payments chapter on identifiers takes apart, so the screen must say which it is asking for. The seed case here asks about the BVN; a flow that also accepts the NIN has to treat the two as separate fields and say so.
Ask for no more than the purpose needs. The Nigeria Data Protection Act 2023 sets out the principles of processing personal data in section 24, which include data minimisation and purpose limitation, and deals with lawful basis and consent in the sections after it. This link is a third party’s copy of the Act, and this chapter did not read each section, so check the wording of the sections you rely onas of 2026-11. In a flow this becomes two habits. Do not collect a field because someone might want it later; each field in the spec carries the reason it is asked. And do not bundle the consent to share the BVN data with the acceptance of the terms: it is a step of its own, with words that say what is shared and why.
An error must be said in words. WCAG 2.2 success criterion 3.3.1 (Error Identification, level A) requires that an input error is identified and described to the person in text, and criterion 3.3.3 (Error Suggestion, level AA) that a suggestion for correcting it is given where one is knownas of 2026-11. A red border is not enough, and a message that says only “Verification failed” says nothing. These two criteria are the spec’s minimum for every error row.
Do not make people enter the same thing twice. WCAG 2.2 criterion 3.3.7 (Redundant Entry, level A) says information already given in the same process should be filled in or offered for selection, except where re-entering it is essential, needed for security, or no longer validas of 2026-11. Repeating the PIN is the essential exception, because it checks the person typed what they meant. Asking for the phone number again after the SMS step is not.
Confirm before the irreversible. WCAG 2.2 criterion 3.3.4 (Error Prevention for legal, financial and data, level AA) asks that submissions of that kind be reversible, checked, or confirmed before they are finalas of 2026-11. In onboarding it applies to the BVN submit, which creates a record, and later to the send-money screen. How that confirmation is designed where money moves is the subject of designing for money and trust.
One consequence of the first constraint is easy to miss. A customer with no BVN and no NIN cannot be helped by any flow design. The constraint decides what the product can offer them, so the spec says what they are told and where they are sent, and support has the words ready.
Order the steps: where does the BVN go?
Rules fix whether a step exists. Where it sits is a design choice. Four things pull on the order.
- The gate. The BVN decides whether the wallet exists. Anything the person does before it is work that can be lost, so every step before it needs a reason to be there.
- Investment. People who have given a phone number and a PIN are more likely to push through a hard step than people who have not. This argues for later. It is also how people end up with a half-made wallet they cannot use.
- Reuse. If the verification returns the person’s name and date of birth, asking for them first makes the person type what you could have filled in. Criterion 3.3.7 applies here.
- Trust. A request for a national identity number is the most sensitive ask in the flow. At the start, with no reason given, it looks like a trap. After several steps it looks like an afterthought. The design answer is to say why in one line, at the moment it is asked.
The case is genuinely open. Teams put the check first because the rule gates the wallet and because the returned record fills later fields. Others put it last because the early steps are easy wins that build momentum. The decision at the end of this chapter works it through with Owoleaf’s numbers. What the Decide cannot settle is the part that follows from either choice: whichever order you pick, every failure row in the table still needs its path.
Specify the failure, not the screen
A good spec is a table, not a picture. For each state it records what the engineer must build.
| State | Entry | Person can | System does | Goes to | Words (key) |
|---|---|---|---|---|---|
| BVN, name mismatch | Service returned a record whose name differs from the name typed | Correct the name; re-enter the BVN; contact support | Keeps every field; logs the check that failed | BVN (fields kept) or Support | bvn.name_mismatch |
Three things in that row repay the effort. What is kept is written down, so a mismatch never clears the form. The exit to a human is always a move, so there is no dead end. And the words have a key: the copy is written once, by whoever owns it, and the engineer refers to it by its key instead of typing a message of their own. Content design and UX writing covers the system behind that. At 60 people the keys are one list in the spec that Chinyelu and Femke, the engineer who builds the onboarding service, both edit.
Run two checks on the finished table.
The dead-end test. From every state, find the move that goes forward, back, or to a human. A state with only one move, which repeats the step that failed, fails the test.
The return test. Pick any state and imagine the app killed there. When the person opens it tomorrow, where do they land, and what is kept? Onboarding that restarts at the phone number costs every interrupted customer their patience. Say in the spec which steps save progress, and for how long. On a flaky connection or a cheap handset this is the most common unhappy path of all.
Write the failure so the person can act
Error copy is part of the flow, not decoration on it. The GOV.UK Design System’s guidance on error messages is a good model for the habits: say what went wrong and how to fix it, avoid vague words such as “invalid”, put the message next to the field, and do not clear what the person typed. Apply that to the BVN rows.
| Failure | The line that fails | A line that helps |
|---|---|---|
| Mistyped digits | “Verification failed.” | “That BVN has 10 digits. A BVN has 11. Check the number and try again.” |
| Name differs | “Verification failed.” | “The name on your BVN does not match the name you entered. Enter your name as it appears on your bank records.” |
| Phone differs | “Verification failed.” | “Your BVN is linked to a different phone number. Enter the number your bank has for you, or contact us.” |
| Service timeout | “Verification failed.” | “We could not reach the verification service. Nothing has been submitted. Try again in a minute.” |
The helpful lines say which check failed, what the person can do, and when nothing has been lost, which removes the fear that pressing again will do harm.
Fraud friction is a loss decision
Specific errors help honest customers and can help dishonest ones. A message that says “the name does not match” tells a person with stolen details that the number is real and the name is wrong. Fraud teams are right to worry. Designers are right that a vague message locks out honest customers.
The usual compromise is to name the check that failed without revealing the correct value, to limit how many attempts a phone number or a device gets, and to move repeated failures to a human instead of showing more detail. How far to go weighs customers lost against fraud let through, a loss decision and not a style one; the fraud course, not yet written, covers it. Write the compromise into the spec as a rule, with the attempt limit stated, and have Kabir agree it. Do not leave it to whoever builds the screen.
Test the unhappy paths
A usability test that follows the happy path will pass a broken flow. Use the method in research and usability testing and make one task an unhappy path: “You are signing up with the phone your cousin lent you, and the BVN is linked to your own number.” Fix the success rule beforehand: the person says what went wrong and finds the way on without help. Send the same table to QA, who can check each row as a case; mobile and accessibility testing shows how.
Where practitioners disagree
Flowcharts or screens first. One camp sketches states on paper, which exposes missing paths cheaply. Another goes straight to screens. Both work. What fails is stopping at the happy path.
How much to specify. Design in the product trio takes the argument between full specs and pairing. Here the rule of thumb is that anything with a legal or money consequence is written down.
One flow or several. The app, USSD and a retry after failure have different states for the same journey, and a spec that covers one hides the others. Designing for low connectivity and USSD covers the smaller channel.
Day to day
Daily. Read the support tickets for the flow you own, tagged by step. It shows unhappy paths you missed. Add each new one to the table, with a count.
Weekly. Meet the engineer building the flow for twenty minutes, with the table open. Walk the failure rows, not the happy path: it is the failures they will ask about. Update the constraints list when compliance tells you a rule has changed.
Per flow. Draw the states on paper. List the failures from the five sources for every step. Write the table, run the dead-end and return tests, and show it to compliance and to QA before the engineer starts. Put the date you checked each rule next to the rule.
Per quarter. Recount the tickets by step, and look for a failure row that has grown. A mismatch that was 61 of 140 last quarter and is 90 now is a design problem, not a customer one. Re-check each constraint against its source, because the rules in this chapter are the kind that change.
When the rules and the design collide. If a constraint blocks the flow you want, write the cost of the constraint as a number (people lost at the step) and take it to compliance and the PM. Do not design around the rule quietly.
You may be the only designer and there is rarely a compliance officer. You still need the unhappy paths, and a page of paper is enough. Read the regulator’s text yourself or ask your bank partner what the rule is, and write the constraint down with the date. Keep progress saved on every step, because your users are on cheap phones with poor signal. Your risk is shipping the happy path because the launch date is near, and learning the other paths from support tickets in week one.
A compliance officer appears and rules start to reach you in a single list. Build the constraints list into the spec template so each flow starts from it. Engineering has several teams touching onboarding, so the state table becomes the shared document, and QA starts testing from it. Expect a growing ticket queue to be the best research you have. Your risk is two teams building two onboarding flows with different failure messages for the same failure.
Compliance, legal, fraud and a content team all have a stake, and a flow change goes through review. Specs carry the sign-off of each, and rules change under you, so the date on each constraint matters. A design system holds the error components and a content system holds the words, so most of your work is choosing the right pattern and the exceptions. Your risk is a flow that is correct, approved and unusable, because every reviewer added a step.
Template
# Flow spec: <flow>, version <n>
Owner · Date · Agreed with: compliance, engineering, QA
## Constraints
| Rule | What it requires of the flow | Source | Checked |
|---|---|---|---|
## Happy path
1. <step> → 2. <step> → 3. <step> → <end state>
## Why this order
<where the identity step sits, the reason, what it costs>
## States and failures
| State | Entry | Person can | System does | Goes to | Words (key) |
|---|---|---|---|---|---|
## What is kept
<per step: what is saved if the app closes, for how long, where the person lands>
## Limits and exits
<attempt limits, exit to a human, who agreed them>
## Checks
Dead-end test: <result>. Return test: <result>. WORKED EXAMPLE
Owoleaf at 60 people (14 engineers, live in four states): KYC onboarding, steps 1 to 3 shown. Chinyelu designs; Kabir is compliance officer; Femke builds the onboarding service. Figures are illustrative.
Constraints. A BVN or a NIN is needed before a tier 1 wallet opens (CBN circular effective 1 December 2023, as the CBN describes it; checked 2026-11, to be confirmed against the circular). Consent to share the BVN data is its own step (NDPA 2023; checked 2026-11). Errors are described in text with a suggestion (WCAG 2.2, 3.3.1 and 3.3.3).
Happy path. Phone number, then a six-digit code by SMS, then BVN and match, then PIN, then home on tier 1 (₦30,000 a day).
Why this order. The BVN decides whether a wallet exists, so it comes straight after the phone is proven. The match returns a name that fills the next screen, so nobody types it twice. The cost: some people leave at the BVN step with only a phone number given. That is cheaper than a wallet half made.
States, step 3.
| State | Entry | Person can | System does | Goes to | Words |
|---|---|---|---|---|---|
| BVN, mistyped | Fewer or more than 11 digits | Correct and resubmit | Keeps the digits typed | BVN | bvn.length |
| BVN, name mismatch | Record’s name differs | Correct name; re-enter; contact support | Keeps all fields; logs the check | BVN or Support | bvn.name_mismatch |
| BVN, phone differs | Linked phone is not this one | Use the linked phone; contact support | Keeps the BVN | Phone step or Support | bvn.phone_differs |
| BVN, timeout | No answer in 8 s | Retry | Submits nothing; safe to repeat | BVN | bvn.timeout |
What is kept. Phone and proven code for 24 hours; the BVN is never stored before the match.
Limits and exits. Three BVN attempts per phone number a day, then a call-back from support, agreed with Kabir. Evidence. Of 140 “BVN failed” tickets in a fortnight, 61 were name mismatches, 38 phone differences, 22 typos, 11 timeouts and 8 other, so the first two rows come first.
Now you
You are Chinyelu. Owoleaf has 60 people, 14 engineers and customers in four states. The onboarding flow has five steps: phone number, six-digit code by SMS through Wrenpost, BVN with a match, a four-digit PIN, and home on tier 1 with a daily send limit of ₦30,000. Kabir, the compliance officer, tells you that a tier 1 wallet may not open without a BVN or NIN and that the BVN is not to be stored until it matches. Femke starts building on Monday. Last fortnight’s 140 “BVN failed” tickets split into 61 name mismatches, 38 phone differences, 22 typos, 11 timeouts and 8 others. Support also says some customers have no BVN, and that SMS codes arrive up to two minutes late on one network. The app is often closed mid-sign-up. Write the flow spec for all five steps: constraints, order, the failure rows for each step, what is kept, the attempt limit and exit to a human, and the two tests.
Self-check
Owoleaf at 60 people is rebuilding onboarding. Kabir says a tier 1 wallet may not be opened without a BVN or NIN. In a test of the version that asks for the BVN last, 400 people started, 310 reached the BVN step with a PIN already set, and 90 of those failed the match and quit with a half-made wallet. You must decide where the BVN goes in the flow.
- BOOK Don't Make Me Think, Revisited, 3rd edition Steve Krug, 2014
A short book on the point of this chapter: people do not read, they scan and muddle through, so a flow has to survive the way they actually use it. The publisher's page for the third edition is the one confirmed here. Read: the chapters on how people scan and on usability testing as a habit.
- POST 10 Usability Heuristics for User Interface Design Jakob Nielsen
The heuristics on error prevention, on helping people recognise and recover from errors, and on user control and freedom are a checklist for the dead-end and return tests.
- HANDBOOK Error message, GOV.UK Design System
A public design system's rules for the wording and placement of an error, including keeping what the person typed and reserving the component for fixable errors.
- DOC How to Meet WCAG 2.2 (Quick Reference) W3C
The primary text of the criteria cited above, including Error Identification, Error Suggestion, Error Prevention and the 3.3 group on input assistance. Read the criteria as written before you quote them in a spec.
- DOC Understanding Success Criterion 3.3.7: Redundant Entry W3C
Explains when asking for the same information twice is allowed, and why a browser's autofill does not meet the criterion. Useful before you defend a repeated field.
- DOC Bank Verification Number (BVN), Central Bank of Nigeria Central Bank of Nigeria
The regulator's own page, which describes the December 2023 circular on BVN or NIN for tier 1 wallets. It is a description and not the circular's text, so use it to know what to ask compliance.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.