How to Write Good AI Prompts: A Beginner's Guide

A prompt is the message you give an AI assistant. Good prompts are specific about the task, give the context the assistant cannot guess, say what the output should look like and are refined over several rounds. There is no magic wording. The assistant works better when you explain what you would explain to a capable new colleague.
What a prompt is
A prompt can be a question, an instruction or a block of text to transform. The assistant predicts a helpful response from everything you wrote and from the earlier messages in the conversation. It does not know your situation, your audience or your standards unless you tell it. Most disappointing answers come from missing information, not from a lack of tricks.
Be specific
Compare two requests. "Write about website speed" could produce anything. "Write a 300-word explanation of why large images slow down a small business website, for non-technical owners, ending with three steps they can take today" gives the assistant a subject, a length, an audience and a shape. Specify:
- The task: write, summarize, compare, rewrite, explain, plan, critique.
- The audience: who will read this and what they already know.
- The length and format: paragraphs, bullets, table, steps.
- The tone: friendly, formal, direct.
- The goal: what the result is for.
Give context and examples
Paste the facts the answer should be based on: your notes, the product details, the email you are replying to. If you want a particular style, include a short example of text you like and say what to copy about it, such as sentence length or warmth. If you want the assistant to avoid something, say so. Do not include confidential or personal data you should not share, see the privacy basics guide.
Use roles and structure
Giving a role can set the level and perspective: "act as an experienced editor and point out unclear sentences". Structure long prompts clearly, with labeled parts such as Task, Context, Constraints and Output format. Ask for step-by-step reasoning on complex problems, so you can see where it goes wrong. For decisions, ask for options with pros and cons rather than one verdict.
A reusable template
- Task: what I want you to do.
- Context: what you need to know, with the facts pasted below.
- Audience and tone: who will read it and how it should sound.
- Constraints: length, things to avoid, things to include.
- Format: how to present the result.
- Check: if information is missing, ask me questions before answering.
Iterate
Treat the first answer as a draft. Refine it with short follow-ups: "shorter, and remove the jargon", "give three alternative headlines", "what is the weakest argument here?", "rewrite the second paragraph with a concrete example". If the conversation drifts, start a new one with an improved prompt. Keep prompts that work in a document, so you can reuse them.
A worked example
A café owner wants a newsletter. First prompt: "Write a newsletter." The result is generic. Second try: "Write a 150-word newsletter for regular customers of a small neighborhood café. Announce that from next Monday we open at 7 instead of 8, and that the cinnamon rolls are now baked twice a day. Warm, brief, no exclamation marks, end with an invitation to reply with suggestions." The draft is usable. The owner then asks: "Offer three subject lines" and picks one. Total time: five minutes, and the content, facts and voice were hers.
Check the output
Verify facts, numbers and names. Assistants can state wrong things with confidence, see the hallucinations guide. Read the text aloud and edit it so it sounds like you. If you publish it, consider the points in the AI disclosure guide.
Common mistakes
- Writing one vague line and expecting a perfect result.
- Asking several unrelated things in one message.
- Not supplying the facts, then being surprised by invented ones.
- Accepting the first answer without questions.
- Copying long prompts from the internet that do not match your task.
Prompts for common tasks
- Summarize: "Summarize the text below in five bullets for a busy manager. Keep numbers exact. Flag anything unclear."
- Rewrite: "Rewrite this email to be friendlier and shorter, keeping the dates and the request unchanged."
- Brainstorm: "Give me ten names for a service that helps freelancers get paid on time. Group them by tone."
- Critique: "List the three biggest weaknesses in this plan and the question I should answer first."
- Learn: "Explain DNS as if I run a bakery, then give me three quiz questions."
Before and after: three quick rewrites
| Weak prompt | Stronger prompt |
|---|---|
| Write a product description. | Write a 60-word description of a handmade soy candle for a gift shop page. Mention burn time of 40 hours and the cedar scent. Warm tone, no superlatives. |
| Explain taxes. | Explain in plain words how invoicing works for a freelancer in my country, with a short example, and list three questions I should ask an accountant. |
| Fix my text. | Correct only grammar and typos in the text below. Do not change wording or style. List the changes you made. |
Asking the assistant to ask you
When a task is complex, finish your prompt with an invitation: "Before you start, ask me up to five questions that would make the result better." This often surfaces things you forgot to mention, such as the audience or a hard limit on length. Answer the questions briefly and let the assistant continue. It turns a one-way request into a short briefing, the same way you would brief a person.
FAQ
Is there a perfect prompt?
No. A good prompt is one that fits the task and gets improved through follow-ups.
How long should a prompt be?
As long as needed to give the facts and constraints. Often a few sentences to a few paragraphs.
Do I need to say please?
Politeness is not required. Clarity matters more.
Do prompts work the same in every assistant?
Mostly, but models differ. Test your prompt in the tool you use.
Can I save my prompts?
Yes. Keep a document with the ones that work and notes on when to use them.
Your next step: take a task you did this week, write it again using the six-part template and compare the result with what you got before.