/generative_ui is a Google Antigravity command that tells the AI agent to create an interactive visual experience instead of explaining everything only through text.
It can generate:
- Interactive diagrams
- Charts and graphs
- Step-by-step explainers
- UI mockups and prototypes
- Interactive dashboards
- Architecture and database diagrams
The generated widget is an HTML artifact that can open in Antigravity's side panel. Small widgets may also appear directly inside the conversation.
Practical examples
Example 1: Understand an API request flow
/generative_ui
Create an interactive diagram showing how an API
request travels from the client to Laravel middleware,
controller, model, database, and back to the client.
Use icons, arrows, and short explanations.
Learn database relationships
/generative_ui
Create an interactive diagram showing the relationship
between users, courses, students, and enrollments.
Explain one-to-one, one-to-many, and many-to-many
relationships with examples.
Create a fee calculator
/generative_ui
Build an interactive student fee calculator.
Include:
- Monthly fee
- Admission fee
- Examination fee
- Discount
Calculate the total automatically when values change.
Create a dashboard
/generative_ui
Create an interactive student management dashboard
using sample data.
Include:
- Total students
- Monthly admissions
- Fee collection
- Pending fees
- Monthly admission chart