Design, code and digital craft

, ,

AI Chat Interface Design: Patterns That Beat the Chatbot Wrapper

Sophie Davis Avatar

What actually separates a polished LLM product from a chatbot wrapper? Mostly the boring bits: how text arrives, what happens when the model fails, and whether the interface admits what it doesn’t know. Good AI chat interface design is ordinary product design applied to a very unreliable back end.

I haven’t tested every UK launch, so this isn’t a review of named products. It’s a set of patterns I’d check any LLM interface against, each with a concrete example you can steal.

Designer reviewing an AI chat interface design on a laptop in a studio
Photo by kaboompics on Pexels

1. Don’t make the blank box do all the work

A lone text input with a blinking cursor is a terrible onboarding experience. Users don’t know what the thing can do, so they type "hello" and leave. Offer three to five starter prompts tied to real tasks. Say you run a invoicing tool: "Which invoices are overdue?" beats "Ask me anything". Starter prompts are the empty state of a conversational UI, and the same logic applies as in our piece on designing effective empty states.

2. Use structured output where chat is the wrong shape

Not every answer is a paragraph. If the model returns a comparison, render a table. If it proposes an action, render a button. Have the model emit JSON against a schema and map it to components, rather than parsing markdown and hoping. A booking assistant that returns three time slots as tappable chips is faster than one that writes "I have 2pm, 3pm or 4pm available" and waits for you to type "3pm".

3. How should streaming responses be designed?

Stream tokens as they arrive, but design the stream rather than just piping it to the DOM. Raw streaming makes layout jump, because markdown renders half-finished: an unclosed code fence swallows the page, a table collapses into pipes. Buffer to sensible boundaries, such as whole words or completed list items, and reserve space so the page doesn’t shift under the reader’s eyes.

  • Keep the scroll position stable if the user scrolls up mid-stream; only auto-scroll when they are already at the bottom.
  • Show a visible stop button while generating, and make it the same place as the send button.
  • Respect prefers-reduced-motion: offer instant rendering instead of a typewriter effect.
  • Announce completion to screen readers with an aria-live region, but not every token, or you’ll read the whole answer out as confetti.

4. Design the wait before the first token

Time to first token is the latency users feel. If the model is retrieving documents or calling tools first, say so: "Searching your policies" is far better than three bouncing dots. Each named step is a small promise that something is happening, and it makes a ten-second wait feel purposeful.

5. Show sources, not just confidence

Citations are the strongest trust cue available. When an answer draws on documents, attach numbered references that open the exact passage, not just the file. Avoid decorative "confidence scores": a model’s percentage is rarely calibrated, and a fake-precise number is worse than none. If the answer has no source, say it is generated from general knowledge.

6. Make error states specific

LLM products fail in more ways than a normal form: rate limits, timeouts, content filters, tool failures, dropped streams. "Something went wrong" covers all of them badly. Map each failure to a message and a next step:

Failure What to show
Stream drops mid-answer Keep the partial text, label it incomplete, offer "Continue"
Timeout Offer retry and keep the user’s prompt in the input
Content filter Explain what couldn’t be done and suggest a rephrase
Tool or API failure Name the service that failed and what still works

Never discard the user’s prompt. Retyping a long message is the fastest way to lose someone. More general principles are in our guide to error message UX for SaaS.

Hand holding a phone showing a chat app with message bubbles
Photo by Amarnath Radhakrishnan on Pexels

7. Let people edit, regenerate and branch

A transcript is not a sacred document. Let users edit an earlier message and rerun from there, regenerate an answer, and copy it cleanly. Branching history, with a small "2 of 3" switcher on a message, stops people opening new chats just to try a different wording.

8. Be honest that it’s a machine

Give the assistant a clear visual identity, not a fake human avatar and a typing delay. Label it plainly. For UK products handling personal data, link to a short explanation of what is stored and whether conversations are used for training. The ICO publishes guidance on AI and data protection at the Information Commissioner’s Office, and a plain-English privacy note beside the input does more for trust than a badge ever will.

9. Build the plumbing properly

Much of what feels polished is engineering: retries with backoff, resumable streams, tool-call handling, evaluation and logging. Teams without that capacity often bring in specialists, and if you want help with the build side, Dijitul Developments is one place to look. Whoever builds it, get the design tokens and component states agreed first, so message bubbles, citations and error banners share one system, as in our Style Dictionary walkthrough.

10. Test with ugly prompts

Demo prompts are tidy. Real ones are typo-ridden, 2,000 words long, pasted from a PDF or in another language. Run your interface against long inputs, empty replies, markdown the model shouldn’t have produced, and ten messages sent in a row. Log where the layout breaks and fix those cases before the launch post goes out.

Start with one change this week: audit your error states. List every way a response can fail, write the message and recovery step for each, and check the user’s prompt survives all of them.

Sophie Davis Avatar

Written by

Next in the queue

Leave a Reply

Your email address will not be published. Required fields are marked *