Generative UI with A2UI: From Google to TYPO3

A2UI reshapes how AI agents and users interact. Google's open-source protocol enables secure, cross-platform UI generation in real time, with a hands-on TYPO3 13/14 integration.

Overview

  • Text-based LLM dialogues break down on complex UX tasks, trapping users in inefficient back-and-forth exchanges.
  • The Google A2UI protocol defines how AI agents generate UI in real time via JSON, backed by a Component Registry and a security architecture.
  • Generative UI builds personalised interfaces for each user and context, rather than one static UI for everyone.
  • A TYPO3 extension brings A2UI to TYPO3 13/14 for enterprise CMS applications.

From Static Designs to Dynamic Experiences  

The way we design user interfaces is undergoing a fundamental shift. Traditional UI patterns, identical for every user, statically defined and manually optimised, are reaching their limits. Generative UI marks the move from designing for the many to generating dynamically for the individual.

The Nielsen Norman Group puts it precisely: GenUI is AI creating personalised interfaces in real time for user-specific experiences. Rather than developers coding one fixed UI for every use case, an AI agent composes the ideal interface for the task at hand, at the moment of interaction.


Table of Contents  


Video Introduction: Understanding GenUI  

Before we dive into the technical details, these two videos offer an excellent introduction to the topic.

Nielsen Norman Group: GenUI Explained  

The UX experts at the Nielsen Norman Group explain the concept of Generative UI and why it marks a paradigm shift in interface design.

Click loads YouTube (Privacy)

Video Content

Kate Moran and Sarah Gibbons discuss how AI generates personalised interfaces in real time. The video explains how traditional UI design differs from the GenUI approach: essential knowledge for UX designers and developers.

Google A2UI: Technical Deep Dive  

This tutorial shows Google's A2UI protocol in action, from the JSON structure through to concrete implementation examples.

Google A2UI: Agent-to-User Interface Protocol - YouTube thumbnail
Play video
Loads YouTube & sets cookies

Click loads YouTube (Privacy)

Recommendation

The video demonstrates how A2UI integrates with various frameworks. The sections on security architecture and the component registry pattern are especially relevant, and we will revisit them later in the TYPO3 integration.


The Efficiency Problem: Text-Based Agents Fail  

Text-based LLM dialogues work well for simple requests. In more complex scenarios, such as structured data entry or visualising multidimensional information, they degenerate into inefficient back-and-forth exchanges that pile significant cognitive load onto the user.

The Restaurant Booking Dilemma  

UX Failure on Multiple Levels

Multiple slow round trips: Every question-and-answer cycle costs time and raises the likelihood of abandonment.

Cognitive overload: Users have to mentally cross-reference a text list against their own availability, a classic failure that visual interfaces solved long ago.

Error-prone by design: Typos, confusion over time formats, and missing context all creep in.

The answer is not better text, but richer ways to communicate: a graphical calendar showing available slots, interactive sliders for party size, a map with table positions. This is exactly where A2UI comes in.


A2UI: The technical foundation for intelligent interfaces  

Agent-to-User Interface (A2UI) is an open-source protocol from Google that lets AI agents "speak UI". Instead of sending text alone, agents generate rich, interactive user interfaces that render natively inside the host application.

Four core principles  

Security First

Agents send data, not code. The client app keeps a catalogue of trusted, pre-approved UI components. LLM-generated code is never executed, which removes a critical attack surface.

LLM-Friendly

UI as a flat list with IDs: easy for LLMs to generate and update incrementally, with progressive rendering as the conversation unfolds.

Framework-Agnostic

One JSON payload, native rendering everywhere: web, Flutter, React, SwiftUI. The abstract UI structure stays separate from the concrete implementation.

Open & Flexible

Open Registry Pattern: developers plug in their own components, encapsulate their design system, and keep full control over sandboxing.

Architecture: From generation to rendering  

A2UI data flow: From agent to native user interface

The guiding principle: A2UI is "as secure as data, but as expressive as code", a decisive advantage for enterprise adoption.

JSON payload example  

The agent describes intent, not implementation. The client decides exactly what a date-picker looks like, guaranteeing perfect brand consistency.


Use Cases: From Concept to Practice  

Restaurant Finder with Interactive Map  

User Request

User asks: "Italian restaurants near me"

Agent Analyses

The LLM reads the context, works out the location, and searches for restaurants

UI Generation

Agent sends A2UI payload: Map component + filter list + detail cards

Native Interaction

The user filters in real time, opens Google Maps directly, and makes a reservation

Instead of a long text list, the user gets a dynamically generated, interactive results map. Every result links straight into Google Maps. The whole flow feels like a seamless, purpose-built app.

Three Key Categories  

Based on the context, an agent generates a tailored form with exactly the right input elements:

  • Service Booking: date picker, budget slider, dropdown for service type
  • Onboarding Process: conditional fields that appear only after specific answers
  • Feedback Collection: star ratings, text areas, multiple choice, all context-dependent

The form adapts to the conversation, not the other way around.

Agent-Client Communication in Detail  

Workflow of an A2UI-based interaction


