Delegate: designing an AI shopping agent people can trust
Shopping assistants answer questions. Agents act for you, and once an AI spends someone's money, trust becomes the design problem. I designed and built Delegate, a working AI agent that shops a whole project inside your budget, explains every pick and asks before spending more. You can try it live.
$0
can go over budget without the shopper's OK: a rule in the store's code, not a test result
5
trust moments designed and built in
Live
working AI agent you can try on this site
3
levels of freedom the shopper chooses from
30-second version
- The problem
- AI shopping assistants answer questions. The next step is agents that act: they build the cart and spend the money. The moment an AI spends someone's money, the question changes from is it helpful? to can I trust it?
- What I did
- Designed and built Delegate, a working Claude-powered shopping agent for a fictional home-improvement store. It's designed around five trust moments, and the store enforces the shopper's budget in code.
- What changed
- A live prototype anyone can try in one tap, with three ready-made briefs that give the same result every time, plus a side-by-side comparison with a plain search-and-cart store: the setup for the usability study, which is next.
Where this started
At The Home Depot Canada I supported the pod behind Magic Apron, an AI assistant in a side panel that answers shoppers’ questions. I joined the sprints, gave input to the team, and used Quantum Metric to show how the assistant performed on mobile. Three lessons stayed with me.
People used it as an expert, so answers had to be grounded
Shoppers asked practical questions, like whether a paint would cover a two-bedroom house. The assistant answered from the product information. Its value came from being right about specs, not from being chatty.
On mobile, where the assistant sits decides whether the store still works
Earlier iterations covered essential tap targets and the live-chat button. Quantum Metric showed why engagement further down the funnel was lower on mobile than on desktop. Space on a phone is the scarcest thing in the experience.
Small failures break trust fast
A close button that was hidden, or tapping outside the panel not dismissing it, made the whole experience feel broken. The team fixed these. The lesson: there must always be an obvious way out.
Magic Apron is a chatbot: you ask, it answers. The next step is an agent: you hand it a job and it acts. That raised a question the chatbot never had to answer.
The question
How much should an AI shopping agent be allowed to do on its own, and how does it earn that trust?
I picked a scenario I know well from home improvement: “I’m repainting my bedroom this weekend. Budget $200. Get me everything I need.” It’s multi-item, budget-bound and needs know-how (how much paint, which finish, primer or not). That makes it a realistic test of judgement, not just search.
Principles
- Never spend without a visible why. Every pick explains itself in one plain sentence.
- Freedom is chosen by the shopper, not assumed by the agent.
- Ask about money, not about everything. Check-ins are for budget and substitutions only.
- Every action is reversible until checkout.
- Admit uncertainty. “Not sure” beats a confident wrong pick.
And from Magic Apron: ground answers in product data, never cover the store, and always leave an obvious way out.
Five trust moments
- 011. The handoff
Goal, budget, must-haves and how much freedom to give
- 022. Showing its work
A why and a confidence level on every pick, plus visible assumptions
- 033. Asking at the right time
Check-ins only when money or substitutions are at stake
- 044. Review before paying
Lock, swap or remove anything; budget always visible
- 055. Recovery
“I already have rollers” fixes the whole cart
The screenshots below come from the live prototype on a phone, 430 px wide. They follow the ready-made $200 bedroom repaint, which gives the same $172.88 cart every time, and the follow-ups shown.
1. The handoff
The shopper describes the job, sets a budget and picks must-haves like low odour, or starts from a ready-made brief. Then they choose how much freedom Delegate gets: ask me before each pick, build my cart, or buy within my limits. The last one checks out on its own only if the cart is under budget, with a 10-second countdown to stop it.

