Learning Center

Generative UI

Generative UI builds the interface for each visit at request time instead of shipping one fixed layout. These explainers cover what it is, how it differs from server-driven UI and A/B testing, and why it needs real-time state to be worth doing.

The real engine · no card · no sales call

In this topic

What is generative UI?

Generative UI is an interface assembled for each request instead of shipped as one fixed layout. Rules or a model decide what to render from data about the visit, so two people can see different screens from the same code and the same components.

Generative UI vs server-driven UI

Server-driven UI is a delivery method, where the server sends a description of the screen and the app draws it from components it already ships. Generative UI is a way of deciding that description for each visit, with rules or a model reading data about the visitor. Most generative UI is built on server-driven UI, so the two usually work together.

What is an adaptive experience?

An adaptive experience, often called an adaptive UI or adaptive user interface, is an interface that changes within a visit in response to what the person is doing. It reads the actions of the current session, such as a comparison, a skipped step or a failed search, and adjusts what it shows before the visit ends rather than on the next one.

Why generative UI needs real-time state

Generative UI needs real-time state because the model composing the screen can only respond to what its input says about the visitor. If that input was computed before the visit, the model assembles a confident, well-formed screen for someone who is no longer there. Real-time state, updated as the visitor acts, is what lets a generated interface follow the visit it is generated for.

json-render explained: Vercel's generative UI library

json-render is an open source library from Vercel for generative UI. You define a catalog of your own components with typed props, a model returns a JSON spec that uses only those components, and json-render renders it natively in your app. The model never writes markup, so the screen cannot contain anything you did not ship.

Generative UI vs static A/B testing

Generative UI vs static A/B testing is a choice about who gets which page. A static A/B test splits traffic between a few fixed variants to find the one that works best on average, while generative UI assembles the page for each visit from what that visitor is doing. Generative UI does not replace the test, because you still need a control group to know whether the generated page beats the static one.

Building generative UI with an AI agent

Building generative UI with an AI agent means giving a model a catalog of your components, a tool it calls to return a UI spec, and the live state of the visit to decide from. Your code validates the spec, renders it or falls back to a default, and measures the result against visitors who saw the fixed page.

Start with the free tier

Read the ideas, then put them to work: add the SDK, define one attribute, and see an attribute updating against your own traffic in the first session. The free tier runs on the real engine: no card, no sales call.