How to Write Better AI Prompts: A Simple Structure That Works
A simple structure for AI prompts: role, task, context, audience, requirements, example, format and tone, with templates for writing, code and data.

How to Write Better AI Prompts: A Simple Structure That Works
Most disappointing answers from AI assistants come from vague requests. "Write something about our sale" leaves the assistant to guess the product, the reader, the length and the style. A few extra lines of context usually fix it. The AI prompt builder guides you through those lines and assembles a tidy prompt.
The eight ingredients
- Role. "Act as an experienced email marketer" sets vocabulary and standards.
- Task. One clear instruction with a deliverable: "Write three subject lines."
- Context. Facts the assistant cannot know: the product, dates, prices, the situation.
- Audience. "Existing customers who bought in the last year" changes tone and detail.
- Requirements. Length limits, points to include, words or claims to avoid.
- Example. A sample of the style you like. Assistants imitate examples strongly.
- Format. List, table, JSON, paragraphs or code, so the answer drops straight into your work.
- Tone. Friendly, formal, playful or concise.
You do not need all eight every time, but each one you add removes a guess.
Templates for common jobs
- Writing: asks for clear, plain language and a consistent voice.
- Code: asks the assistant to state assumptions, handle edge cases and include tests, so you can check the result.
- Image generation: prompts for subject, setting, composition, lighting, style and aspect ratio, the details image models respond to.
- Data analysis: asks for the method, the calculations and how certain the conclusions are.
A before-and-after example
Before: "Give me subject lines for our autumn sale."
After, built with the tool: a role (email marketer), the task (three subject lines), context (outdoor clothing, 25% off, 1-7 October), audience (past customers), requirements (under 50 characters, no exclamation marks, no all-caps), an example of last year's best subject line, list format and a friendly tone. The second version returns options you can use with little editing.
Ask the assistant to ask you
The builder ends prompts with an invitation to ask one clarifying question if anything important is missing. It is a small habit that catches gaps before the assistant fills them with assumptions.
Iterate, don't restart
Treat the first reply as a draft. Follow up with targeted changes: "make the second option shorter", "use British spelling", "give two more in a more playful tone". Keeping the same conversation preserves the context you already supplied.
Keep a library
When a prompt works, save it with a note of the model used and an example output. Over time a team's prompt library becomes a valuable asset, and new colleagues get good results from day one.
Prompts for images
Image generators respond to concrete visual detail rather than instructions. Describe the subject, what it is doing, the setting, the camera angle or composition, the lighting, the style or medium and the aspect ratio. "A ceramic coffee cup on a wooden table by a rainy window, soft morning light, shallow depth of field, photographic, 4:5" gives far more control than "a nice coffee picture". Avoid asking for logos or likenesses you do not have the rights to use.
Prompts for data work
When asking for analysis, paste a small sample of the data with column names, say what each column means and state the question. Ask the assistant to show its calculations and to say how confident it is, then spot-check a figure or two yourself.
Know the limits
Good prompts improve answers but cannot guarantee them. Assistants can still invent facts, misread numbers or write code with bugs. Check important outputs, and keep confidential or personal data out of tools your organisation has not approved.


&c=%23c2410c&k=education)
