Skip to content
MyAppBuilder
StableGuide

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

  1. Open Build. The Ask AI bar sits at the bottom of the canvas. Viewers (view-only access) do not see it.
  2. Optionally select the page or component you are talking about. The copilot receives your current page and selection as context ("add a chart here").
  3. Type an instruction and press Enter.
  4. 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.
  5. 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 keyWithout a key
EngineGoogle Gemini, structured JSON answersThe built-in local planner
UnderstandsFree-form instructionsA set of common phrasings (pages, fields, entities, theme, navigation, renames, deletions)
AttemptsUp to three, with repair feedbackOne
SafetySame validation as manual editsSame 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:

Example
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.

Related

Was this helpful?