Generative UI
How an answer becomes a page of native components.
An answer is a page: an ordered list of up to twelve blocks, each one component from a typed catalog, with validated props and a required fallback_text used for accessibility and graceful degradation.
See what it looks like to your customers and your team: Answers.
The catalog
Forty-two components ship in the current catalog. The model can draw forty of them; the other two, confirm_card and action_done, only the server builds. Both SDKs draw all of them:
| Component | What it is for |
|---|---|
text | Plain prose, and the only block that streams. |
info_card | Icon, title, body and one optional action. |
media_gallery | An image grid or a carousel. |
article_card | A retrieved passage with its source named. |
status_banner | A success, info, warning or error notice. |
section | A heading for the blocks after it, on an answer page. |
key_points | A few points, each an icon, a title and a line: the reasons behind a pick. |
tags | A few words that characterise one thing at a glance. |
disclosure | Secondary detail folded under titles: FAQs, terms, technical notes. |
place_card | A place the user can go to: open now, how far, and the way there. |
map | Places on a map: stores nearby, a route, where the courier is. |
pass | Something the user shows: a ticket, a boarding pass, a pickup code, a coupon. |
code | Code, a command or log lines, monospaced, with a copy button. |
steps | Instructions read in order: numbered steps on a rail, with nothing to tick. |
offers | The coupons and campaigns a person holds, a ticket each, with a code to copy. |
quick_replies | Up to six suggestion chips. Each tap sends a reply. |
item_list | Tappable rows with a thumbnail and a trailing value. |
product_cards | One product card, or a rail of them. |
datetime_slots | Tappable availability, grouped by day. |
variant_picker | One choice out of a set that differs by size, colour or capacity. |
choice | A question the user answers by tapping: one pick, or several. |
comparison | Two to four things on the same rows, read side by side. |
form | Typed fields and one submit, returned as a form submission. |
booking_card | A reservation summary: what, when, where, its reference. |
actions | One or two buttons for what to do about the thing on screen. |
screens | Screens of your app to open from the answer, from the routes you registered. |
contact | How to reach a person at your company, with the channels you listed. |
rating | Your app's own question about how something went, answered with a tap. |
checklist | Steps the user ticks off themselves. |
cart | A basket the user changes in place: a stepper on each line, a subtotal that follows. |
confirm_card | Server-built approval for a write or destructive action. |
action_done | One line saying what a reversible change did, with Undo. |
stat_group | Up to six KPIs with optional deltas. |
chart | Line, area, bar, horizontal bar, stacked bar or donut, up to three series. |
table | Up to six columns and twenty rows, first column sticky. |
order_tracker | A step timeline with done, current and pending. |
receipt | Line items, subtotal, tax and total. |
key_value | Label-and-value rows: the facts about one thing. |
progress | Value against a limit, when the proportion is the answer. |
timeline | Planned things in time order: an agenda, an itinerary, a schedule. |
journey | A trip's legs: where from, where to, when, and what changed. |
gauge | One reading on a scale of named bands, drawn as a half dial. |
The component catalog has a page per block: props, a wire example, its interaction behaviour and its states.
confirm_card is special: it is synthesized by our servers from your action's template, never generated by the model. A hallucination cannot misrepresent what the user is approving. action_done is the server's too: the line, with Undo, that takes a card's place when a write that can be taken back has already run.
Streaming
Text streams token by token. Components are block-atomic: the SDK draws a typed skeleton the moment a block is announced, then hydrates it in one step once the block validates. You get perceived speed without half-rendered widgets.
Pages and details
Each question gets a screen of its own. The question is written over the old page, and the new page builds block by block under a status pill that names the step. The last block is the foot of the page, often a few ways on as quick_replies. Back and forward move between the pages this session opened.
Tapping a product_cards or item_list item opens its detail: a sheet slides up over the page, and its head (picture, title, subtitle) is drawn at once from the card itself. The SDK asks the question with detail_of set to that card, and the answer fills the sheet: a summary, tags, up to two actions (the first is also lit beside the microphone), then ordinary page blocks. An item whose action is open_url still opens its link. Closing the sheet returns the page exactly as it was. Opening the same card again shows the detail already fetched, with no new request.
A card that shows a thing with a picture (a product, a hotel, a room, a place) always shows its picture. Rendel takes it from your actions' results: an action always passes on its items' picture fields, even when the fields you chose for it to return leave them out, and a card the answer left without a picture gets the one of the record with the same name. When a list endpoint returns no pictures but another of your actions does (a detail or media endpoint), Rendel calls that action for the items it shows before it answers. A confirmation card about one thing (publishing a draft, deleting a saved post) shows that thing's picture the same way: when only its number is in hand, Rendel reads it from your detail action first. When the thing was made from a photo the person attached in the chat (a draft made from their photo), the card shows that photo. A picture is only ever an https address one of your actions returned, or a photo the person attached.
Screens that update in place
Part of a page can change without a new page.
Forms. When Rendel redraws a form the user has not sent yet, with the same form_id, the new form takes the old one's place. Every answer the user gave for a field that is still there stays; a field they changed themselves keeps their value whatever Rendel now proposes; a field the new form no longer has goes away. Each question also carries what is in the open forms, so "actually, refund it to store credit" reshapes the return form around the order and reason already chosen. A form that was sent is never replaced.
Any block, by surface. Rendel can name something on screen that may change, a cart, a list being narrowed, an order's status, with a surface_id. A later block with the same id replaces it. The server numbers each redraw (revision), and the SDK keeps the newest: a retried or resumed stream that delivers an older version late cannot undo a newer one. A choice the user made on the old block (a size in a variant picker, a time slot) is kept if the new block still offers it. A conversation names at most eight surfaces.
Both SDKs declare these in their handshake (form_update, surface_update), and the server tells the model about them only when they are declared.
Picking is not typing
Tapping an option on variant_picker, datetime_slots or choice sends no words. The SDK sends a selection: the block's id and the ids of what was picked, plus other_text when the user wrote their own answer in a choice. The question overlay still shows a readable question ("Size: 43"). The server checks the selection against the block it drew. An id it did not offer, an option shown as unavailable, a block a newer revision replaced, or one already answered is refused with an invalid_request whose message is already in the user's language. The model gets back the ids it wrote, so it never has to work out from a label which option was meant. While a turn is running, taps do nothing.
A rating is different: its answer goes to POST /v1/ratings and starts no turn. The server lets the model ask once per conversation at most, and never on a page that still asks the user for something.
What each turn is offered
Every request carries the SDK's handshake. It lists the components the build draws (a name may carry a version, form@2, though no block has a version 2 yet), the behaviours it has (form_update, surface_update, answer_pages, detail_pages, notices, card_fill, and read_aloud when it will read the answer aloud) and the kinds of tap it carries out (reply, open_url, navigate, call, copy, add_to_calendar). Names the server does not know are ignored, not refused, so a newer SDK on an older server loses one block, not the conversation. The model is never offered a component the build did not declare, and a block carrying a tap the build cannot carry out is sent as its fallback_text, so there is no dead button.
Within that, each turn is shown only what it is likely to need. The page's own blocks are always there (text, section, key_points, quick_replies, actions, tags, info_card, status_banner, screens, choice, contact, rating). On top of those, the router picks families for the question: shopping, data, booking, tracking, knowledge, places, passes, planning. If the model draws a declared block from a family the router did not pick, it is still accepted.
Before 1.0 a prop can still change in place, and the changelog marks each time as Breaking. The handshake already carries a version per component, so later changes can be gated per build.
Grounding rule
The model is instructed to render only data it actually holds: action results, knowledge passages, app state. If it lacks data, it asks or calls a read action first. Blocks that fail validation degrade to text instead of shipping wrong UI.
Values the server checks
Some values are not taken on the model's word, because the user acts on them in the world. Each of these has to equal a field one of your actions returned earlier in this conversation, or a contact channel set in the console: the number on a call button or a place_card, a place's address and coordinates, a map pin, the times on add_to_calendar, a pass's code and wallet links, a copy value the same block does not already show, and a route param you marked fromActions. The match is on the whole field (digits for a phone, the instant for a time), never a substring. Knowledge passages and the model's own words never count, so a number planted in a help article is never one tap away. A block that fails is sent as its fallback_text. If a card should show a branch's phone number, return it from an action.