Understand the three approaches to building agent interfaces on the Generative UI Spectrum: Controlled, Declarative, and Open-Ended Gen UI, and when to use each.
Build Interactive Agents with Generative UI
Instructor: Atai Barkai
Earn an accomplishment with PRO
- Beginner
- 1 hour 28 mins
- 8 Video Lessons
- 5 Code Examples
- 1 Graded Assignment PRO
- Earn an accomplishment with PRO
- Instructor: Atai Barkai
CopilotKit- Learn more aboutMembership PRO Plan
What you'll learn
Build a fullstack agent app by connecting a LangChain agent to a React frontend using CopilotKit and the AG-UI protocol, with agents that render charts, cards, and forms on demand.
Use MCP Apps to connect your agent to third-party applications, then go beyond the chat window and build products where the agent and user work on the same data, side by side.
About this course
Introducing Build Interactive Agents with Generative UI, taught by Atai Barkai, co-founder of CopilotKit, the team behind the AG-UI protocol.
Most agents today still talk to users in plain text. But users don’t just want to read a response, they want something to see and act on. This course teaches you to build that interactivity: a fullstack agent interface where the agent renders charts, forms, whiteboards, and interactive components on demand.
You’ll work across the full Generative UI Spectrum, from hand-crafted components you control precisely, to declarative layouts the agent assembles from building blocks, all the way to open-ended experiences powered by MCP Apps. You’ll finish by building a canvas application where the agent works alongside the user on shared data. By the end, you’ll have a production-ready fullstack agent built on CopilotKit and AG-UI, an open protocol with first-party integrations across LangGraph, Google, AWS, Microsoft, and more.
In detail, you’ll:
- Learn the three pillars of the Generative UI Spectrum and when to use each.
- Connect a LangChain Deep Agent and a Google ADK Agent to a React frontend using CopilotKit and AG-UI.
- Build Controlled Generative UI: define custom components like pie charts and flight cards that the agent renders on demand.
- Use A2UI, an open spec co-developed with Google, to let your agent assemble layouts from a catalog of reusable building blocks.
- Connect your agent to MCP Apps and explore fully open-ended interfaces the agent creates from scratch.
- Build a canvas app where the agent and frontend share live state, beyond the chat window.
Throughout the course, you’ll build on the open-source AG-UI protocol — so these skills travel with you across the agentic ecosystem.
Who should join?
Developers building AI agents who want to create richer, more interactive user experiences. Comfort with React and Python is recommended, along with basic familiarity with AI agents or LLM application development. Useful for fullstack developers, AI engineers, and frontend-leaning builders shipping agent features into production apps.
Course Outline
8 Lessons・5 Code Examples- IntroductionVideo・3 mins
- Lesson 1: Intro to Generative UIVideo・11 mins
- Lesson 2: Agent ChatVideo with Code Example・11 mins
- Lesson 3: Controlled Generative UIVideo with Code Example・10 mins
- Lesson 4: Declarative Generative UIVideo with Code Example・15 mins
- Lesson 5: Open Generative UIVideo with Code Example・9 mins
- Lesson 6: Canvas ApplicationsVideo with Code Example・12 mins
- ConclusionVideo・1 min
- Quiz
Graded・Quiz
・10 mins

Elevate your learning experience with Pro
Upgrade to Pro and gain unlimited accomplishments on your resume
Instructor
Course access is free for a limited time during the DeepLearning.AI learning platform beta!
Want to learn more about Generative AI?
Keep learning with updates on curated AI news, courses, and events, as well as Andrew Ng’s thoughts from DeepLearning.AI!
