Generative UI

Generative UI (GenUI) is an AI UX pattern where the model produces interactive interface elements (cards, forms, tables, charts, or controls) instead of (or in addition to) plain text. Users act on structured output in place, closing the gap between answer and next step.

Share

Interactive demo

Enter a prompt to generate UI

Overview

The design problem

How might we design generative ui so people can trust and act on AI output?

Use this pattern

When this pattern fits

  • Perfect for rapid prototyping tools, design systems, dashboard builders, and low-code platforms where speed from concept to UI is critical.

Avoid this pattern

When to skip or lighten it

  • Simple Q&A where text is enough and generated widgets add noise.
  • Strict design-system products that cannot safely render arbitrary generated components.
  • High-security forms where model-authored fields would be unpredictable or unsafe.

States

State model coming soon

Key UX elements

Key UX elements coming soon

Anti-patterns to avoid

  • Generating non-interactive mock UI that looks clickable but does nothing.

  • Inconsistent components that break layout or accessibility every turn.

  • No way to fall back to text or copy structured results out of the widget.

  • Regenerating the whole UI on every keystroke with no stable state.

How products use it

ProductImplementation
ChatGPTCan render interactive canvases, tables, and app-like blocks inside chat.
GeminiProduces structured maps, tables, and actionable layouts for research and planning.
Vercel / AI SDK demosStreams generative UI components tied to tool results.
CursorSurfaces interactive diffs, plans, and structured agent artifacts beyond plain chat.

Real-world examples

How shipped products implement generative ui, from our teardown guides.

All teardowns

Implementation

Copy this prompt to generate a production-ready implementation in Cursor, Claude Code, Lovable, or any AI coding agent.

Generate a production-ready implementation of the "Generative UI" AI interface design pattern.

Pattern Definition:

Frequently asked questions

What is generative UI?

Generative UI means the AI outputs interactive interface pieces (forms, cards, tables, charts, or controls) so users can act on results in the product instead of only reading prose.

When should I use GenUI instead of markdown?

Use GenUI when the next user action is clearer as a control (pick an option, edit a field, sort a table) than as copied text. Prefer markdown for explanations, narratives, and copy-out answers.

What are the main GenUI risks?

Unstable layouts, inaccessible controls, unsafe generated actions, and widgets that look interactive but are not. Constrain components to a trusted design system and keep a text fallback.

Weekly AI UX in your inbox

Weekly AI interface UX notes and resources on Substack, no spam, unsubscribe anytime.

Subscribe on Substack