A2UI in the Developer Ecosystem  

A2UI is not a standalone project but a specialised protocol within the fast-moving landscape of agent frameworks.

Technology Synergies  

Technology/ProtocolRole relative to A2UI
AG UI / CopilotKitFull-stack framework for agent apps. Provides the infrastructure for state synchronisation and communication, using A2UI as a message format.
A2A ProtocolTransport protocol for communication between agents across trust boundaries. A2UI messages can travel over A2A.
GenUI SDK for FlutterSDK for generative UI experiences in Flutter apps. Uses A2UI to declare UI when communicating with server-side agents.
REST / HTTPPlanned support for additional transport protocols, for greater interoperability and easy integration into existing systems.

A2A: The Sister Protocol for Agent-to-Agent Communication  

While A2UI governs communication between agent and human, Google's second protocol, Agent2Agent (A2A), handles communication between agents themselves. Together they form the foundation for a fully agent-driven architecture.

A2UI – Agent-to-User

Direction of communication: Agent → Human

Lets AI agents generate dynamic, native UI components shown to users in host applications. Focused on user experience and secure UI generation.

A2A – Agent-to-Agent

Direction of communication: Agent ↔ Agent

Lets AI agents from different frameworks or providers talk to one another, exchange information, and coordinate tasks.

A2A launched in April 2025 with the backing of more than 50 technology partners, including Atlassian, PayPal, Salesforce, SAP, ServiceNow, and Workday. The protocol builds on established standards such as HTTP, SSE, and JSON-RPC.

Interaction of A2A and A2UI in the agent ecosystem

A2A Design Principles

PrincipleDescription
Agentic CapabilitiesTrue multi-agent scenarios: agents collaborate in their natural, unstructured modalities, even without shared memory, tools, or context.
Existing StandardsBuilt on HTTP, SSE (Server-Sent Events), and JSON-RPC, which makes integration into existing IT stacks far simpler.
Enterprise SecurityEnterprise authentication and authorisation with parity to OpenAPI authentication schemes.
Long-Running TasksHandles everything from quick tasks to in-depth research spanning hours or days, with real-time feedback throughout.
Modality AgnosticNot limited to text: supports a range of modalities, including audio and video streaming.

Practical Example: Recruiting Workflow

A typical A2A scenario: a manager asks their agent to find candidates for a developer role:

  1. Main Agent receives the task and identifies specialised agents
  2. Sourcing Agent searches candidate databases
  3. Screening Agent evaluates qualifications
  4. Calendar Agent schedules interviews
  5. Background Check Agent conducts background checks

All agents communicate via A2A, while the UI output for the manager flows through A2UI: seamless orchestration across system boundaries.

Positioning: A2UI vs. Alternatives  

FeatureA2UIMCP AppsOpenAI ChatKit
Native UI Integration
Cross-platformLimited
Multi-agent transparentN/A
Full design controlLimited
Security modelWhitelistSandboxed iFrameVendor-controlled
Open Source

The key difference from MCP Apps: MCP treats UI as a resource (typically HTML in a sandboxed iframe). A2UI takes a "native-first" approach, so the UI blends seamlessly into the host app's styling. In multi-agent systems, an orchestrator can readily interpret the lightweight A2UI messages sent by a sub-agent.

Industry Voices  

These statements show how leading technology companies are already using A2UI in production:


Roadmap & Community Involvement  

A2UI was deliberately released early (version 0.8) to encourage open collaboration. The project invites you to help shape the future of agent-driven UI.

Official Roadmap to v1.0  

Spec Stabilization

Reaching a stable v1.0 specification for reliable production deployments

Additional Renderers

Official support for React, Jetpack Compose (Android), iOS (SwiftUI)

Additional Transports

REST, WebSocket, and other protocols for increased integration flexibility

Agent Framework Integration

Native integrations with Genkit, LangGraph, AutoGPT, and other frameworks

Open Source Repository  

Contribute now

As an Apache 2.0 project, A2UI's success depends on its community. Contributions are welcome in:

  • Specification Refinement: format extensions, edge-case handling
  • Client Libraries: renderers for new frameworks (Vue, Solid, Svelte)
  • Tooling: dev tools, debugging utilities, component validators
  • Examples: real-world implementations, best-practice guides

To the GitHub repository


TYPO3 Integration: A2UI in the Enterprise CMS  

Bringing A2UI to TYPO3 opens up new possibilities for intelligent, context-aware backend interfaces: editors get dynamically generated forms tailored to the content type, AI assistants support SEO optimisation, and workflows adapt to the task at hand.

Vision: AI-Powered TYPO3 Workflows  

Context-Sensitive Forms

The AI agent analyses the content type and generates an optimised input form with exactly the fields relevant to that context.

Intelligent Dashboards

Dynamic admin dashboards that adapt to the user's role and current tasks, surfacing relevant metrics, shortcuts, and actions on demand.

SEO Assistant

An AI agent analyses page content in real time and generates an interactive UI with concrete optimisation suggestions and inline editing options.

Architecture Overview  

TYPO3 A2UI Integration Architecture

Test Extension: a2ui_integration  