Live prototype · trust moment 1
The shopper sets the job and the limits before anything happens
- The job in the shopper’s own words. No forms or filters.
- Ready-made briefs (bedroom, bathroom, garden) that give the same result every time, so anyone can check them.
- The budget. The store treats it as a hard limit.
- Three levels of freedom. Build my cart is the default; the other two are stricter or looser.
Why it matters for trust: The shopper decides how much the agent may do before it does anything, so nothing it does later is a surprise.
Let the shopper choose the agent's level of freedom up front, and change it at any time
One fixed level of autonomy for everyone
Trust isn’t one setting. Someone repainting for the first time wants to approve every item; someone who just wants it done wants the cart built. Making autonomy an explicit choice also tells the shopper exactly what the agent will and won’t do. The same control stays on screen while Delegate works: switch to Ask me and the next item waits for approval; switch to Buy in limits on a finished cart and the 10-second checkout countdown starts.
2. Showing its work
Every item arrives with a why (“Zero-VOC lets you sleep in the room the same night after a weekend paint job”) and a confidence label: confident, fairly sure or not sure. Delegate lists its assumptions (room size, colour, wall condition, what you already own) in the cart, each with a Correct this link. This was the biggest lesson from Magic Apron: answers have to be grounded in product specs. The agent can only recommend products it has looked up, and it states the spec behind each choice.

Live prototype · trust moment 2
Every pick explains itself, and the budget is always on screen
- Spent and left against the $200 budget, pinned to the top while Delegate works.
- The freedom control, live: changing it changes what Delegate does next.
- A one-sentence why, tied to what the shopper said and to the product’s specs.
- An honest confidence label, and the running total after each pick.
Why it matters for trust: The shopper can check the reasoning and the money at every step, not just the final cart.
Under the finished cart, Why this cart? opens the agent’s full decision log: for every line, the reason, its confidence, the trade-off, and the alternatives it considered and rejected. The store fills in their prices and the difference, so the comparison is exact.

3. Asking at the right time
When the best option would go over budget, Delegate stops and asks, with two or three concrete options. The agent only says what each option adds or removes. The store works out the exact price change and new total, so the numbers on the buttons are always right. When the shopper picks one, the store applies it to the cart, so the agent can’t describe a change that didn’t happen.

Live prototype · trust moment 3
It stops and asks before going over budget
- The check-in names the problem in one sentence: the stool doesn’t fit the $27.12 left.
- Each option lists what it adds and removes, plus the exact change and new total, all worked out by the store.
- The cart stays at $172.88 until the shopper chooses. Nothing is spent while it waits.
Why it matters for trust: Money decisions stay with the shopper, and every number can be checked. Delegate doesn’t ask about trivial things, so when it does ask, the shopper takes notice.
Enforce the budget, and the arithmetic, in the store's code
Only instructing the AI to stay on budget
An instruction is a request; code is a guarantee. If the agent tries to add something that breaks the budget, the store blocks it, shows a visible budget guard note, and tells the agent to ask. Locked items work the same way, and so do stock problems: if an item goes out of stock, the store won’t let the agent substitute in that category until it has asked. Testing taught me to extend this to numbers: an early version let the model write its own totals, and one was 2¢ off. Now the model never does arithmetic. A shopper shouldn’t have to trust the model’s obedience, only the rules they set.
4. Review before paying
The cart always shows the total against the budget, colour-coded as it gets close. Every line can be locked (the agent can’t remove it), swapped for a nearby alternative, or removed. Changes the shopper makes by hand are passed back to the agent, so it doesn’t undo them. Every change, by the agent or the shopper, goes into a change history where any step can be undone in one tap, with the budget recalculated.

Live prototype · trust moment 4
Everything is reviewable and reversible before checkout
- The total against the budget, always in view.
- What Delegate assumed, each with Correct this. It opens a small box right on that line: type what’s true and the cart updates in the same panel, without sending the shopper off to the main chat. The agent must review its assumptions after every change, so a stale note can’t stay.
- Lock, Swap or Remove on every line. Here the paint is locked, so the agent can’t take it out.
- A large close button. Tapping outside the sheet or pressing Escape also closes it.
Why it matters for trust: The shopper has the final say on every line, and the agent’s assumptions are listed for them to correct.
5. Recovery
Corrections are plain language: “I already have rollers”, “make it cheaper”, “go with sage green”. Delegate applies the change to the whole cart and says what moved. Under every finished bedroom cart, five one-tap tests let anyone try to break it, including an item going out of stock and a $20 budget raise.

