Skip to content
5 min read

How to write a prompt for an AI app builder

Reading progress: 5 min remaining

The four things a first prompt needs, the one-thing-per-message rule after that, the design words the agent acts on, and when to plan first.

Short answer

A good prompt for an AI app builder names who the app is for, the one thing they need to do, the screens that journey needs and the data behind them. Ask for the whole product in the first prompt, then change one screen, component or bug per message after that.

The first prompt: the whole product

The first message is the one time to ask for everything. Name four things:

  1. Who it is for: a 6-person design studio, a pottery class, a field engineer.
  2. The one key action: send an invoice, book a slot, file an inspection.
  3. The screens that action needs.
  4. The data behind them, and whether people sign in.
Prompt
Too thin"Build an invoicing app."
Ready to build"Build an invoicing app for a 6-person design studio. Clients, invoices, an overdue list, and a paid/unpaid toggle."

Every prompt after that: one thing

Narrow down once the first version is there. One screen, one component or one bug per message lands cleanly.

You wantPrompt shape
A small, surgical change"In the Settings page, change X to Y."
A feature across many files"Add a dark-mode toggle. List the files you’ll touch first."
A bug fix"When I click Save, nothing happens. Investigate, then fix."
A design change"Make the dashboard denser, with mono-spaced numbers and less colour."
A database change"Add a due date to tasks. Keep existing rows valid."
A research question"Switch to plan mode and tell me what multi-tenancy would take."

Words that change the design

Feel words move type, spacing, corners and shadows together. "Calm, soft, editorial" gives lower contrast, more white space and lighter type; "premium, refined" gives a restrained palette and tighter type. Ask for the headlines a real business would write rather than placeholder text, so the layout is tested against real copy.

When a change is big

Plan first. A read-only plan mode turn before payments, sign-in or a new data layer costs one turn and saves several.

When something is broken

Describe it in four lines: the steps, what you expected, what actually happened, and where (preview or published, web or phone). See why is my preview blank and why the AI keeps making the same fix.

Frequently asked questions

How long should my first prompt be?

Long enough to name the user, the key action, the screens and the data, usually a short paragraph. "Build an invoicing app" produces a skeleton; "an invoicing app for a 6-person design studio, with clients, invoices, an overdue list and a paid/unpaid toggle" produces a working first version.

Should I ask for everything at once?

Only in the first prompt. After that, a message that names one screen, component or bug lands cleanly; a message that asks for four things gets four shallow attempts.

How do I get a better design?

Use feel words the agent acts on, such as calm, editorial, premium or dense, and ask for real copy instead of placeholders. A layout that only works with three-word headings shows its problems once the real headlines are in.

When should I use plan mode?

Before anything that touches many files, such as payments, multi-tenancy or swapping a data layer. Plan mode is read-only, so you get a plan to review before any code changes.