Concepts

How it works

Three layers turn a sentence into rendered UI and executed actions.

Every turn moves through three layers:

The anatomy of one turn: a POST opens an event stream, the stream ends when the server needs the device, and the device answers with another POST.On the device“Where is my order?”POST /v1/chatOn our serversRedact, retrieve, routeEmails and phone numbers users typebecome placeholdersHaiku for a simple turn, Sonnet for a hard onethe turnBlocks, streamedblock.start · delta · readyturn.end awaiting_tool_resultstext/event-streamNative componentsdrawn by your app, not a web viewIf the turn asked for somethingThe user confirmsfor a write or destructiveaction; a read skips thisYour handler runsin your app, as your user, or onour server for a console actionThe next turntool_resultsSame conversation, same id, and the usage row was written once.A retry carrying the same turn_id is not a second turn.
One turn is one POST, one stream, and one row of usage. The stream ends whenever the server needs something from the device; the device answers by opening the next one. Nothing is held open waiting.
  1. Answer surface. The branded launcher and Rendel's screen. The question is written over the screen, not kept as a message. The answer arrives as a page of its own, block by block, while a status pill says what the turn is doing. Tapping a product or list card opens it as a detail sheet over the page, and back and forward move between the pages this session has opened.
  2. Generative UI engine. The model composes an answer from a typed component catalog. The server validates every block against the catalog schema before it ever reaches the device; the SDK never renders raw model output.
  3. Action engine. Actions you register in code run inside your app with the user's own session. Endpoints you tick in the console are called by our server, and they change something only as the signed-in user. Either way Rendel proposes, a write waits for the user's tap (unless it names the action that undoes it: then it runs at once, with an Undo in the answer), and your code or your API performs it.

The request lifecycle

question, form, selection or action results   (one POST /v1/chat)
  -> gate        key, allowed domain, rate limits, quota
  -> redact      emails and phones to placeholders; card and ID numbers dropped
  -> classify    fast or frontier model; which component families this turn needs
  -> ground      knowledge (when needed) + app state + open forms + the card a detail was opened from
  -> generate    render_ui (the page's blocks + those families) + your actions
  -> validate    per block: schema, tap kinds the build declared, routes,
                 values from action results, console switches (uploads, contact channels),
                 one rating per conversation; a failure is sent as its fallback_text
  -> render      a page, block by block, native on the device
  -> act         reads, and writes with an undo, run at once;
                 other writes wait for a confirmation card;
                 results come back on the next POST

The stream closes whenever Rendel needs something from the device (an action result, a confirmation). The SDK answers with a continuation request. Mobile networks drop connections; this design makes that boring instead of fatal.

What Rendel cannot do

  • Call anything that is not an action you registered in code or enabled in the console, or open a screen you did not register with registerRoute.
  • Execute a destructive action, or a write that names no undo, without the user tapping a confirmation card. A write that names the action that undoes it runs at once, and the answer offers Undo for ten minutes.
  • See the raw emails or phone numbers users type in their messages: they become typed placeholders before the model call, and the real values go back only to the device that owns the conversation, never into a link. Card numbers are dropped outright and never come back. See redaction.
  • Render UI that failed schema validation: invalid blocks degrade to their plain-text fallback.
  • Put a phone number, address, map pin, pass code, calendar time or fromActions route param in front of the user unless one of your actions returned it (or, for a phone number, it is a contact channel set in the console).