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.

Cue Routine Reward Model: How Habits Run Through Design

Learn the three parts of the habit loop, how to map one in a product, and how to change it by keeping the cue and reward.

In short

The cue routine reward model is the three-part habit loop, and you change a habit by keeping the cue and reward while swapping the routine.

5 min readFree

What you will learn

This lesson explains the cue, routine, reward model. Many people call it the habit loop. You will learn its three parts, how to read a loop in a product, and how designers try to change one. The model comes from a book about habits, but it fits screens and apps well.

Key words

Habit loop
A short cycle that runs a habit. It has a trigger, an action, and a payoff that makes the cycle repeat.
Cue
The trigger. It is the signal that starts the habit.
Routine
The action a person takes after the cue. It is the habit itself.
Reward
The benefit the person gets from the routine. It is what makes the loop worth repeating.
Craving
The pull a person feels toward the reward before they act.

What are the three parts of the loop?

Charles Duhigg, a journalist, made this model well known in his 2012 book The Power of Habit. He says that a cue starts a routine, and the routine ends in a reward. Each part has its own job. Here they are in order.

  • Cue

    The cue is the trigger. Duhigg groups common cues into five kinds: place, time, emotional state, other people, and the action that just came before. A red dot on an app icon is a cue.

  • Routine

    The routine is the behavior itself. It can be one tap or a longer run of steps. The person does it without much thought once the cue appears.

  • Reward

    The reward is what the brain takes from the routine. It is the reason the habit sticks. A reward can be physical, such as caffeine, sugar, or nicotine, or emotional, such as relief, pride, or novelty.

The loop is a cycle. Each time the reward arrives, the link between cue and routine gets stronger. Then the next cue is more likely to start the routine again.

How do you read a loop in a product?

This is why it helps to look past the obvious reward.

How do you map a loop?

  1. 1

    Name the routine

    Write the exact action a user takes. Use a verb, such as tap, scroll, or refresh.

  2. 2

    Find the cue

    Ask what happened just before. Check the place, the time, the feeling, other people, and the last action.

  3. 3

    Name the reward

    Ask what the user gets. Look for the hidden benefit, like feeling up to date, not only the visible result.

  4. 4

    Test one change

    Change one part at a time and watch what users do. Keep notes so you know which part caused the change.

Why do loops feel automatic?

Ann Graybiel, a neuroscientist at MIT, studied how habits form in the brain. She found that as a behavior turns into a habit, control moves toward a deep brain area called the basal ganglia. Graybiel called the packing of a routine into one unit chunking. The brain fires most at the start and end of the sequence, and it is quieter in the middle.

Craving is the piece that links the cue to the reward. Over time, the cue starts to produce a craving for the reward before the routine even begins. James Clear's later book made craving a separate fourth step. Duhigg treats it as the force behind the loop.

How do you change a loop? The golden rule

Duhigg calls his main idea the golden rule of habit change. To change a habit, keep the old cue and the old reward, and insert a new routine in the middle. You do not try to erase the cue. That is hard to do, so you swap the action instead.

Tip

Before you redesign a screen, write down the old cue, the old reward, and the new routine. If the new routine does not give the same reward, users may feel they lost something.

How do you use the loop in UI design?

Use the model to ask better questions about a screen. What cue does the design give? What does the user do next? What do they get back? The short program below models one loop. It keeps the cue and reward the same and changes the routine, which is the golden rule in code.

loop_swap.py
loop = {"cue": "Red dot on the badge", "routine": "Open the app", "reward": "See new messages"}
better = dict(loop)
better["routine"] = "Tap the preview in the notification"
print("Old:", loop["routine"])
print("New:", better["routine"])
print("Same cue:", better["cue"] == loop["cue"])
print("Same reward:", better["reward"] == loop["reward"])

Output

Old: Open the app
New: Tap the preview in the notification
Same cue: True
Same reward: True

This lesson's model is related to the Hook Model lesson in this course. Both describe how actions repeat, but this one focuses on the three parts of a habit.

Check yourself

Quick check

When you want to change a habit, what does the golden rule say to change?

Quick check

A red dot on an app icon makes a user open the app. Which part of the loop is the red dot?

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.