By the end of this lesson you will be able to:
- Apply four qualities of good AI experiences: useful, reliable, accessible and pleasant.
- Build trust with transparency, explainability and user control.
- Use six proven UI patterns for AI features.
- Collect and use feedback to keep improving.
Great models can still make bad products
Two apps can use the exact same model and get very different reviews. One feels magical; the other feels confusing, slow or untrustworthy. The difference is user experience (UX): how the AI is presented, how it behaves when it's unsure, and how much control people have.
For our study buddy the users are students, parents and teachers. A 13-year-old on a budget phone at 11 pm before an exam needs something very different from a teacher planning next week's lessons.
Start with the user, not the model
Before designing screens, answer three questions:
- Who is the user, and what are they trying to get done? ("Understand this chapter tonight", not "chat with AI".)
- Where does the AI help, and where would plain software be better? A dropdown beats a chatbot for picking a class.
- What happens when the AI is wrong? Design for that case from day one.
Four qualities of good AI UX
- Useful: it solves a real problem faster or better than before. Don't add AI just because you can.
- Reliable: it behaves consistently, handles errors gracefully and stays inside its scope.
- Accessible: it works with screen readers and keyboards, supports local languages, has readable contrast and font sizes, and works on slow connections.
- Pleasant: a friendly tone, fast feedback and small moments of delight.
Six patterns that build trust
Explore the patterns below in 3D. Each card shows a small mock-up of how it looks in a real app.
Trust: not too little, not too much
The goal is calibrated trust. If users don't trust the AI at all, they won't use it. If they trust it blindly, they copy mistakes into their homework. Good design shows both the value and the limits:
- Transparency: label AI-generated content, and explain in one line what the AI can and can't do.
- Explainability: show sources, or the steps behind an answer (chain-of-thought from Lesson 5 makes great teaching material).
- Control: let people edit, regenerate, undo and switch the AI off, and always offer a Stop button while it's generating.
Over-trust design
Answer appears with no sources and a confident tone, in a "Copy to assignment" button. Wrong answers look exactly like right ones.
Calibrated design
Answer with citations, a "check with your textbook" note on uncertain facts, an "Explain the steps" button and 👍/👎 feedback.
Design for collaboration and feedback
Treat the user and the AI as a team. The AI drafts, the human decides. And every interaction is a chance to learn:
- Explicit feedback: thumbs up or down, "report a problem", star ratings.
- Implicit signals: did they copy the answer, regenerate it, or abandon the chat?
- Close the loop: review negative feedback weekly, add the failures to your test set (Lesson 14) and tell users when you've fixed something.
- What's the exact date of the Class 10 board exam this year?
- I don't have this year's official date sheet, so I don't want to guess. 🙏 Please check your board's official website or ask your school office. Meanwhile, shall I make you a revision plan for the next 6 weeks?
- Yes please!
- Great! Which subjects feel hardest right now? I'll give those more time. 📅
Hands-on
Your task: complete present(). It should add numbered sources under the answer and, when confidence is below 0.6, add the line ⚠️ I'm not fully sure about this. Please check with your teacher or textbook.
def present(answer, sources, confidence):
lines = [answer]
# TODO 1: if there are sources, add "Sources:" then one line per source like "[1] NCERT Class 10, Ch. 12"
# TODO 2: if confidence < 0.6, add the warning line
return "\n".join(lines)
print(present("Ohm's law: V = I × R.", ["NCERT Class 10, Ch. 12"], confidence=0.92))
print("-" * 40)
print(present("The exam is probably in March.", [], confidence=0.35))
Show solution
if sources:
lines.append("Sources:")
for i, s in enumerate(sources, 1):
lines.append(f"[{i}] {s}")
if confidence < 0.6:
lines.append("⚠️ I'm not fully sure about this. Please check with your teacher or textbook.")
Your task: each item is one user's 👍 (True) or 👎 (False) on a feature. Compute the helpful percentage per feature and print the feature with the lowest score as Needs attention: <feature> (<n>% helpful).
feedback = [
("Doubt solver", True), ("Doubt solver", True), ("Doubt solver", False), ("Doubt solver", True),
("Essay feedback", False), ("Essay feedback", True), ("Essay feedback", False),
("Essay feedback", True), ("Essay feedback", False),
("Quiz maker", True), ("Quiz maker", True), ("Quiz maker", True), ("Quiz maker", False),
]
scores = {}
# TODO: for each feature, helpful % = 100 * (number of True) / (number of votes), rounded
# store it as scores[feature] = percent
for feature, pct in sorted(scores.items(), key=lambda kv: kv[1], reverse=True):
print(f"{feature:15} {pct:3}% helpful")
if scores:
worst = min(scores, key=scores.get)
print(f"Needs attention: {worst} ({scores[worst]}% helpful)")
Show solution
votes = {}
for feature, liked in feedback:
votes.setdefault(feature, []).append(liked)
for feature, v in votes.items():
scores[feature] = round(100 * sum(v) / len(v))
Check your understanding
What does "calibrated trust" mean?
- Users should always trust the AI completely
- Users should never trust the AI
- Users trust the AI as much as it deserves: they see its value and its limits
- Trust is measured by temperature
Good UX shows sources, uncertainty and controls so trust matches real reliability.
Which feature gives users more control over AI output?
- Regenerate, edit and stop buttons
- Hiding that the content is AI-generated
- Removing the feedback button
- Longer answers
Control means people can change, redo or stop what the AI does.
Many students on slow phones abandon the doubt solver while it's "thinking". The first fix to try is…
- A bigger model
- Streaming tokens with a visible progress state
- Removing the system message
- Asking users to upgrade their phones
Streaming and progress indicators make waits feel shorter and show the app is working.
Key takeaways
- Start from the user's goal, and design for the moments when the AI is wrong.
- Aim for useful, reliable, accessible and pleasant.
- Build calibrated trust with transparency, sources, uncertainty and control.
- Collect feedback, act on it, and close the loop.
Next: keeping AI applications secure.
Your progress is saved in this browser.
Adapted from Lesson 12 of Microsoft's "Generative AI for Beginners" (MIT License), rewritten and extended by Aiprojects4U. View source