Generative UI Specs

Widget Builder ↗

Explore three approaches to building AI-powered user interfaces with CopilotKit

Static GenUI

Pre-built React components rendered by the frontend when tools are called.

MCP Apps

HTML/JS apps served by MCP servers, rendered in sandboxed iframes.

A2UI

Agent-composed declarative JSON UI, rendered dynamically at runtime.

Static GenUI

Features
React components via useRenderToolCall
Best For
Type-safe, customizable UI patterns
Example
Weather cards, stock tickers, approval flows

MCP Apps

Features
HTML apps in sandboxed iframes
Best For
Rich interactive apps, isolation
Example
Flight booking, trading simulator

A2UI

Features
Declarative JSON → Lit components
Best For
Agent-composed UI, cross-framework
Example
Restaurant finder, dynamic forms

Try these prompts in the chat: