The Best-Practice UI Prompt: Plain Sentences That Beat the Average AI Page
A vague request gets you the average AI page: purple gradient, a headline that could sell anything, three identical emoji cards. One short prompt in plain sentences, with no technical values, gives the agent decisions to follow. Shown on a weekend workshops page.
What you will learn
- Explain why a vague request gives you the average AI page
- Write a reusable redesign prompt in plain sentences, one decision per sentence
- Spot the usual AI look: the purple gradient, the headline that sells anything, three identical emoji cards
- Check the agent's redesign by eye with four questions
Before you start
- Using an AI agent in your editor (PyCharm, IntelliJ or VS Code)
This lesson gives you one prompt you can reuse on any page. It's short, it's written in plain sentences, and there isn't a single technical value in it. Used on a generic AI page, it turns the page into one with clear decisions.
The average AI page
I asked the agent for a workshop booking page with one short, vague line. It came back working, with nothing broken. But look at it:
- A purple gradient across the top, the same one you've seen on page after page.
- A headline that could sell anything: "Unlock Your Creative Potential", with "Revolutionize your learning journey with seamless, next-level workshops" under it.
- Three identical cards, each with an emoji icon and a buzzword, plus a "Get Started 🚀" button.
Why does it look like this? When you give the agent no decisions, it picks the most common choice at every step. Add up all those common choices and you get the average page. The tells behind it are taken apart in Why AI-Built Websites All Look the Same.
One short prompt, plain sentences
The fix is a prompt where every sentence is a decision:
Redesign this page.
Keep the spacing even.
Make one thing clearly first.
Use one accent colour for the main action.
Make all text easy to read.
Show loading, error and empty states.
Use the same buttons everywhere.
Avoid the usual AI look: no purple gradient,
no emoji icons, no three identical cards.
Notice there's no technical word anywhere in it. No pixel sizes, no hex colours, no CSS. The agent knows how to do each of these things. What it didn't know was that you wanted them.
Give it to the agent
In PyCharm, open the page in the preview and set the AI Chat panel to the agent. IntelliJ and VS Code work the same way. Type the prompt exactly as above and send it.
The agent reads the page, then edits both the stylesheet and the page itself. It needs to touch the page too, because the loading, error and empty messages are new content. In the preview, the gradient goes, the heading leads, the cards become a clear list, and the three states appear at the bottom.
Same job, clear decisions
The redesigned page is the same weekend workshops in Leeds, with the same job. Now it reads:
Leeds · this weekend
Weekend workshops
Pick a session and book a seat. Places are limited.
Spacing and layout Sat 10:00 · 6 seats left [Book a seat]
Colour basics Sat 14:00 · 2 seats left [Book a seat]
Writing for screens Sun 10:00 · 9 seats left [Book a seat]
Loading
Error: Couldn't load workshops. [Try again]
Empty: No workshops this weekend yet. New dates go up on Monday.
The heading is clearly first, and the only colour on the page is on the Book a seat buttons. Below the list you can see what the page says while it loads, when something fails, and when there's nothing to show. The page isn't fancier. It's more specific. States like these get their own lesson in States and Feedback.
Check it by eye with four questions
You don't need to measure anything to check the agent's work. Ask:
- What do I see first?
- Can I read everything easily?
- Do the buttons match everywhere?
- What shows when it's loading, broken or empty?
If any answer is no, tell the agent what you see and look again. A second round is normal, and it's quick. For a deeper review with measured contrast, use the six checks in Critiquing AI-Generated UI.
Common mistakes
- A one-line vague request. "Make a workshop page" gets you the average page.
- Stuffing the prompt with values. You don't need pixel sizes to get a clear page. Decisions are enough.
- Forgetting the states. If you don't ask for loading, error and empty, you usually won't get them.
- Not naming the AI look. Say "no purple gradient, no emoji icons, no three identical cards" outright.
Try it yourself
Take any page an AI built for you, paste the prompt above with no changes, and compare before and after with the four questions. Then keep the prompt in your project, or in your brand rules folder, so you can reuse it.
Related course on Udemy
The Python Architect Masterclass: Full Stack to AI Engineer
Python, Django, FastAPI, React, Docker, AWS, LLMs, RAG, agents and MCP, from first steps to AI engineer.View on Udemy ↗: The Python Architect Masterclass: Full Stack to AI Engineer (paid course, opens in a new tab)Related posts
One Request, Two Answers: the Same Post as an HTML Page and as JSON
Ask a Django blog for the same post twice: once as a 12,731-byte HTML page built by a template, once as 2,976 bytes of JSON built by a serializer. Compare the headers, see who builds the page, and why the server still owns every write.
A Blog Design from a Prompt: Downloading Figma Make Code and Reading App.tsx and BlogCard.tsx
Make a blog design from a prompt in Figma Make, download src.zip, unzip it with Python's zipfile module, and read the two files that matter: App.tsx with its selectedPost state and BlogCard.tsx with its props.
How a Web Page Works: HTML Tags, Elements and Attributes
A web page is a text file full of labelled pieces. Learn tags, attributes and nesting with three tiny pages, and see what breaks when an attribute or a closing tag is wrong.
Semantic HTML: header, nav, main, aside and footer as Page Landmarks
The same page written as div soup and with semantic tags looks identical, but only one gives screen readers and search engines landmarks and an outline. Plus tables, div, span and the one-main rule.
