Quickstart
A2UI lets an AI agent answer with an interface instead of a paragraph: cards your users can tap, dates they can drag, a panel that keeps up with them.
This quickstart runs Travel A2UI, a small trip planner built on the official A2UI SDKs. It is simple on purpose: one Python server holds the agent, and a React client (web) and a Flutter client (mobile) draw what it sends.
Paste it into Antigravity, Claude Code, Codex, Cursor or any coding agent that can read a web page. It runs three commands, then explains how A2UI works with the apps open.
How A2UI fits into this app
A2UI is an SDK for your agent and a renderer for your app. Here is where each part lives in Travel A2UI:
A2UI Architecture & Pipeline Overview
catalog.json: the UI components and functions available to render on the client.
catalogs/a2ui-travel/catalog.json Your APIs and data, such as flight search and booking.
data/tools.json Turns the catalog into an A2UI skill with prompt instructions and grammar rules.
scripts/build_skills.py → skills/ Parses model output, checks it against the catalog, and emits wire messages.
apps/server/src/travel_a2ui/brain/catalog.py Calls your tools and the model (GenAI SDK, ADK, A2A, Anthropic, OpenAI, LangChain), then hands the model's UI output to the compiler.
apps/server/src/travel_a2ui/brain/ updateComponents ↓ updateDataModel ↑ action The screen, navigation, and chat. Everything outside the surface is yours.
apps/web/ · apps/flutter/
Draws the surface with native widgets. Bound values update locally; taps send action messages.
renderers/react/ · renderers/flutter/ One server serves the API, the React app at / and the Flutter app at
/flutter/. The clients know nothing about travel: each knows how to draw the
catalog’s components. You, the builder, decide what is in the catalog; the
agent decides what to draw from it. How A2UI works
walks through the same picture for any A2UI app.
What you will learn
Once it runs, your agent (or the step-by-step walkthrough) explains, with the app open:
- What on screen is A2UI and what is ordinary app code: surfaces, the components in them, and the data they show.
- The catalog: the components and client functions the agent may use, and why it is the guardrail.
- Agent skills: how the model is taught to write A2UI for the catalog.
- What the model writes versus what the client receives: A2UI Express, the A2UI messages the agent SDK turns it into, and the MessageProcessor that applies them.
- Renderers: the two here, and the others A2UI has.
Other fast paths
To try A2UI without cloning anything:
- Agent skills: run
npx skills add a2ui-project/a2uiin your project to give your coding agent A2UI’s protocol rules, SDK integration guides and catalog authoring workflows (see Get Help). - A2UI Composer (source): a visual workspace for prompting an assistant, inspecting streamed messages and
dataModelupdates, and editing surfaces side by side. - A2UI Playground: a browser sandbox for trying A2UI prompts and component catalogs with no local setup.