• Home
  • Blog
  • UX Design for AI Products: Patterns for Agents, Copilots and Chat Interfaces

UX Design for AI Products: Patterns for Agents, Copilots and Chat Interfaces

A pattern guide to UX design for AI products: chat vs embedded UI, citations, confidence, undo, agent progress, human approval, errors and accessibility.

An AI feature behaves differently from the rest of your interface. It gives different answers to the same input, it is sometimes confidently wrong, and with agents it can act on the user's behalf. Standard UI patterns were not designed for that.

This guide is for founders and product teams adding AI features to a SaaS product. For each pattern we cover what it is, when to use it, and common mistakes. The patterns are grounded in two free sources of human-AI interaction guidance:

  • Microsoft's Guidelines for Human-AI Interaction (the HAX Toolkit), 18 guidelines introduced in a CHI 2019 paper and grouped by when they apply: initially, during interaction, when the AI is wrong, and over time.
  • Google's People + AI Guidebook from the PAIR (People + AI Research) team, with chapters including Mental Models, Explainability + Trust, Feedback + Control, and Errors + Graceful Failure.

Pattern 1: Set expectations about what the AI can and can't do

What it is. Telling users, before and during use, what the feature is for, what it is good at, and where it falls short. This is HAX guideline 1, "Make clear what the system can do," and guideline 2, "Make clear how well the system can do what it can do." The PAIR guidebook makes the same point: communicate capabilities and limitations early, and focus on the benefit rather than the technology.

When to use it. Always, but especially at first use and whenever the feature's scope changes (HAX guideline 18 is "Notify users about changes").

How it looks in practice:

  • Example prompts or suggested actions in the empty state, so users can see the kinds of things that work.
  • A short line on scope: "Answers questions using your workspace's help docs. It can't see billing data."
  • Labels like "Draft" or "Suggested reply" rather than presenting output as final.

Common mistakes. A blank "Ask me anything" box. Copy that oversells accuracy. Limitations hidden in a help page.

Pattern 2: Choose chat or embedded AI deliberately

Chat works when the task is open-ended, the user can't easily choose from a menu, and the conversation itself adds value: asking questions across a knowledge base, exploring data, or multi-step requests where clarifying questions help.

Embedded AI works when the task is well defined. A "Summarise" button on a support ticket, "Draft reply" in an inbox, auto-filled form fields, or smart defaults in a settings page. The prompt is written by your team and hidden behind a button, so the user doesn't have to know how to ask.

Chat interfaceAI embedded in existing UI
Best forOpen-ended questions, exploration, researchRepeated, well-defined tasks
DiscoverabilityLow: users must guess what to askHigh: the action sits where the work is
Prompt skill neededYesNo
Typical example"Ask your docs" assistant"Summarise this thread" button

This trade-off was debated on Hacker News under the post "Chatbots-Are-AI-Antipatterns". The linked article by Jakob Pörschmann argues that a well-designed GUI is usually more effective than chat, and that LLM interaction should often happen "at the click of a button, integrated into a GUI." Commenters pointed out that an open chat box hides how a product is meant to be used, and some favoured hybrids where natural language sits alongside a structured UI.

Our advice: start embedded for your top two or three repeated tasks, and add chat for the long tail, with the current page's context passed in automatically.

Common mistakes. A generic chatbot on every screen. Making users type what could have been a button.

Pattern 3: Show sources and answer "why this?"

What it is. Letting users see where an answer came from and why the AI produced it. HAX guideline 11 is "Make clear why the system did what it did." In the CHI 2019 study, participants found this guideline relevant across products but often violated: it had one of the highest numbers of violations of the 18. The PAIR guidebook recommends explaining data sources and notes that the best explanation is usually a partial one: explain what affects trust and decisions, not everything.

When to use it. Any time the AI states facts, especially from your own documents or customer data, and for recommendations where the reasoning isn't obvious.

How it looks in practice:

  • Inline citations that link to the exact document, section or record used. If you are building an assistant over company data, our guide to building an AI assistant on company data covers the retrieval side that makes citations possible.
  • A "Why am I seeing this?" link on recommendations, with a one-line reason ("Suggested because this customer opened three tickets about invoices this week").
  • For agents, a readable log of which tools and data the agent used.

