Sub topic 9
Prompting an AI app builder
This chapter assumes you have scoped one core user flow, chosen a tool, and sketched a data model. Those three things become the raw material for your prompt.
Why structure matters
An AI app builder turns text into screens, tables and logic. A vague prompt like "build me a task app" forces the tool to guess. It will guess users, fields and permissions, and some of those guesses will be wrong. A structured prompt removes the guesses you care about and leaves the rest to the tool.
A good prompt has five parts:
- The product and its user.
- The one core flow, as a sequence of actions.
- The data fields and their types.
- The access rules.
- What is out of scope.
A worked prompt
Build a web app called TaskNest for freelancers to track client tasks.
Users: freelancers who sign in with email.
Core flow: a signed-in user creates a task with a title, client name and due date, sees only their own tasks in a list, and marks a task done.
Data: tasks(id, owner_id, title, client_name, due_date, status). status is one of todo, doing, done.
Rules: each user can read and change only their own tasks.
Out of scope for now: teams, file uploads, payments, notifications.
Use a simple, clean layout with a single list page and a create-task form.The "Out of scope" line matters as much as the others. Builders tend to add features, and each extra feature adds code you must review.
Prompt in small steps
Send the first prompt, check the result, then add one change at a time. A change such as "add a filter by client" is easy to test. A request to "add filters, sorting, a dashboard and reminders" is not. If a step breaks something, you know which prompt caused it.
Common errors
| Error | Result | Fix |
|---|---|---|
| Leaving out access rules | Any user can see all rows | State who can read and change each record |
| Naming no field types | Dates stored as plain text | Give a type for each field |
| Asking for many features at once | Hard-to-trace breakage | One change per prompt |
| Describing looks, not behavior | Pretty screens that do nothing | Describe the user's actions and the result |
Reuse your prompt
Keep the prompt in a document. If you switch tools or the builder drifts, you can paste it again as a clean starting point. It also doubles as a short specification of your MVP.
Exercise
Rewrite this prompt so it is structured: "Make an app for my gym where people book classes." List the five parts you would add.
Show answer
Add (1) the product and user, such as a booking app for gym members who sign in with email; (2) the core flow, such as a member picks a class, books a spot and sees their bookings; (3) the data, such as classes(id, title, startsat, capacity) and bookings(id, memberid, class_id), with field types; (4) the access rules, such as members see and cancel only their own bookings; (5) what is out of scope, such as payments, waitlists and instructor accounts.