Concepts

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:

ComponentWhat it is for
textPlain prose, and the only block that streams.
info_cardIcon, title, body and one optional action.
media_galleryAn image grid or a carousel.
article_cardA retrieved passage with its source named.
status_bannerA success, info, warning or error notice.
sectionA heading for the blocks after it, on an answer page.
key_pointsA few points, each an icon, a title and a line: the reasons behind a pick.
tagsA few words that characterise one thing at a glance.
disclosureSecondary detail folded under titles: FAQs, terms, technical notes.
place_cardA place the user can go to: open now, how far, and the way there.
mapPlaces on a map: stores nearby, a route, where the courier is.
passSomething the user shows: a ticket, a boarding pass, a pickup code, a coupon.
codeCode, a command or log lines, monospaced, with a copy button.
stepsInstructions read in order: numbered steps on a rail, with nothing to tick.
offersThe coupons and campaigns a person holds, a ticket each, with a code to copy.
quick_repliesUp to six suggestion chips. Each tap sends a reply.
item_listTappable rows with a thumbnail and a trailing value.
product_cardsOne product card, or a rail of them.
datetime_slotsTappable availability, grouped by day.
variant_pickerOne choice out of a set that differs by size, colour or capacity.
choiceA question the user answers by tapping: one pick, or several.
comparisonTwo to four things on the same rows, read side by side.
formTyped fields and one submit, returned as a form submission.
booking_cardA reservation summary: what, when, where, its reference.
actionsOne or two buttons for what to do about the thing on screen.
screensScreens of your app to open from the answer, from the routes you registered.
contactHow to reach a person at your company, with the channels you listed.
ratingYour app's own question about how something went, answered with a tap.
checklistSteps the user ticks off themselves.
cartA basket the user changes in place: a stepper on each line, a subtotal that follows.
confirm_cardServer-built approval for a write or destructive action.
action_doneOne line saying what a reversible change did, with Undo.
stat_groupUp to six KPIs with optional deltas.
chartLine, area, bar, horizontal bar, stacked bar or donut, up to three series.
tableUp to six columns and twenty rows, first column sticky.
order_trackerA step timeline with done, current and pending.
receiptLine items, subtotal, tax and total.
key_valueLabel-and-value rows: the facts about one thing.
progressValue against a limit, when the proportion is the answer.
timelinePlanned things in time order: an agenda, an itinerary, a schedule.
journeyA trip's legs: where from, where to, when, and what changed.
gaugeOne 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.