Build with AI

Prompts that produce good apps

Write precise users, screens, and data rules, then use six practical templates to direct an AI app builder.

Apirex TeamUpdated
On this page
  1. Start with users and goals
  2. List screens
  3. Describe data
  4. Iterate in small steps
  5. Prompt templates
  6. Frequently asked questions

Start with users and goals

Useful AI app builder prompts start with who will use the app and the task they need to finish. Describe the intended outcome before listing features so every screen has a clear purpose.

A salon owner and a customer have different needs even when they use the same booking product. The customer wants an available appointment; the owner needs a dependable schedule. State which role your initial version serves and which business decisions need an answer from you before implementation.

Make the goal observable. Instead of requesting a professional booking app, explain that a customer selects a service, chooses an available time, confirms it, and finds the saved booking again. That description gives you a journey to test and exposes missing transitions between attractive screens.

Name the target platform explicitly. Apirex uses separate Android, iPhone, iPad, Mac, and web projects, not a shared interface that automatically becomes every platform. Android uses Kotlin and Jetpack Compose, Apple projects use Swift and SwiftUI, and web projects use React, TypeScript, and Vite.

State exclusions alongside the goal. An initial booking app might omit payments, promotions, and staff scheduling while you verify customer reservations. Those boundaries reduce ambiguity and make a smaller result easier to review. Ask for questions about unknown policies instead of allowing plausible but unapproved defaults.

Do not provide private connection commands, passwords, or real customer records as context. AI tasks process prompts, relevant source, and task results. Fictional examples can explain the same workflow without unnecessary disclosure, while private integration keys belong in backend secrets.

List screens

List each screen's purpose, main action, and destination after that action. Also describe empty, loading, and failure states so the interface remains understandable when the happy path is unavailable.

For a booking app, list Services, Available appointments, Confirmation, and My bookings. Explain that choosing a service opens matching availability and that confirmation saves the selected appointment. State whether My bookings opens a detail screen and whether cancellation is available under your policy.

Navigation details matter when they affect retained information. Going back from confirmation should preserve the selected service rather than restarting the whole journey. A failed save should leave the selection available for retry instead of showing a misleading confirmation or forcing the customer to enter everything again.

Describe the state where there are no available appointments. The user should understand what happened and have a meaningful route back, not see a blank list. Similarly, distinguish an empty booking history from a failed request to load existing bookings; those conditions need different explanations and actions.

Separate visual direction from business behavior. A compact header, readable labels, and a clearly visible confirmation button describe specific design choices. A phrase such as make it modern does not explain spacing, hierarchy, navigation, or which existing elements should remain unchanged.

When a reference image helps, identify the exact layout traits to use and anything not to copy. Apirex supports selecting visible elements and describing changes in the web and iPhone Simulator previews. For Android, describe the affected screen and provide a reference without assuming the same selection workflow.

Describe data

Describe the records the app saves, their ownership, and which actions each role may perform. Include validation and lifecycle rules so the builder does not have to infer important permissions from the appearance of a screen.

A booking could contain a customer identifier, service identifier, appointment time, and status. Explain which values come from authentication and which come from controlled service data. A customer should not be able to claim someone else's booking by submitting a different owner identifier from a form.

Separate interface filtering from backend authorization. Hiding another customer's bookings does not protect them if the backend still returns the records. If you connect your own Supabase project, request row-level security matching the stated ownership rules, then test those rules using two different accounts.

Specify what cancellation and deletion mean. You might retain a cancelled booking in history instead of deleting it entirely. If staff can change availability, decide what should happen to already confirmed appointments. Ask the builder to pause for your decision when the policy is unresolved rather than inventing a rule.

Use realistic examples to clarify edge cases. Two fictional customers and a small set of appointments can illustrate privacy, competing reservations, and cancelled records. You do not need to paste a production database into a prompt to communicate the relationships or expected behavior.

Be explicit about uncertainty. If you know times need a displayed time zone but have not decided how travelling customers should book, say so. Ask for a proposed model and a list of unresolved decisions before adding screens that rely on those assumptions.

Iterate in small steps

Request one coherent change, test it, and use the result to define the next request. Small iterations make it easier to separate an implementation defect from a requirement you never stated.

Use Chat in Apirex to discuss an approach or resolve business questions, and Build when you want real source changes and checks. For larger work, request a plan and choose the part to implement now. A plan is more useful when it names checkpoints you can actually inspect.

A focused bug report identifies the screen, reproduction steps, expected behavior, and actual behavior. Include the first meaningful error line for a build problem. Remove credentials, private connection details, and customer information from logs or screenshots before attaching them to a request.

Tell the builder what to preserve. A correction to booking cancellation should not casually become a redesign of service selection. Ask for an explanation if a broader change is required, so you can understand why the scope needs to expand before reviewing a much larger result.

After each change, test both success and failure. For a save action, confirm that successful input persists after reopening and that a rejected request leaves the user with a useful explanation. A successful compile does not prove that a workflow or permission rule behaves correctly.

Review recorded changes and revert to an earlier point when needed. Keep your own source backup too, especially before broad data or payment work. A short written list of tested scenarios helps you recognize regressions instead of treating the same failure as a new mystery each time.

Worked corrections for Android, iPhone, and web

For Android, replace “Fix the booking screen” with a reproducible report: “On Confirm, select the haircut service and an available appointment, then tap Confirm twice quickly. Expected: one booking and a disabled submission button while saving. Actual: two bookings appear in My bookings. Prevent duplicate submission without changing service selection, and check the stored records after retrying.” This describes a proposed correction, not a claim that your app currently has this bug.

