Generative UI

Agent can dynamically generate interfaces instead of text dialogue: forms to refine intent (all information gathered in one submission instead of ten rounds), data artifacts. Artifact pattern: LLM generates SQL/visualization code, system executes it directly, data goes from DB to frontend bypassing LLM — faster and more accurate than model retelling thousands of lines. Security: declarative protocols (A2UI) — agent issues a JSON description of the interface, client renders with trusted components; direct HTML generation carries XSS risk.

Related: [Code as a meta-skill], [Prompt injection]