Back to Blog
Engineering
Generative UI: When Chatbots Draw Interfaces
Frontend Team
Oct 28, 2025
9 min read
Generative UI
Text is great, but sometimes you need a button. Or a chart. Or a map.
Generative UI allows our agents to render native React components inside the chat interface.
How It Works
- Agent Logic: The agent decides it needs to show a stock chart.
- Tool Call: It calls the
render_charttool with JSON data. - Client Hydration: The frontend receives the JSON and maps it to a
Rechartscomponent.
1// The component map 2const componentMap = { 3 stock_chart: (data) => <StockChart data={data} />, 4 flight_card: (info) => <FlightCard info={info} /> 5};
Why It Matters
This moves the chat interface from "Q&A" to "Dashboard." The chat becomes a dynamic canvas that adapts to the task at hand.
See our GenUI Gallery for examples.