How to Write Better AI Prompts: A Beginner's Guide
Better answers rarely need clever tricks. They need context, a clear task, and a shape to fill. Here is the pattern.
Better answers from an AI model rarely come from clever tricks or secret phrases. They come from three plain things: enough context, a clear task, and a shape for the answer to fill. Give the model what a capable stranger would need to do the job, and you get a capable reply. Leave those out and you get a guess. This guide walks through the pattern, the mistakes that quietly wreck good prompts, and how to refine when the first try misses.
The short answer
Good answers come from context, a clear task, and a shape to fill, not from magic wording. The single most useful habit is to imagine handing the request to a sharp new colleague who cannot read your mind. What would they need to know? What does “good” look like? Write that down, and you have written a decent prompt. Everything below is just a way to be thorough about it.
If you are new to how these models think, it helps to know they work from the text in front of them and nothing else. The clearer that text is, the better the odds. For the wider picture of how AI actually behaves, the AI literacy guide ties the fundamentals together.
The anatomy of a prompt that works
A reliable prompt usually has five moving parts: a role, context, the task, a format, and any constraints. You will not need all five every time, but naming them makes it obvious what you left out.
- Role.Tell the model who to act as. “You are a copy editor” sets a different tone and standard than no framing at all.
- Context. Give the background it cannot guess: who the audience is, what you already tried, the constraints you are working under.
- Task.State exactly what you want done, as one clear instruction. Not “help with my email” but “rewrite this email to sound warmer and shorter.”
- Format. Say what the answer should look like: a bulleted list, a table, three options, a single paragraph, JSON.
- Constraints. Add the limits that matter: a word count, a reading level, things to avoid, a tone to hit.
Here is the difference in practice. A weak prompt:
Write a product description for my running shoes.
The same request with the parts filled in:
You are a copywriter for a running brand. Write a product description for a lightweight trail shoe aimed at weekend hikers who want grip and comfort. Keep it under 60 words, warm but not salesy, and end with one short line about the grippy outsole.
The second version leaves far less to chance. You told the model who to be, who it is writing for, exactly what to produce, how long, and what tone. That is the whole game.
Give examples and let it think
When the format is specific or the style is hard to describe, show the model instead of telling it. This is called few-shot prompting: you paste one to three worked examples before the real task, and the model matches the pattern. Suppose you want short, consistent meeting notes. Give it one:
Example. Input: “We agreed to ship Friday, Sam owns QA.” Output: “Decision: ship Friday. Owner: Sam (QA).” Now do the same for: [your notes]
One good example often does more than a paragraph of rules, because the model has something concrete to copy. For tasks that need reasoning, like a maths word problem, a logic puzzle, or a decision with tradeoffs, add a second instruction: ask it to work through the steps before answering. A simple “think step by step, then give your final answer” tends to reduce careless mistakes, because the model reasons on the page rather than blurting a guess. You do not need both techniques every time. Reach for examples when format matters, and for step-by-step when logic matters.
Common mistakes
Most disappointing answers trace back to a handful of avoidable errors. Watch for these.
- Too vague.“Make this better” gives the model no target. Say what better means: shorter, clearer, more formal, fewer bullet points.
- Too much at once. Cramming five tasks into one prompt usually gets you five half-done answers. Split them, or handle them one at a time in a chat.
- No format specified. If you do not say how the answer should look, you get whatever the model defaults to, which is often a wall of prose you then have to reshape.
- No examples. When you can picture the ideal output but struggle to describe it, not pasting an example is a wasted shortcut.
- Arguing instead of restarting.When a chat goes off the rails, piling on corrections often makes it worse, because the bad attempt stays in the model’s memory and colours what comes next. It is usually faster to edit your original prompt and start fresh.
Iterating: treat it as a conversation
Your first prompt is a draft, not a verdict. The people who get the most from these tools treat the exchange as a back-and-forth. Read the first answer, notice exactly where it fell short, and feed that back: “good start, now make the second point more concrete and cut the intro.” Small, specific corrections beat vague ones.
One underused move is to ask the model to grade its own work. Something like “before you finish, list two weaknesses in this draft and fix them” often surfaces problems it would otherwise leave in. And when a thread has drifted too far, do not keep wrestling with it. Go back, rewrite the original prompt with what you learned, and run it clean. Remember that everything in a long chat competes for the model’s attention, which is finite; a fresh, tight prompt often beats a cluttered thread.
Match the model to the task
The same prompt can land very differently depending on which model you send it to. Some are stronger at code, some at long documents, some at quick everyday drafting. Before you spend an hour tuning wording, make sure you are using a model suited to the job. ChatGPT vs Claude vs Gemini lays out where each one tends to win, and if you would rather answer a few questions and be pointed at one, the Which AI should you use? tool does exactly that.
You also do not have to write every prompt from scratch. Common jobs like summarising, rewriting, drafting emails, and turning notes into a plan have patterns that already work. The prompt library collects ready-made templates you can copy and adjust, which is a faster path than reinventing the structure each time.
A note on tokens and length
A longer prompt is not automatically a better one. Models read text in small chunks called tokens, and padding your request with filler both costs more and can bury the one instruction that matters. Include the context and examples the task genuinely needs, then stop. Concise and specific beats long and vague almost every time.
Frequently asked questions
What is prompt engineering?
Prompt engineering is the practice of writing the input to an AI model so you get a useful answer. In plain terms it means giving the model enough context, a clear task, and a specified format, then refining based on what comes back. It is less about secret phrases and more about being specific.
What makes a good prompt?
A good prompt tells the model who it should act as, what background it needs, exactly what you want done, and the shape the answer should take. If a smart stranger could do the task from your words alone, the model usually can too. Vague in, vague out.
What is few-shot prompting?
Few-shot prompting means showing the model one to three worked examples of the input and the output you want before you give it the real task. The examples set the pattern, so the model matches your style and format instead of guessing. Showing beats describing when the format is fiddly.
Should I be polite to the AI?
Politeness does not meaningfully change answer quality, so please and thank you are optional. What does help is clarity: specific instructions, context, and examples. Politeness costs a few extra tokens and nothing more, so use it if it feels natural, but do not expect it to earn better results.
Do the same prompts work in ChatGPT, Claude and Gemini?
The core structure carries across all three, since role, context, task and format help every model. The exact wording that lands best differs a little, and each model has its own strengths, so a prompt tuned for one may need small tweaks on another. Start with the same skeleton and adjust from there.
How long should a prompt be?
As long as it needs to be to include the context and examples the task requires, and no longer. Padding a prompt with filler does not help and can bury the instruction that matters. Include the details the model cannot guess, then stop.
The Scroll Team writes the lessons inside Scroll: Learn AI, a microlearning app that teaches how AI works in one minute a day. We read the papers and release notes so you do not have to.