Here is a complete TYPO3 extension that demonstrates A2UI concepts in TYPO3 13/14.

Extension Structure

1. Extension Configuration

2. Backend Module Registration

3. Core Domain Models

4. Service Layer

5. Controller

6. Fluid Templates

7. JavaScript Renderer

Step-by-Step: Creating an Extension from Scratch  

Follow this guide to build the A2UI extension yourself. Each step builds on the last.

Step 1: Create the Extension Skeleton

First, create the directory structure and the base files:

TYPO3 13 vs. 14

TYPO3 13 supports both typo3conf/ext/ and packages/. TYPO3 14 recommends packages/ exclusively for local extensions, so we use that future-proof option here.

Step 2: Base Configuration

Create the two essential configuration files:

Step 3: Creating the Domain Model

The A2UIComponent model represents the JSON structure of the A2UI protocol:

Key concepts:

  • Immutability: all properties are readonly for thread safety
  • Constructor promotion: a PHP 8.2+ feature for compact code
  • Recursive children: supports nested components

Step 4: Component Registry (Security Layer)

The registry implements the whitelist principle: only registered components are allowed.

Security Note

Never accept dynamic template paths from LLM output. The registry ensures that only pre-defined templates can ever be used.

Step 5: Agent Service (LLM Simulation)

The AgentService simulates the LLM logic. In production, you would replace it with real API calls:

Step 6: Renderer Service

The renderer converts A2UI components into TYPO3 Fluid HTML:

Step 7: Backend Controller

The controller ties everything together and exposes the functionality as a backend module:

Step 8: Creating Fluid Templates

Create the component templates:

Step 9: Register the backend module

Step 10: Activate & test the extension

Done!

After these 10 steps, you will have a working A2UI integration in TYPO3. You can reach the backend module under Web > A2UI Agent Interface.

Extension Download  

Want to use the extension straight away, without rebuilding every step by hand? Download the complete, production-ready extension:

a2ui_integration v1.0.0 (TYPO3 Extension)(15 KB)

Complete A2UI integration for TYPO3 13/14. Includes AgentService, RendererService, ComponentRegistry, seven UI components, a backend module, and a JavaScript client.

What's in the extension

  • 5 PHP classes (controller, services, models)
  • 7 Fluid templates for UI components
  • Client-side JavaScript renderer
  • Backend module with dashboard
  • Full README documentation

Compatibility

  • TYPO3 13.0 - 14.x
  • PHP 8.2+
  • Composer support
  • Apache 2.0 Licence (like A2UI itself)

Live Demo: Intent to UI  

Here is how a user intent turns into a generated UI:

Flow: From user request to generated UI

Installation & Usage  

Install extension

Install via Composer: composer require webconsulting/a2ui-integration

Activate extension

In the Extension Manager or via CLI: typo3 extension:activate a2ui_integration

Open backend module

Open the new module in the TYPO3 backend under "Web > A2UI Agent Interface"

Try the demo

Test various intent examples: "Create page", "Edit content", "Schedule", "SEO"

API Endpoints  

EndpointMethodDescription
/typo3/module/web/a2ui/dashboardGETMain dashboard with example intents
/typo3/module/web/a2ui/generateGETGenerate UI: ?intent=create+page&format=json
/typo3/module/web/a2ui/demoGETShow all component examples

Extension Options  

Production Checklist  

Important considerations before go-live

Security hardening:

  • Rate-limit API calls
  • Sanitise input for all user intents
  • Keep the component whitelist strictly enforced
  • Store LLM API keys securely in the extension configuration

Performance:

  • Cache frequently generated UI patterns
  • Lazy-load JavaScript modules
  • Optimise component rendering via AJAX

Testing:

  • Unit tests for AgentService and RendererService
  • Integration tests for controller actions
  • Security tests for component validation

Conclusion: Strategic Importance for Modern Applications  

Generative UI with A2UI is a fundamental step towards truly intelligent, adaptive assistants. The strategic advantages fall into four dimensions:

Increased Security

By never executing LLM-generated code directly, A2UI removes a critical attack surface. The declarative approach gives the host application full control over which components are permitted.

Seamless User Experience

The host application's native UI components guarantee perfect design integration. No out-of-place iframes, just consistent brand experiences across every touchpoint.

Cross-Platform Interoperability

One JSON payload, native rendering everywhere. Agents generate interfaces for web, mobile, and desktop without any platform-specific knowledge.

Accelerated Development

Agents create context-specific UIs on the fly, cutting the development effort for complex, stateful interfaces and shortening prototyping cycles.

The Paradigm Shift  

GenUI marks the transition from designing interfaces for the many to dynamically generating experiences for the individual. It is not just a new technology, but a decisive step towards personalised, context-aware digital assistants.

For businesses, this means:

  • Higher conversion rates from optimised, task-specific UIs
  • Lower development costs through reusable, agent-driven components
  • Better scalability as use cases grow more complex

Want to use A2UI in your project, or evaluate generative UI patterns? We can help with strategic assessment, architecture design, and implementation. Get in touch for a no-obligation consultation.

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.