---
title: "Build Generative UI Apps with A2UI & CopilotKit Agents"
description: "Agent conversations historically returned text-only responses, lacking interactive UI for complex tasks like booking flights. A2UI is Google’s open standard for Generative UI, letting agents declare UI intent as declarative data rather than executable code, ensuring security through a client-side component catalog. CopilotKit provides the integration stack, using the AG-UI protocol to connect agent frameworks like Google ADK and LangChain to frontends, rendering A2UI surfaces across React, Angular, Vue, and Slack. Setup requires defining component schemas with Zod on the client and registering them with the CopilotKit provider, while the agent emits A2UI operations that stream as typed events with self-healing. Bi-directional surfaces enable multi-step flows by sending user inputs back along the stream, with client-side validation catching errors before reaching the agent."
---

# Build Generative UI Apps with A2UI & CopilotKit Agents

[Google](https://yomu.fyi/company/google) · Google A2UI Team, Atai Barkai · Oct 29, 2026

**Type:** Tutorial

## Summary

Agent conversations historically returned text-only responses, lacking interactive UI for complex tasks like booking flights. A2UI is Google’s open standard for Generative UI, letting agents declare UI intent as declarative data rather than executable code, ensuring security through a client-side component catalog. CopilotKit provides the integration stack, using the AG-UI protocol to connect agent frameworks like Google ADK and LangChain to frontends, rendering A2UI surfaces across React, Angular, Vue, and Slack. Setup requires defining component schemas with Zod on the client and registering them with the CopilotKit provider, while the agent emits A2UI operations that stream as typed events with self-healing. Bi-directional surfaces enable multi-step flows by sending user inputs back along the stream, with client-side validation catching errors before reaching the agent.

## Context

Agent responses have been limited to text, making complex interactions cumbersome. Generative UI allows agents to render interfaces at runtime, but requires a standard for UI description and an integration stack to connect agents to frontends. A2UI and CopilotKit provide this by declaring UI intent as data and streaming it via AG-UI protocol.

## Approach / What changed

Integrate A2UI with CopilotKit by defining a component catalog on the client using Zod schemas, connecting the agent via AG-UI protocol (e.g., Google ADK wrapped with ag\_ui\_adk), and enabling bi-directional streaming of A2UI operations for interactive multi-step flows with client-side validation and self-healing.

## Takeaways

- A2UI is a declarative data format, not executable code, so it maintains security by relying on a client-side catalog of trusted components.
- CopilotKit uses the AG-UI protocol to connect agent frameworks like Google ADK and LangChain, enabling A2UI rendering across React, Angular, Vue, and Slack.
- Bi-directional A2UI surfaces allow user interactions to be sent back to the agent, enabling multi-step flows with client-side validation and self-healing of invalid generations.

## FAQ

### How does A2UI ensure security?

A2UI is a declarative data format rather than executable code. The client maintains a catalog of trusted components, so any component outside that set is caught before rendering.

### Which frontend frameworks are supported for A2UI rendering?

CopilotKit provides renderers for React and Angular, and community renderers for Vue and Slack. The A2UI standard also supports Flutter, Lit, SwiftUI, Jetpack Compose, and terminal.

### What is the role of AG-UI protocol?

AG-UI (Agent-User Interaction Protocol) carries A2UI operations from the agent to the client as typed events, and returns user actions back along the same stream. It works with any AG-UI compatible agent framework.

**Tags:** [A2UI](https://yomu.fyi/topic/a2ui), [CopilotKit](https://yomu.fyi/topic/copilotkit), [Generative UI](https://yomu.fyi/topic/generative-ui)

- Source: [Google](https://developers.googleblog.com/build-generative-ui-apps-with-a2ui-copilotkit-agents)
- Source URL: https://developers.googleblog.com/build-generative-ui-apps-with-a2ui-copilotkit-agents
- Ingested by Yomu: 2026-10-29T21:00:15.607Z

[Read original post](https://developers.googleblog.com/build-generative-ui-apps-with-a2ui-copilotkit-agents)
