20.10 Screens the AI designs
- Approved by
- Panaversity ·
Going further. Named, not built.
In everyday life. A restaurant can print a fixed menu, let the chef pick from a list of approved dishes each day, or let the chef cook anything. Each gives more freedom and less control.
What you will learn. Three ways an AI can shape a screen, and the one most teams choose.
Why it matters. Someone will ask for "a screen the AI builds itself". You should know what that costs.
What are the three ways?
| Way | How it works | Freedom | Control |
|---|---|---|---|
| Fixed | You build the screen. The AI fills in the data, as in this chapter | Low | Highest |
| From approved parts | You list the parts the AI may use, such as a table, a card and a button. The AI writes a short description of which parts to show, and the page draws only those | Medium | High |
| Open | The AI writes the page itself, and the AI app shows it in the sandbox | Highest | Lowest |
The middle way is usually the right one. Brightline could approve five parts: an invoice card, a vendor card, a due-date list, a total, and a button that calls a tool. When Hannah asks for "the overdue ones, by vendor", the AI builds that screen from those five parts only.

Figure 20.11. Three ways an AI can shape a screen, from most control to most freedom.
How does the middle way work?
In four parts:
- A catalog. You list the parts the AI may use, and what each part can do.
- A description. The AI writes a short description that uses only parts from the catalog, and sends it as a tool's input.
- Streaming, if the AI app sends it. Some AI apps send the description while the AI is still writing it, so the screen fills in live. The page must also work without it.
- A registry. The page maps each part's name to real code, and draws it.
An open standard for this, A2UI, is the next lesson. The same rule holds for all three ways: every call the screen makes is checked like any other.
The operating rule: if the AI must shape the screen, let it choose from parts you approved, never write the page.
- Owner
- Panaversity