Beyond the chat bubble
Generative UI means the agent’s work shows up as real interface, not just text. When your Crew or Flow calls a tool, updates its state, or reasons about a problem, you decide what the user sees: a progress checklist, a recipe card, a chart, a whole assembled panel. CopilotKit renders generative UI along a spectrum, from fully author-controlled (you decide every pixel) to agent-invented (the agent assembles the surface):
The tiers compose freely; a single app usually mixes them.
Controlled
You own the components. The agent chooses which to show and with what data. This is the most predictable tier and where most apps start.Tool rendering
The agent calls a tool on the backend. You register a matching component on the frontend withuseRenderTool, and CopilotKit renders it, streaming the arguments in as they arrive.
useRenderTool renders a tool call. When a tool also needs to run code in the browser, use useFrontendTool (a handler, with optional render).State rendering
Instead of reacting to a single tool call, render the agent’s state as it changes. This is the right pattern for multi-step work: read the agent’s working state withuseAgent and paint it however you like.
Reasoning
When the model reasons before answering, that thinking renders in the chat automatically. No component to write. See Reasoning.Declarative
The agent goes beyond picking a component: it assembles a surface by combining building blocks from a catalog you define. You still own the components (the agent can only use what is in your catalog), but the layout is the agent’s. This is A2UI. You register a catalog on the provider:Open-ended
At the far end, the surface is invented outside your app entirely. For CrewAI this comes through MCP: tools served by an MCP server the agent connects to render as tool calls in the chat, the same way backend tools do. This is the least constrained and the least predictable tier. MCP tool calls surface as standard tool-call UI — render them withuseRenderTool like any other tool. Full agent-invented “MCP App” surfaces are an emerging capability; see the CopilotKit docs for the current state.
Related
Tool-Based Generative UI
Map agent tool calls to components (controlled).
Agentic Generative UI
Render live agent state (controlled).
A2UI
Let the agent assemble surfaces from your catalog (declarative).
Reasoning
Render the agent’s thinking.
