esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

Replace the Routine: Keep the Goal, Change the Steps

Users repeat habits from other apps. Learn how to change a routine by swapping one step while keeping the cue and reward.

In short

To replace a routine, keep the cue and reward and swap one step, since users repeat habits they learned in other apps.

4 min readFree

What you will learn

People repeat actions without thinking. A user who has spent years in one app brings those habits to your design. This lesson shows how to change a habit by swapping one step, not the whole thing. You will learn the habit loop, a simple rule for replacing a routine, and how to apply it to a screen.

Key words

Habit
An action you repeat so often that it starts to feel automatic.
Cue
The signal that starts a habit.
Routine
The steps you take after the cue appears.
Reward
The payoff that satisfies what you wanted, and makes you want to repeat the routine.
Habit loop
The cycle of cue, routine, and reward that keeps a habit going.
Interface
The screens, buttons, and menus a person uses in a product.

What is the habit loop?

Charles Duhigg described habits as a loop in his book The Power of Habit. The Decision Lab uses the name Cue-Action-Reward model for the same idea. A cue can be a feeling, such as stress, or something outside you, such as a time of day.

  • Cue

    The signal that starts the habit. It might be a feeling, a place, a time, or something that just happened.

  • Routine

    The action you take after the cue. With practice, it runs almost on its own.

  • Reward

    The payoff that meets the need behind the action. Without it, there is little reason to repeat the routine.

What is the replacement rule?

You cannot simply delete a habit. One guide to habit loops says you can replace the routine instead.

  1. 1

    Find the cue

    Write down what starts the old habit. Is it a moment in a task, a feeling, or a certain screen?

  2. 2

    Name the reward

    Ask what the person gets from the old routine. It might be speed, comfort, or a sense of control.

  3. 3

    Keep both the same

    Do not move the trigger or change the payoff. The person should still feel the same pull and get the same result.

  4. 4

    Write an easier routine

    Offer a new action that reaches the same reward in fewer steps. Routinery suggests replacing the routine with something easier.

  5. 5

    Watch what people do

    Check whether people use the new routine without being told. Habits take repetition before they stick.

Replacing routines in interfaces

Users arrive with habits from every product they already use. So the safe move is often to keep the familiar routine and change only the step that causes trouble.

Why do old habits stick?

A new routine therefore needs practice, not just a clear label.

A worked example: unlabelled icons

The goal stayed the same. The routine just became easier to read.

Try it: swap a routine in code

This short program models the file-saving example. The cue and the reward stay fixed. Only the routine changes.

Python
# A habit loop: cue, routine, reward.
old = {'cue': 'wants to save a file', 'routine': 'open File menu, then Save As', 'reward': 'file is saved'}
new = dict(old, routine='press Ctrl+S')
for name, loop in [('Old', old), ('New', new)]:
    print(name, '->', loop['cue'], '|', loop['routine'], '|', loop['reward'])
print('Same cue:', old['cue'] == new['cue'])
print('Same reward:', old['reward'] == new['reward'])

Output

Old -> wants to save a file | open File menu, then Save As | file is saved
New -> wants to save a file | press Ctrl+S | file is saved
Same cue: True
Same reward: True

Check yourself

Quick check

You want users to switch to an easier routine. Which part should stay the same?

Key points

A habit is a loop of cue, routine, and reward. To change one, keep the cue and reward, then offer a simpler routine. Test the new steps with real people and give short help at the moment it is needed.

Tip

Before you redesign a routine, write down the cue and the reward in one sentence each. If you cannot name them, you are not ready to change the steps. Use the loop to make tasks easier, not to trap people into returning.

Sources

How is this lesson?

Last updated on 17 November 2026

Learn with me

Every lesson is free. I add new ones as I learn. Have a question, or want help with your own work? Book a short call.