Common mistakes. Citations that point to a whole document instead of the passage. Long technical explanations nobody reads.

Pattern 4: Communicate confidence and uncertainty

What it is. Signalling how much the user should rely on a given output. The PAIR Explainability + Trust chapter frames the goal as helping users calibrate trust: they should know when to trust the system and when to apply their own judgement.

When to use it. When users will act on the output and a wrong answer matters. PAIR suggests testing whether a confidence display helps at all, since it can distract or be misread.

Options PAIR describes, and when each fits:

  • Categorical (High / Medium / Low). Easy to read; you define the cut-offs and what the user should do in each band.
  • N-best alternatives ("This might be A, B or C"). Useful when confidence is low, because it prompts users to use their own judgement.
  • Numeric percentages. PAIR calls these risky because they assume users understand probability.

For generative features, plain language usually works better than a number: "I couldn't find this in your docs, so this answer is based on general knowledge."

Common mistakes. A precise-looking percentage users treat as a guarantee. Every answer in the same confident tone.

Pattern 5: Accept, reject, edit and undo

What it is. Treating every AI output as a proposal the user controls. HAX guidelines 8 and 9 cover this: support efficient dismissal and correction ("Make it easy to edit, refine, or recover when the AI system is wrong").

When to use it. On everything the AI produces or changes: drafts, auto-filled fields, bulk edits, generated code, categorisations.

How it looks in practice:

  • Suggestions appear as drafts with clear Accept, Edit and Dismiss actions, not as silent changes.
  • Diffs for edits to existing content, so users can see exactly what changed.
  • Undo for anything the AI applied, ideally at the level of a single action and a whole batch.
  • An easy way to ignore the feature entirely.

Common mistakes. Auto-applying changes with no undo. Regenerating the whole output when the user wanted one sentence changed.

Pattern 6: Streaming, progress and tool-use status for agents

What it is. Showing what is happening while the AI works: streamed text for answers, and step-by-step status for agents that search, call APIs and take actions.

When to use it. Whenever a response takes more than a moment, and always for agents that run multiple steps.

How it looks in practice:

  • Streamed text with a clear "Stop generating" control.
  • A step list for agents: "Searching CRM… Found 12 matching accounts… Drafting emails (3 of 12)…"
  • Clear final states: done, partly done, or failed (with why).
  • A cancel that doesn't leave things half-changed.

Scoping an agent? See AI agents for small business.

Common mistakes. A long spinner with no information. Raw tool names leaked from the code. No way to stop an agent going the wrong way.

Pattern 7: Human-in-the-loop approval for risky actions

What it is. Requiring human approval before the AI does something costly, irreversible or visible to others: emailing customers, issuing refunds, deleting records, publishing.

When to use it. Match the level of control to the stakes. The PAIR Errors + Graceful Failure chapter lists health, safety and financial decisions and sensitive social contexts as higher-stakes situations, and the Explainability + Trust chapter recommends increasing automation gradually: "Automate more when trust is high, or risk of error is low."

How it looks in practice:

  • A review screen that shows exactly what will happen ("Send 12 emails to these recipients") with Approve, Edit and Cancel.
  • Approval rules by action type, so low-risk actions run automatically and high-risk ones always pause.
  • An audit trail of who approved what.

Common mistakes. Approval prompts so frequent that users click through without reading. Vague summaries ("Apply changes?").

Pattern 8: Graceful errors and "I don't know"

What it is. Designing for the moments the AI can't help, gets something wrong, or fails technically. The PAIR guidebook's advice is to provide paths forward from failure, and to make error messages tell users what the system needs or how it works. Its example of a low-confidence response explains why no result was given and suggests what to try next.

How it looks in practice:

  • An honest "I don't know" or "I couldn't find that in your documents" instead of a made-up answer, with a next step: rephrase, search manually, or contact a person.
  • A handoff to a human (support, an account owner) when the AI is stuck.
  • Separate messages for "the AI wasn't sure" and "the service is down".

Common mistakes. One generic "Something went wrong" for every failure. Dead ends with no manual fallback.

Pattern 9: Collect feedback that actually improves the product

