Agentic AI Notebook
AG-UI & Agent UX
Phase 22Module 7 of 10

Generative UI

Chat walls do not scale for approvals, tables, and diffs.

A waiter bringing a plated dish from a menu, not raw ingredients and a blender.

Visual Workflows

Start here — scroll inside each diagram frame to explore, then use + / to zoom up to 200% if needed.

Overview

100%
Loading diagram...

Scroll inside the frame to explore · use + / − to zoom up to 200%

100%
Loading diagram...

Scroll inside the frame to explore · use + / − to zoom up to 200%

This turn

100%
Loading diagram...

Scroll inside the frame to explore · use + / − to zoom up to 200%

A waiter bringing a plated dish from a menu, not raw ingredients and a blender.

Key Takeaways

  • 1.The agent can emit UI specs (cards, tables, forms), not only markdown.
  • 2.Whitelist components. Never eval model HTML as script.
  • 3.Generative UI is data plus component name, not a string of React.
  • 4.Chat walls do not scale for approvals, tables, and diffs.

Real Example

Scenario

A waiter bringing a plated dish from a menu, not raw ingredients and a blender.

What you would do

In AG-UI & Agent UX, apply Generative UI to this scenario: A waiter bringing a plated dish from a menu, not raw ingredients and a blender. Identify the inputs, run the technique, validate the output, and note one thing you would monitor in production.

Cheat Sheet

Quick recap

quick ref
  • The agent can emit UI specs (cards, tables, forms), not only markdown
  • Whitelist components. Never eval model HTML as script
  • Generative UI is data plus component name, not a string of React

Common Mistakes

  • Skipping evaluation for Generative UI before production
  • No logging or tracing around generative ui steps
  • Ignoring cost and latency implications