Live prototype · trust moment 5
One sentence fixes the whole cart
- A correction in plain words, here from a one-tap test.
- It removes what the shopper already owns, and says why.
- It replaces the old assumption (“you own no painting supplies”) instead of leaving it stale.
- It states the new total: $152.90 of $200, matching the budget bar.
- Five one-tap tests to try next, each reversible from the change history.
Why it matters for trust: Fixing a mistake takes one sentence, and the shopper can see exactly what changed.
What testing broke, and what I changed
I tested every flow against the live agent myself, at desktop and phone widths, before anyone else saw it. The failures were more useful than the successes. Each one showed a place where I’d trusted the model to do something the store should have guaranteed.
- 01A total was 2¢ off
The agent added prices itself. Now the store computes every total and the model never does arithmetic.
- 02It described a swap it never made
The agent said it swapped a brush; the cart was unchanged. Now the store applies the option the shopper picks.
- 03“Add a third gallon” removed one
Option quantities were read as totals. Now they always mean “add this many more”.
- 04A stale assumption survived
After a colour change, the old colour stayed listed. Now the agent must review its assumptions before it can finish.
- 05“Correct this” left the cart
Fixing an assumption jumped to the main chat. Now it opens a box on that line and the cart updates in place.
The pattern changed how I design for AI: anything a shopper’s money or trust depends on moves out of the prompt and into the product’s rules. The model decides; the store guarantees.
Other people can test it too: one tap watches it build the $200 cart, five one-tap tests try to break it, and a side-by-side comparison runs it against a plain search-and-cart store on the same brief.
The system
The same handful of components carries all five trust moments, on every brief. These are cropped from the live prototype.





Designed for mobile first
Magic Apron’s lessons shaped the mobile layout directly:
- The agent works in the page, not in a panel on top of it. Nothing floats over the store’s own buttons.
- The cart is a bottom sheet with three ways out: a large close button, tapping outside it, or the Escape key.
- The Stop button shrinks out of the way. While building, I caught the sticky stop-and-chat bar covering the third option on a check-in card. That’s the exact failure Magic Apron taught me to look for. Now the bar shows only Stop while the agent works, and new cards scroll clear of it.
- Checked at real phone widths. I tested every step at 375 px and 430 px: handoff, working, check-in, cart sheet, review and recovery. The 375 px pass caught a header that pushed the cart button off the screen; the store name now collapses to its logo on small phones.
How it’s built
- A real agent. Each step is a call to Claude with eight tools: plan, search, read specs, add, remove, update its assumptions, ask the shopper, and finish. The agent decides what to do; the store’s code carries it out against a catalogue of about 75 products for painting, bathroom refreshes and spring gardens.
- The rules live in code. The budget guard, item locks, per-item approvals, the out-of-stock rule and every total are handled by the store, not the prompt. Before the agent can hand over the cart, the store checks that it has reviewed its assumptions.
- Ready-made briefs always give the same result. An AI rarely gives the same answer twice, so two people trying the same brief could get different carts. Each ready-made brief, and each one-tap test, replays one recorded run of the live agent, clearly labelled Recorded AI run: the bedroom repaint is always $172.88. Change anything and Claude takes over live from that point.
- Safe to leave online. The API key lives on the server, never in the browser. A per-visitor rate limit and a monthly spend cap keep costs predictable. If the live AI is unavailable, a scripted demo agent runs the same interface and rules, clearly labelled.
- No personal data, no real orders. Nook & Nail, its brands and products are invented, and checkout is simulated. Products are shown as simple drawings rather than photos, because a photo of a real product would put a real brand on a fictional one.
Study planned (not run yet)
There are no study results yet; this is the plan. I built a classic version of the same store (search, filters, cart) and a side-by-side comparison page that already measures time, taps, corrections, budget and whether the cart is complete for each flow. Ten people from my network will each shop the bedroom-repaint scenario twice, once with Delegate and once with the classic store, alternating which comes first. I’ll measure:
- Task success: does the cart have everything needed?
- Time on task, and whether they stayed within budget
- How many corrections they made
- A trust rating from 1 to 7 after each flow
- “Would you let it check out for you?”
The sample is small and from my network, so the findings will be directional. I’ll say so, and I’ll report where Delegate lost trust as well as where it earned it.
What I’d do next
- Remember preferences across sessions, like “I already own a roller kit”, so the second project starts smarter.
- Make agent activity accessible. The activity feed already announces updates to screen readers; I’d test it with screen-reader users, because an agent acting quickly is easy to lose track of.
- Multi-project jobs, like “repaint the bedroom and mount the TV”, where trade-offs cross categories.