What it is. Giving users a quick way to say an output was good or bad, and using that signal. HAX guideline 15 is "Encourage granular feedback," and guideline 16 is "Convey the consequences of user actions," which here means telling users what their feedback will change.

When to use it. On AI outputs where quality varies, and especially after an error. PAIR suggests asking for feedback both alongside normal output and when something fails, and asking users who repeatedly reject outputs what they expected.

How it looks in practice:

  • Thumbs up and down on responses, with an optional short reason ("Wrong", "Out of date", "Not what I asked").
  • Treating edits and rejections as implicit feedback.

Common mistakes. Collecting feedback nobody reviews. Long feedback forms.

Pattern 10: Make AI features accessible

AI interfaces add dynamic content, such as streamed text and live status updates, that is easy to overlook in accessibility testing. WCAG 2.2, the current W3C Recommendation, has several success criteria that apply directly:

  • 4.1.3 Status Messages (AA). Status messages must be exposed to assistive technologies without moving focus. Agent progress ("Drafting 3 of 12"), "Response ready" and error notices are status messages, so screen reader users need to hear them.
  • 2.2.2 Pause, Stop, Hide (A). Information that updates automatically alongside other content needs a way to pause, stop or hide it, or to control how often it updates. Moving or scrolling content that lasts more than five seconds needs the same. Think of live agent activity feeds.
  • 2.4.11 Focus Not Obscured (Minimum) (AA). A sticky chat composer or floating assistant panel must not completely hide the element that has keyboard focus.
  • 2.5.8 Target Size (Minimum) (AA). Pointer targets such as thumbs, copy and stop buttons need to be at least 24 by 24 CSS pixels, with some exceptions.
  • 1.4.3 Contrast (Minimum) (AA). Text, including muted "AI-generated" labels and citation links, needs a contrast ratio of at least 4.5:1 (3:1 for large text).

We also recommend not announcing every streamed token to screen readers: announce when a response starts and finishes.

Checklist: UX design for AI products

  • The empty state shows what the feature can do, with examples, and states key limits.
  • You've decided chat vs embedded for each use case, and chat gets page context automatically.
  • Factual answers link to their sources; recommendations have a "why".
  • Uncertainty is signalled in plain language, and confidence displays have been tested with users.
  • Every AI output can be accepted, edited, dismissed and undone.
  • Long responses stream; agents show steps, final status and a working cancel.
  • Irreversible or external actions need human approval, with clear details.
  • "I don't know" and failure states offer a next step or a human handoff.
  • Feedback is quick to give, and someone reviews it.
  • Status messages, focus, target size and contrast meet WCAG 2.2 AA.

Next steps

Pine Technologies offers UI/UX design services that integrate AI and ML, so the patterns above can be designed together with the model and agent logic. For an end-to-end partner, see our UX design services and UI design services. For agents, our AI agent development team can build the back end.

Prefer a designer on your own team? Hire UX designers or hire Figma designers from $1,500 to $3,500 a month all-in, depending on seniority. We present pre-vetted candidates within 48 hours, you interview them and choose who joins, and you can start with a free test task.

Frequently Asked Questions

When should an AI feature be a chat, and when should it be embedded in the UI?

Use chat when the task is open-ended and the user cannot easily pick from a list, such as asking questions across a knowledge base. Embed AI in the existing UI when the task is well defined, such as summarising a ticket or drafting a reply, so users get a button in the place they already work instead of having to write a prompt. Many products benefit from both.

How do you design an AI feature people can trust?

Aim for calibrated trust, not maximum trust: users should know when to rely on the AI and when to check it. In practice that means stating what the feature can and cannot do, showing sources for factual answers, signalling uncertainty in plain language, and making every AI output easy to edit, reject or undo. For risky actions, require a human to approve before anything happens.

Which AI UX patterns matter most in a SaaS product?

The patterns that keep users in control tend to matter most: accept, reject and edit on every suggestion, undo, clear progress while an agent works, approval steps for irreversible actions, and honest error states that offer a next step. Published guidance such as Microsoft's Guidelines for Human-AI Interaction and Google's People + AI Guidebook covers the same ground and is a good checklist to design against.