Designing AI experiences: chat, agents and uncertainty
An AI feature is wrong some of the time, so the design is the states around the answer: where it came from, what happens when it fails, how a person corrects it, and the way to a human who already knows the story
The product manager asks Anesu to show a confidence percentage beside every answer from the support assistant, so that customers know when to double-check. What is the main problem with doing that?
Most design training assumes the system behaves the same way each time a person does the same thing. An AI feature does not. The same question can get two different answers, and the answers vary in how well they are supported. This chapter is about designing for that, using Wrenpost’s support assistant and, later, Larkhollow’s agent console. The AI engineer’s side is in other chapters, and this one takes the designer’s side of the same problems.
You will not decide what the model does. You will decide what a person sees when it is right, what they see when it is wrong, and what they can do next. That is most of the work.
What changes when the system can be wrong
A button either works or it is broken, and a bug gets fixed. A model-backed answer is correct at some rate, and no release makes the rate 100%. The AI engineer’s job, in scoping an AI feature, is to write down the job, the baseline without a model and what a wrong answer costs. Testing AI features explains why the result is a rate and not a pass or fail. Both end at the same point for you: some answers will be wrong after everyone has done their best, and the interface has to be safe when they are.
That changes the brief in three ways.
- Design the error, not only the answer. For every answer type, ask what a wrong one costs the person and what they would need in order to notice.
- Design for checking. The person has to be able to tell a supported answer from an unsupported one without being an expert in how the assistant works.
- Design for leaving. A person who is stuck needs a way out that does not start again from nothing.
Wrenpost has about 3,000 assistant conversations a month, roughly a hundred a day, and three product designers for seven engineering teams, working in two-week sprints. At that volume a one per cent failure is thirty conversations a month. Each is a real customer, often a developer on a deadline, who met the failure state and nothing else.
Three shapes of AI feature
The word chat covers several different things, and the design problem differs by shape.
| Shape | What the person does | How it fails | The main design problem |
|---|---|---|---|
| Chat assistant | Asks in words, reads an answer | A fluent answer that is wrong, vague or unsourced | Provenance and the way to a person |
| Agent that acts | Gives a goal; the system calls tools and may change things | A wrong action, a stalled run, a pause nobody noticed | What it will do, what it did, and control |
| Inline suggestion | Accepts, edits or ignores a draft inside their own work | A plausible draft accepted without reading | Making it easy to edit and easy to ignore |
Wrenpost’s assistant started as the first and has become the second: under rule 9 of RULES v12 it can call resend_message, and each resend is a billable SMS. Larkhollow’s console, from prototyping and fidelity, is an agent surface where support leads watch tool calls and approve a refund. The inline suggestion is the shape of an assistant that drafts a reply for a support agent to edit.
The four moments
Saleema Amershi and colleagues at Microsoft published 18 guidelines for human-AI interaction at CHI 2019, which they grouped by when in the experience they apply: on first interaction, during interaction, when the AI is wrong, and over time. Microsoft keeps them in its HAX Design Library with patterns and examples. Three of the 18 carry most of this chapter. The wording on the library page reads “Make clear how well the system can do what it can do”, “Support efficient correction” and “Scope services when in doubt”.
Most teams design the second moment well and the others badly. The first moment, what the assistant says it can do, is often a greeting that implies it can do anything. The third, when it is wrong, is usually a generic error line. The fourth, over time, is where a person’s trust is built or lost, and it is where the AI engineer ships a new version of the rules while the interface says nothing. Wrenpost’s RULES v12 is live today, and a later version will change how the assistant behaves, as the AI engineer’s prompts chapter shows. If the change reaches a customer as a different tone with no explanation, you did not design the fourth moment.
Use the four moments as a checklist for your flow, and mark each cell of it as designed, to be designed or deliberately left out.
Uncertainty: what the assistant knows and what it can show
The tempting answer to “how do we show uncertainty?” is a score. The trouble is what the score is made of.
A model can be asked how confident it is, and it will produce a number. That number has not been compared with outcomes unless someone has done that work. If the assistant says 90% and is right 70% of the time, the number misleads, and it misleads in a form that looks scientific. The research on how people rely on automation goes back long before language models. Lee and See’s 2004 review in Human Factors is about designing for appropriate reliance: the aim is trust that matches how reliable the system is, neither more nor less. A confident-looking figure that nobody has calibrated pulls trust in the wrong direction.
There are better signals, and they come from the structure of the system, not from the model’s opinion of itself. Ask the AI engineer which of these exist for your feature:
- A tool returned a record. The assistant read a delivery record. That is a fact, with a source.
- Retrieval found a passage. The answer came from a named section of the handbook, and the section can be shown.
- Retrieval found nothing relevant. The code knows this. The assistant is answering from general knowledge and should say so.
- A tool failed or returned nothing. The code knows this too.
- A rule blocked the request. The dispatcher refused, for a reason that can be stated.
Each of those is a fact the interface can show without anyone guessing. This is the argument for provenance over confidence. Hallucination and grounding explains how an answer is tied to a source on the engineering side. Your side is to make the tie visible.
For the Wrenpost assistant, the design in Ander’s case splits one paragraph into three kinds of statement:
| Kind | Example | How it looks |
|---|---|---|
| Record | “Status: sent to the carrier at 14:02. No report from the handset yet.” | A card in the chat, in the record’s own words, with the message ID |
| Handbook | “Reports from some carriers arrive late.” | A line naming the handbook section, with a link |
| The assistant’s own words | “A late report does not mean the message failed.” | Plain text, no badge, and no claim of a source |
Ander can now see that the proof stopped at the carrier. The same sentence cannot hide that, because the record is shown as it is.
A warning about the second row. A citation is a claim that the source supports the answer, and if it does not, the citation makes the answer more convincing and more wrong. Check, with the AI engineer, that the section shown is the section used, and that the link goes to that section. A source line that is sometimes decoration is worse than none.
Two honest cases remain, and the interface needs both. When the system knows it has nothing, say so in a way that leads somewhere: “I could not find this in the handbook. I can pass this to the support team with what you have told me.” When it does not know whether it has something, you cannot tell the person, and the safest design makes checking easy and the way to a human obvious. That is the case against hiding every sign of uncertainty as well as against faking one.
Failure states you have to draw
Draw each of these before the build starts, with the words the person will read. The unhappy paths of a transfer in designing for money and trust are the model: where is my thing, is it safe to try again, what happens next.
| State | Who detects it | What the person needs |
|---|---|---|
| A tool fails or times out | Code | Say what could not be checked, not that “something went wrong”; offer a retry and a person |
| The assistant finds no record | Code | Ask for the one thing needed, such as the message ID, and show where to find it |
| A rule refuses the request | Code (the dispatcher) | The reason in plain words, in a form that does not read as the assistant being rude |
| The answer is wrong | The person | A way to say so that does something now |
| The answer is slow | The person’s patience | A visible state of work, as in prototyping and fidelity |
| The request is outside what it does | The assistant or code | A statement of what it can do and who can help |
On the third row, a refusal that the code enforces should look different from a refusal that the model chose to give. The AI engineer’s guardrails chapter explains why the dispatcher, not the prompt, is the control. If the refusal is the dispatcher’s, the wording is a fixed string you write, and it can be tested. If it is the model’s, the wording varies and you cannot promise it.
Write the copy for each state, and give the list to the AI engineer and to QA. Each state is a test case. If nobody can trigger a state on purpose in a staging environment, nobody can check that it looks right.
Correction: how a person fixes it
A thumbs-down tells the team that an answer was bad and gives the person nothing. It is useful as a signal. It is not a correction. The guideline is to support efficient correction, and in practice there are four forms, in rising weight.
- Reword and retry. Make it easy to edit the last question and run it again, not to retype the thread.
- Correct the premise. If the assistant took the wrong message ID, let the person change that one fact and keep the rest.
- Report with a reason. Offer a short choice of what was wrong, and say what happens next. Monitoring quality in production explains why the AI engineer samples live conversations and how a flagged one can join the checks. Your part is to decide what the button captures and to be honest about what it does. “We read these” must be true.
- Undo. For an action, this is the strong one, and it is not always possible.
Undo decides the design of an agent feature. A sent SMS cannot be recalled. So the design for the resend cannot be do it, then offer undo. It has to be a confirmation before, showing the number, the message text the assistant read and the cost, then a receipt after. Money is not the risk here. If every one of the 3,000 monthly conversations ended in one resend at ₦8, the bill would be ₦24,000. The cost is a duplicate message reaching the customer’s own customer, which a person cannot take back. The product’s code, not the model, writes the confirmation from the tool’s arguments, so its wording is fixed and can be tested, as the guardrails chapter sets out. Design the confirmation as the place where the person’s judgement is used, and do not let it become a button that people press without reading, which is the warning in designing for money and trust about generic pauses.
For a console like Larkhollow’s, the same logic applies to the approval pause, and it adds a second need: a way to stop a run that is going wrong, with a clear account of what it had already done.
Handover is a flow, not a button
Every AI feature sends some people to a human. How many depends on the feature, and it changes what the design is for.
At Wrenpost, with about 3,000 conversations a month, a handover is the exception, and a person on the support team can read the transcript. At Owoleaf at 200 people, about 90,000 contacts a month reach the assistant and the support desk together. The assistant closes about 60,000, and about 30,000 reach human queues: a third of the contacts, not half of the assistant’s conversations. Scoping an AI feature counts them that way, and the figures do not say how many of the 30,000 met the assistant first. Whatever the share, thousands of customers a month go through the assistant on the way to a person. For them it is a step before the human, and the design of that step is the product. If they repeat everything to the person they reach, the assistant has added a stage, not removed one.
A good handover has four parts.
- It is always available. Not only after the assistant fails twice. A person who asks for a human gets one.
- It carries the story. The transcript, the tool results and what the customer has already tried travel with the ticket, so they are not asked again.
- It says what happens next. Who will answer, when, and how. If nobody can promise a time, say that.
- It is not punished. Do not make the human route harder to find than the assistant route to push the numbers.
The last item is a real tension. A support operations lead will care about the cost of a human conversation, and the metric of conversations the assistant resolved will reward a hidden handover. The number cannot tell a resolved conversation from an abandoned one. Raise that with the PM and the AI engineer before the dashboard exists.
Words and honesty
Tell people they are talking to an AI, and do not give it a human name and a face to make it feel friendlier. Avoid claims of feeling. “I understand how frustrating this is” from a system that cannot promise anything reads as insincere, and once it is wrong it reads as worse. Use plain, specific sentences. State what the assistant did and what it could not do.
Tone is part of how much people trust an answer. A confident voice persuades, and the model’s voice does not shift with how well supported the answer is. Your design is the only place that difference can show.
Where practitioners disagree
Show confidence or hide it. One camp says people deserve to see the system’s uncertainty and a signal beats none. The other says an unchecked signal is worse than none. A reasonable position: show a signal when someone has measured it against outcomes, and otherwise show provenance. If the team calibrates a score against labelled conversations, the question changes.
Chat or something else. A chat box is easy to build and promises everything. A form or a set of buttons that calls the model behind the scenes promises less and fails more gently. Chat suits open questions and fits badly with tasks that have three fixed steps.
A persona or a plain voice. A character can make a product feel cared for. It can also hide the fact that no one can promise anything. Teams that care about trust where money moves tend to choose plain.
Streaming or all at once. Streaming shows progress, and also shows the model changing its mind in front of the reader. Testing it, as in prototyping and fidelity, is better than arguing about it.
Day to day
Here is how the work runs for Anesu on a two-week sprint at Wrenpost, with three designers who meet for a weekly critique.
Daily. Read a few real conversations. Ask the support operations lead for a standing sample, not only the ones that someone complained about. You are looking for the places where the assistant’s answer and the interface disagree.
Weekly. In the sprint’s first week, meet the AI engineer and agree the states the sprint’s change can reach: new tool results, a new refusal, a changed rule. In the second week, check each state in staging, with the actual copy, and bring one of them to the three-designer critique.
Per feature. Write the flow with its failure and correction states before the build, as in the artefact below. Give the AI engineer the list of states, since each is a test, and give QA the same list. Agree who owns the words in each state and who can change them.
When the rules change. A new version of RULES can change how the assistant words a refusal. Look at the transcript samples before the release and after it. If the voice shifts, a customer notices it before the team does.
Per quarter. Count the handovers and read a sample of them. Ask whether the person who received the ticket knew the story.
When it goes wrong. If a customer is hurt by a wrong answer, do not begin with the wording. Begin with the states: which was meant to catch this, and was it drawn, built and tested?
There is rarely a designer on the AI feature, and often it is a vendor’s chat widget on your own help page. You cannot change how it works, but you can change what surrounds it: the first message, the way to a person and the page it links to. Start there. Read 20 real conversations a week and write the three failure states in plain words. Your risk is a widget that implies it can do everything, with no route to a human that someone actually answers.
Wrenpost has about 180 people, three product designers and an assistant on the Claude API, owned by one AI engineer. Designers share it, and each of the three has a team of their own. The danger is that nobody owns the states, because the assistant belongs to no team’s screens. Agree one owner among the designers, a standing sample of conversations and a shared list of states. Owoleaf, at 200 people with about 60,000 conversations a month, shows the next problem: handover volume.
At Larkhollow, with 300 people, the AI feature is the product, and its customers’ support leads watch agents act. There are researchers, content designers and a design system with components for tool calls and approvals. The problem is consistency across customers whose data, tools and rules differ, and governance of the wording that agents produce. Keep a library of failure states and review changes to it. Test the console with real run timings and with the pause that waits for a person.
Template
# AI flow: <feature>
Owner · Date · AI engineer · Shape: chat / agent / inline suggestion
## Job and cost of a wrong answer
<What the person is trying to do; what a wrong answer costs them.>
## Happy path
1. <Step> 2. <Step> 3. <Step>
## Where each statement comes from
| Statement | Source (record / document section / the assistant) | How it is shown |
|---|---|---|
## Failure states
| State | Detected by | Words shown | Next step for the person |
|---|---|---|---|
## Correction states
| What the person can change | How | What happens to their report |
|---|---|---|
## Actions that cannot be undone
<Confirmation before: what it shows. Receipt after.>
## Handover
<When available; what travels with it; what the person is told.>
## What we test
| State | How to trigger it in staging |
|---|---|
## Open questions for the AI engineer
<Signals that exist or do not.> WORKED EXAMPLE
Wrenpost: the resend, with confirmation (RULES v12 rule 9 lets the assistant call resend_message; the dispatcher refuses unless the sender ID is approved). Anesu is the product designer; Ander’s case is the reason. Numbers are illustrative.
Job and cost. A customer wants a failed message sent again. A wrong resend sends a duplicate SMS to their own customer at ₦8, and nobody can recall it.
Happy path. 1. The customer says which message. 2. The assistant reads the record. 3. It shows the record and says why a resend is reasonable. 4. A confirmation shows the number, the first 160 characters of the body and ₦8. 5. The customer confirms. 6. A receipt shows the new message ID and status.
Sources. Status and times: record card. Carrier delay note: handbook section, linked. Reason for the resend: the assistant’s own words, no badge.
Failure states. Record lookup fails: code detects; “I could not read the record right now”; retry, or a person. No message ID: code detects; ask for it, show where to find it. Record says delivered: code detects; no resend offered; explain and offer a person.
Correction. Edit the message ID in the confirmation. Report “wrong message” with a reason; the team reads these weekly.
Handover. Always visible; the transcript and the record go with it; “a person replies within the support hours shown here”.
Test. One staging message ID for each state.
Now you
Wrenpost’s assistant answers questions about sender IDs using sender_id_status, which returns a status, such as approved, pending or rejected, and a free-text note typed by the carrier’s registrar. The handbook says registration depends on the carrier and gives no timelines. You are Anesu. Sender-ID questions are about 11% of Wrenpost’s traffic, some 330 conversations a month, and Kenya and South Africa account for about 150 of them. In a sample of 100 sender-ID conversations (illustrative, not the monthly total), 41 were approved, 33 pending, 14 rejected and 12 had no record. In 11 of the 33 pending conversations the customer asked for a person. The support operations lead wants no handover button on pending, because staff cannot speed a carrier up and each handover costs an agent’s time. The registrar’s notes are terse and sometimes in a language the customer does not read. The sprint ends in ten working days. Write the flow for the pending case, with sources, failure and correction states and the handover, and say what you will ask the AI engineer.
Self-check
Wrenpost's support assistant handles about 3,000 conversations a month, under RULES v12. The product manager for support tooling asks Anesu for a confidence percentage on every answer. The AI engineer says the model can produce a number, but nobody has compared it with outcomes. The assistant can show the record it read and the handbook section it used, and it knows when retrieval found nothing. The sprint is two weeks. What does Anesu design?
- DOC People + AI Guidebook Google PAIR, 2019
Google's guide for product teams on designing with machine learning, with worksheets, and chapters that cover setting expectations, explaining and handling errors. Its own site gives 2019 as the first publication and 2021 as the last update; this page was confirmed by search, not fetched.
- PAPER Guidelines for Human-AI Interaction Saleema Amershi and 12 co-authors, 2019
The source of the 18 guidelines and of the four moments used in this chapter. Read it for how the authors derived them. Read: Proceedings of CHI 2019 (ACM); Microsoft Research's publication page.
- DOC HAX Design Library Microsoft
The 18 guidelines with design patterns and examples, which you can filter by product type. Use it as a checklist against your own flow.
- PAPER Trust in automation: designing for appropriate reliance John D. Lee and Katrina A. See, 2004
The case that the goal is trust that matches reliability. It explains why an unchecked confidence figure pushes people the wrong way. Confirmed by search; the full text was not read. Read: Human Factors, vol. 46, no. 1, pp. 50-80; the link is the PubMed record.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.