Browse documentation

FEATURE DOCUMENTATION

Review AI App Builder Proposals and Write Useful Prompts

Give the agent one clear task, review the operations and retest the behavior you want to preserve.

3 min readPractical guide
In this guide

Understand supported changes

The agent uses the same widget registry and project model as the visual editor. Its supported commands include creating screens, adding registered widgets or reusable sections, updating properties, configuring typed state and defining action/API records. It prepares a proposal rather than executing arbitrary Dart in the browser.

This matters because the result remains editable through Inspector and Layers. A generated button should reference a supported action or route. A generated input should bind to compatible state. The project validator checks these contracts before a proposal can replace the current design.

Write a request with a check

Name the screen and the desired interaction. Identify existing state, actions and navigation that must stay. Mention whether you want a new section, a new screen or a complete replacement template. The quick tasks in the panel provide starting prompts for login, layout polish, loading sections and the Snake arcade.

Improve the Product detail screen.
Keep its productColor binding and add_bag action.
Use a clearer title, price hierarchy and delivery section.
Do not replace other screens or invent a payment backend.

A short acceptance check helps: after this change, selecting a color and adding an item should still update the bag. When the requested service is outside the tool's capabilities, ask for an explicit local demonstration and a clear source integration boundary.

Try task-specific prompts

Write the outcome, the screen, what must stay intact and how you will check success. These examples are starting points for the supported visual model, not promises of a complete backend:

Improve a Flutter ecommerce screen

Improve the product details hierarchy on this screen.
Preserve productColor and add_bag.
Keep price, title and primary action easy to find.
Do not replace other screens or add payment claims.

Refine a messaging app interface

Make the conversation heading and helper text clearer.
Keep draft, messages and send_message unchanged.
Preserve the composer and Send locally action.
Use supported widgets and a consistent spacing scale.

Add an editable form section

Add a supported login form section to the current screen.
Use editable fields and clear labels.
Show that this is a local demo.
Preserve existing routes; do not claim authentication is live.

Apply one useful update, try its main interaction, then ask for a refinement. Use the first-app AI exercise to practice the complete prompt, review and retest loop.

Review, apply and undo

The conversation shows a summary when a proposal is ready. Open Review changes to inspect the actual operations. Pay particular attention to removed screens, altered bindings and a full template replacement. Applying a proposal creates an undo checkpoint.

The agent's wording is not a substitute for testing. Open Preview and exercise the flow yourself. Try empty input, a disabled condition, a repeated tap and navigation back. If the design changed during generation, prepare a fresh proposal rather than overwriting the newer edits. You can discard a proposal without changing the app.

Continue with smaller follow-ups

After applying, test the relevant input, state update and navigation in Preview. Try the ordinary case, empty input and repeated action. Use Undo or ask for a narrower update with actual state/action names.

A successful response is not proof of production services. Real authentication, payments, calls and messaging infrastructure require separate integrations. Practice in the first-app AI exercise and keep a JSON checkpoint.

TRY WHAT YOU LEARNED

Make one useful change.

Open the example, test a flow, and keep an editable source ZIP.

Open the example