AI copilot overview
The AI copilot lets you change your app by describing the change in plain language: "Add a booking page connected to customers", "Add a field called Birthday to Customers", "Change the accent color to blue". The copilot turns the sentence into the same kind of edits you would mak
The AI copilot lets you change your app by describing the change in plain language: "Add a booking page connected to customers", "Add a field called Birthday to Customers", "Change the accent color to blue". The copilot turns the sentence into the same kind of edits you would make by hand, applies them, shows you exactly what changed, and lets you undo in one click.
AI modifies your project configuration. It does not independently rewrite your application source code. There is no source code to rewrite: an app is a project definition (pages, components, data, workflows, theme), and the AI only produces validated edits to that definition.
When to use
- You know what you want but not which panel to open.
- Repetitive setup: several fields, a page with the right business component, a navigation menu for all staff pages.
- A first draft of an app from a description of your business (see Describe your app).
How to use the AI bar
- Open Build. The Ask AI bar sits at the bottom of the canvas. Viewers (view-only access) do not see it.
- Optionally select the page or component you are talking about. The copilot receives your current page and selection as context ("add a chart here").
- Type an instruction and press Enter.
- A result card appears with a one-line summary and the list of changes (added, removed, updated items). Click Undo on the card, or press Ctrl+Z, to revert everything from that instruction.
- Questions ("How do I…?") are answered from the documentation instead of editing the app — see Asking the AI for help.
With or without an AI key
| With a Gemini API key | Without a key | |
|---|---|---|
| Engine | Google Gemini, structured JSON answers | The built-in local planner |
| Understands | Free-form instructions | A set of common phrasings (pages, fields, entities, theme, navigation, renames, deletions) |
| Attempts | Up to three, with repair feedback | One |
| Safety | Same validation as manual edits | Same validation as manual edits |
The key is configured by whoever runs the MyAppBuilder platform (GEMINI_API_KEY), not per app. Both engines produce the same kind of output, so everything on these pages applies to both.
What the AI knows about your app
The copilot receives a compact summary: your pages (names, routes, audience, the components on the current page), entity names and field labels, role names, workflow names, API source names, which secrets are configured (names only, never values), the main theme values, and the selected components. It never receives your records, your customers' data or secret values.
Example
Instruction: "Add a booking page connected to customers"
Result card:
Added a Booking page with a Booking Form. + Page "Booking" (/booking) + Booking Form on Booking + Entity "Bookings" + Field "Customer" on Bookings → Customers
Common mistakes
- Asking for code or custom scripts. The AI never writes code, SQL or HTML; such requests return no changes.
- Vague instructions. "Make it better" produces nothing. Name the page, entity or component and say what should change.
- Expecting secrets or uploads. The AI cannot store API keys, upload files or connect databases. Do those in Settings, Assets and Data.
Advanced
The pipeline is: instruction → model (or local planner) → Zod validation of the operations → resolver (names to ids) → command engine with the same structural validation as manual edits → one transaction recorded with source: "ai". The transaction is limited to AI_ALLOWED_COMMANDS; model output is never evaluated as code. See src/core/ai/contract.ts for the operation list and src/core/ai/local.ts for the local planner.