Structured Prompting: Getting Consistent Output on the First Try
Context, role, constraints and examples, plus the levers that make prompts dramatically better and a skeleton to reuse.
A prompt is just the instructions you give the AI. Clear instructions give better answers. Always tell it what you want, who it is for, how long it should be and show one example. If the answer is off, say exactly what to change instead of starting over.
- Prompt
- The message or instructions you type to the AI.
- Context
- The background: what this is for and who will read it.
- Constraints
- The rules: length, tone, format, and what to avoid.
- Example
- A sample of what a good answer looks like.
The same request can give you a throwaway answer or something you can use at once. The difference is rarely cleverness. It is information. A good prompt tells the AI what it cannot guess: why you want this, who it is for, what good looks like and what to avoid. Learn this well and every other lesson in the path gets easier.
Four building blocks
- Context: the situation and the purpose. A status update for my manager, who has 30 seconds and cares about risks is far better than summarize this.
- Role: the point of view to answer from. As a skeptical editor, or as a first-time customer, changes what gets noticed.
- Constraints: length, format, tone and reading level. Say what to include and what to avoid.
- Examples: one or two samples of what good looks like. Showing works much better than describing.
Before and after
Write a follow-up email to a client.
CONTEXT: I run a small design studio. I sent {{client_name}} a proposal for a website redesign
on {{date}} and haven't heard back. They're friendly but busy. I want a meeting, not to pressure them.
ROLE: Write as me - warm, direct, plain English, no corporate filler.
CONSTRAINTS:
- Under 90 words, 3 short paragraphs maximum.
- One clear ask: a 20-minute call this week; offer two time slots: {{slot_1}} or {{slot_2}}.
- Do not mention price. Do not say "just checking in" or "circling back".
- Subject line under 7 words.
EXAMPLE of my tone:
"Hi Sam - quick one. I've been thinking about the checkout problem you mentioned and have an idea worth 10 minutes of your time..."
Give me two versions: one more casual, one slightly more formal.Ways to make prompts much better
- Ask it to ask you. Say: before you start, ask me up to 5 questions you need answered. This shows you the context you forgot to give.
- State the reader and what success looks like. For example: a reader with no technical background should be able to explain this to their boss.
- Keep your instructions apart from your material. Wrap pasted text in markers like <document> and </document>, so the AI does not mix it up with your instructions.
- Ask for a format. A table, numbered steps, JSON, or a headline with three bullets. Format requests are followed very reliably.
- Say what to avoid. For example: no jargon, no bullet points, do not invent statistics. This catches mistakes you have seen before.
- Work in two passes. Say: first list your assumptions, then write the answer. Or: write a draft, check it against my rules, then give a better version.
Improve it on purpose
Your first result is a draft. It is not the end. Give clear feedback instead of starting again. For example: keep paragraphs 1 and 3, make paragraph 2 more concrete with an example, and cut the last sentence. Say what you liked as well as what to change. Otherwise the AI may throw away the good parts. If you have tried three times and it is still wrong, the cause is usually missing context. Go back and fix the original brief.
Common problems and fixes
- Bland, generic answer: you gave no reader, purpose or example. Add all three.
- Wrong length or format: you did not say it, or you hid it in the middle. Put hard rules on their own lines.
- It ignored a rule: you gave too many instructions at once. Pick the two or three that must be followed and mark them MUST.
- Confident but wrong facts: you asked for facts it cannot know. Give it the source material, or ask it to flag what it is unsure about. Lesson 6 covers this.
- It rambles: ask for a word limit, and say no introduction, start straight with the answer.
A skeleton you can reuse
GOAL: [what I want to end up with, and what it's for] AUDIENCE: [who will read/use it, what they know, what they care about] ROLE: [perspective or expertise to adopt] MATERIAL: <material> [paste source text, data, notes] </material> CONSTRAINTS: [length, format, tone, must include, must avoid] EXAMPLE: [a sample of the style or structure I want] BEFORE YOU START: Ask me any questions you need answered. If nothing is unclear, proceed.
- ✓Give context, a role, rules and an example. The AI cannot guess any of them.
- ✓Ask the AI to ask you questions first, and keep your instructions apart from pasted material.
- ✓Improve the result with specific feedback, and say what to keep.
- ✓Keep a skeleton you reuse. A structured prompt is quicker than a vague one once it is a template.
Before and after on a real task
- Pick a task you would normally do with a one-line prompt. Run the one-liner and save the result.
- Rewrite it with the skeleton: goal, reader, role, material, rules and example. Run it.
- Run it a third time with ask me questions first, and answer them.
- Compare all three results by how much editing each needs. Save the best prompt as your first template.
Q1Why does an example in the prompt help more than a description?show answer
It shows the exact style, structure and level of detail you want. The AI copies it, instead of guessing what a word like professional means.
Q2What does ask me questions first achieve?show answer
It shows the missing context before the AI starts guessing. That gives a better first draft and saves rounds of fixing.
Q3The AI keeps ignoring one of your ten instructions. What is a likely cause, and what is the fix?show answer
You gave too many instructions at once. Pick the ones that must be followed, mark them clearly, for example with MUST, and put them on their own lines.