AI
Google's A2UI Standard Lets Agents Build Rich Interactive Interfaces on the Fly
A new framework-agnostic protocol transforms AI agent-to-user interactions from text-only to dynamic, component-driven UIs rendered in real time.
Google Developers Blog (AI)
For years, AI agents could plan complex workflows but only communicate results as plain text. A user might ask an agent to find a holiday package to Bali, and receive six lengthy paragraphs describing each option—no maps, no date pickers, no clickable results. That gap is now closing with Generative UI, a paradigm that lets agents design interfaces on demand, tailored to what each task requires.
How Generative UI Works#
The approach requires two components: a standard way for agents to describe interfaces, and a runtime that connects agents to applications and renders what they create. Google's A2UI (Agent-to-UI) supplies both. Rather than hard-coding UI in advance, agents describe interfaces as data structures, and applications render them using components already in place. This model supports everything from tightly controlled, pre-built components to completely open-ended code generation.
CopilotKit, which builds on the broader AG-UI (Agent-User Interaction Protocol), provides the integration layer. It lets you connect popular agentic frameworks—including Google ADK, LangChain, Mastra, and Strands—without changes to your setup, and stream user interfaces directly to the client as they're generated.
Key Features: Security and Speed#
A2UI prioritizes safety: it's a declarative data format, not executable code. The client maintains a catalog of trusted components; anything the agent attempts to create outside that whitelist is blocked before reaching the screen. This eliminates the risk of arbitrary code execution while preserving flexibility for custom UI.
The protocol is also LLM-friendly: payloads consist of small, flat JSON messages referencing one another by ID, so agents can emit them incrementally and clients render components as they arrive. No waiting for a complete response.
Flexibility Across Platforms#
A2UI is framework and platform agnostic. The same response works across React, Lit, Angular, SwiftUI, Jetpack Compose, Flutter, and community renderers for Vue or even terminals. Frontend teams ship building blocks once; agents compose them for each request.
The Basic Catalog includes 18 general-purpose primitives for layout, display, input, and containers. Most production apps define custom catalogs—mapping components the agent can use to actual React, Vue, or native UI elements already in the application. An agent might instruct a map component to populate with coordinates while your renderer draws the route.

