Guide

Refine an AI-generated application

A disciplined loop for improving a generated app: audit, prioritize, change in small steps, verify and roll back when needed.

Audit before you change anything

The first version of an AI-generated application is a starting point. It is often impressive and rarely finished. Before you ask for changes, spend ten minutes auditing it so that your requests are targeted instead of reactive.

  1. Use the app as each type of user, from sign-up to the last step of the main flow.
  2. Switch the preview to the phone view and repeat the flow.
  3. Enter bad input: empty fields, long text, odd characters, duplicates.
  4. Open More → Database to confirm what is stored.
  5. Check More → Logs for errors you did not see on screen.
  6. Read the text on every screen: labels, buttons, messages.

Capture each finding as one line: where it is, what happens, what you expected. 'Bookings page, phone view: the Cancel button overlaps the date.' That sentence can nearly be pasted into the chat as a request.

Rank issues by impact

Sort your findings into three groups. Blockers stop the main flow or put data at risk. Important issues hurt usability or trust. Polish makes things nicer.

  • Blockers: a user can see another user's data, sign-in fails, a form loses what was typed, payments do not complete.
  • Important: unclear error messages, awkward phone layout, missing empty states, slow-feeling flows.
  • Polish: spacing, colors, wording, icons.

Fix blockers first, important issues second, and bundle polish into one or two visual passes at the end. This order protects you from spending effort on fine details that a later structural change would overwrite.

If you are tempted to add a new feature, put it on the list and rank it like everything else.

Make focused chat requests

Each message in the chat starts a run, and each run uses credits, with cost varying by size and complexity. Focused requests are easier for the AI to get right and easier for you to review.

Be specific about location and scope

Example promptOn the Bookings page, phone view only: the Cancel button overlaps the date text. Stack the date above the button on screens narrower than 480px, add 12px spacing between them, and leave the desktop layout unchanged.

Describe behavior as a rule

Example promptWhen a user tries to book a class that is already full, do not show a generic error. Show a message that says the class is full and offer a button to join the waiting list. Do not change the booking confirmation flow for classes with spots available.

Group changes that touch the same area, such as three fixes on the same page. Keep unrelated areas in separate messages. After each run, retest the thing you asked for and the neighbors it could affect.

Choose the right tool: chat, visual edits or code

You have three ways to change an app, and picking the right one saves time.

  • Chat: for new behavior, new pages, data changes and anything that involves logic.
  • Visual edit mode: click an element in the preview to change its text, size, colors or an image, then apply it. Visual edits are written directly to your code.
  • Code tab: for developers or for precise manual fixes. Every save is committed and kept in Versions.

For a typo, a new heading or a different shade of button, visual edit mode is the direct route. For something like 'only managers can approve', use the chat. If you edit code by hand, mention that in your next chat message so the AI works from the current state, and check the result in the preview.

Do not paste secrets such as API keys into the code or chat. Store them under More → Secrets.

Verify, and roll back when needed

Every completed run leaves a snapshot in Version history. That is your safety net, and it lets you experiment. If a change breaks something that worked, restore the previous snapshot and try a smaller request, instead of stacking fixes on a broken state.

  1. After a run, test the requested change.
  2. Test two neighboring features that share code or data.
  3. Repeat your short regression checklist, such as sign in, create a record, edit, delete.
  4. If something regressed, restore the last good version.
  5. Rewrite the request with more detail about what must not change.

If a run fails with an error, paste the error text into the chat and ask for a fix, and look at More → Logs. Repeated failure on the same request usually means the request is too large; split it.

Know when to stop

Refinement has diminishing returns. Stop when the blockers are gone, the important issues are fixed, and a new user can complete the main flow without help. Then publish, gather real feedback and begin a second, smaller round driven by what people actually do.

A practical way to hold yourself to this is a simple scorecard. Before each round, list the three outcomes that matter most, such as 'a new member can book a class on a phone without help'. At the end of the round, test exactly those outcomes with fresh eyes, ideally with a person who has never seen the app. If they pass, publish. If they fail, the failure tells you what the next request should say.

It also helps to separate two kinds of work. Fixing is making the app do what you already asked for. Extending is asking it to do something new. Finish fixing before extending, because new features built on top of unfixed problems tend to inherit them, and the problems become more expensive to untangle.

  • Write a short 'definition of done' for this round before you start.
  • Keep a changelog of what you changed, in your own notes.
  • Connect GitHub if you want a conventional history of every change.

Related

Ready to build it?

Describe your idea and let Oxdar build the first version. 25 free credits to start, no card required.