For iPhone, replace “Make it look like the reference” with a bounded design request: “On Booking details in this iPhone project, use the attached image only for the spacing between the title, summary, and cancellation action. Preserve our colors, wording, and navigation. Check the running Simulator with a long service name and larger text, and make sure the cancellation confirmation remains reachable.” The reference now communicates hierarchy without silently authorizing a complete redesign.

For web, replace “Make the form responsive” with an observable layout requirement: “On appointment confirmation at phone width, the summary currently extends past the preview edge. Keep the summary inside the viewport, allow the service name to wrap, and place Confirm after the summary without horizontal scrolling. Preserve desktop layout and validation. Check both preview widths with a long service name.” This makes the intended correction testable rather than treating responsive as a visual preference.

After a partial fix, continue from the result instead of starting over: “The summary now fits, but the error message pushes Confirm outside the card. Keep the wrapping change. Show the validation message beside the affected field and keep the button after the form. Recheck empty input and a successful booking.” Naming what already works protects the useful part of the previous change.

Another common mistake is combining a defect with unrelated requests: “Fix cancellation, change all colors, and add subscriptions.” Split that into separate requests, starting with the cancellation reproduction and acceptance check. Review the corrected behavior before changing appearance, then settle payment policies before requesting subscriptions. Each result should have a clear reason to be accepted or rejected.

Prompt templates

These six templates show how to define scope, behavior, and verification for realistic changes. Adapt their decisions to your app, and never replace secret references with actual private credentials in a prompt.

The initial-build template names one platform and one customer journey. Its exclusions and clarification request are deliberate: they prevent an apparently complete application from depending on guessed business policies.

Text
Build an Android salon booking app for returning customers.
Use Kotlin and Jetpack Compose in this Android project.
Screens: Services, Available appointments, Confirm, My bookings.
A customer selects one service and one available appointment.
Start without payments, promotions, or staff scheduling screens.
Ask me about sign-in, cancellation deadlines, and time zones first.
Check booking, reopening, and cancellation after building.

An added screen needs a route into it, a clear data source, and defined failure states. Preserve the existing journey so this request adds a useful capability rather than restructuring unrelated behavior.

Text
Add Booking details to the existing Android project.
Open it when a customer taps an entry in My bookings.
Show service, appointment time with time zone, and status.
Load only a booking the signed-in customer may read.
Include loading, not-found, and retry states.
Preserve the existing booking creation flow and visual style.
Check that Back returns to the booking list.

A bug report should describe a reproducible difference between expected and actual results. This gives the builder a concrete regression check and protects unrelated styling from unnecessary changes.

Text
Fix cancellation on Booking details.
Steps: sign in, open a confirmed booking, tap Cancel, confirm.
Expected: status becomes cancelled and the booking stays in history.
Actual: details changes, but My bookings still says confirmed.
Check saving and refresh behavior when returning to the list.
Preserve booking creation and unrelated styling.
Test successful save, failed save, and reopening the app.

A reference image is a design input, not a complete specification. Explain the hierarchy you want and the content, interactions, and branding that must not change.

Text
Use the attached reference image for web booking confirmation.
Match its hierarchy: compact header, summary card, clear action.
Keep our existing wording, colors, and booking data.
Do not copy its logo or add decorative controls.
Keep Confirm reachable at phone width when text wraps.
Do not change permissions, payments, or other screens.

Data instructions should express access rules that the backend enforces, including a negative test. The example assumes you will connect your own Supabase project and review the proposed rules before implementation.

Text
Use my connected Supabase project for customer bookings.
Propose the tables and row-level security before implementation.
Customers can read and cancel only their own bookings.
Derive ownership from authentication, not submitted form fields.
Customers cannot change service prices or availability.
Ask how staff access should work; do not invent an admin role.
Test that account A cannot fetch or modify account B's booking.

A payment request should identify what is being sold before naming the provider. A physical appointment and an in-app digital feature can have different store-policy implications, so resolve the intended platform and product category before checkout work.

Text
Plan Stripe deposits for physical salon appointments on our web app.
The merchant account is mine; use test mode during development.
Create the order server-side from the stored service price.
Store secret keys in backend secrets, never in the web bundle.
Verify signed webhooks before marking a deposit paid.
Do not grant twice for duplicate events; handle cancellation and retries.
Ask me about deposit amounts, refunds, and currency first.

After using a template, inspect what changed and run the named checks yourself. If the result is close but incomplete, keep using the same screen names and rules in the correction. Replacing the brief with a vague request to improve everything usually makes the next result harder to assess.

Frequently asked questions

How long should a prompt be?

Use enough detail to define one coherent change and its checks. Clear decisions matter more than a particular length.

Should I name a language?

Name the platform and any important constraints. Apirex already uses Kotlin and Jetpack Compose for Android, Swift and SwiftUI for Apple, and React with TypeScript for web.

Can I attach a reference image?

Yes. Explain which visual traits matter and what must remain unchanged, and remove sensitive information from the image.

What if I do not know the data model?

Describe records, ownership, and actions in plain language. Ask for a proposed model and permission rules before implementation.

Is a successful build enough?

No. Test the main journey, a failure path, and any permissions affected by the change.

All guides

Build it on your own computer

Describe the app and Apirex writes real source you own, then builds it on your machine.

AndroidKotlin · Jetpack ComposeReal source on your computer

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.