How to Write Better AI Prompts: A Complete Beginner's Guide
Learn how to write AI prompts that get useful answers. Master the five elements of a good prompt, see weak vs improved examples and copy ready-made templates.

Table of contents
What is an AI prompt?
An AI prompt is the instruction, question or request you give to an AI assistant such as ChatGPT, Claude or Gemini. It can be a single sentence ("Explain inflation simply") or a detailed brief that includes background, rules and the format you want back.
Modern AI assistants are built on large language models. They generate text by predicting what is likely to be a helpful continuation of your message. That means the wording, detail and structure of your prompt directly shape what you get. Learning how to write AI prompts is therefore less about technical tricks and more about clear communication.
You may hear the term prompt engineering. For everyday users it simply means writing and refining prompts deliberately instead of hoping the first attempt works. You do not need to know how to code.
Why prompt quality matters
An assistant cannot read your mind. If you ask for "a marketing plan", it has to guess your product, budget, audience and timeline, and the safest guess is a generic answer that fits everyone and helps no one.
Better prompts give you:
- More relevant answers, because the assistant knows your situation.
- Less editing, because tone, length and format are right the first time.
- Fewer errors, because you can tell the assistant to use only the information you supply.
- Repeatable results, because a good prompt can be saved and reused as a template.
None of this makes AI infallible. Assistants can still produce wrong or outdated information, so important facts should always be checked against reliable sources. A good prompt improves the odds; it does not replace your judgement.
The five elements of a good prompt
Most effective prompts contain five building blocks: role, context, task, constraints and output format. You do not need all five every time, but when an answer disappoints, one of them is usually missing.
1. Role
The role tells the assistant what perspective to take. "Act as a careful copy editor" produces different feedback from "act as an enthusiastic social media manager". Keep roles realistic and relevant to the job, and remember that a role changes style and focus, not the assistant's actual knowledge.
2. Context
Context is the background the assistant cannot know: who the answer is for, what your goal is, what you have already tried, and any facts it must respect. Context is usually the biggest upgrade you can make to a weak prompt.
3. Task
The task is the specific job. Use a clear verb such as write, compare, summarise, critique, outline or explain, and keep to one main job per prompt. "Write a 300-word product description" is clearer than "help with my product page".
4. Constraints
Constraints set boundaries: word count, tone, reading level, things to include and things to avoid. They stop the answer from drifting. Examples include "avoid jargon", "use UK spelling" and "do not make up statistics".
5. Output format
Say how you want the answer structured: a table, bullet points, an email with a subject line, step-by-step instructions or a code block. Format instructions save formatting time and make answers easier to scan.
Here is a reusable template that combines all five:
Role: Act as [a specific role]. Context: [Who the answer is for, your goal, relevant background and facts]. Task: [One clear job, starting with a verb]. Constraints: [Length, tone, reading level, things to include or avoid]. Output format: [Table / bullet list / email / numbered steps / code block].
Weak prompt vs improved prompt examples
The fastest way to learn is to compare. Each pair below shows a vague request and a version that uses the five elements.
Example 1: a customer email
Write an email to a customer about a delay.
Act as a customer service manager at a small online shop. A customer's order of a handmade ceramic mug is five days late because of a supplier issue. They have emailed to say they are annoyed. Write a reply that apologises sincerely, explains the delay in one sentence without blaming anyone, offers a 10% discount on their next order and gives a new estimated delivery date of [date]. Keep it under 120 words, warm and professional, with a subject line.
Example 2: a summary
Summarise this article.
Summarise the article below for a busy marketing director who needs to decide whether to read the full piece. Give me: a three-bullet summary, one sentence on why it matters for small businesses, and any claims that look unsupported. Use plain English and no more than 100 words in total. <article> [paste article] </article>
Example 3: a study plan
Help me learn Excel.
I am an office administrator who uses Excel only for basic lists. I want to learn formulas and pivot tables so I can prepare monthly sales reports. Create a four-week learning plan with 30 minutes of study per day. For each week list the topics, one practical exercise and one way to check I have understood. Present it as a table.
Prompt templates you can copy
Replace the details in [square brackets] and paste into your preferred assistant.
Writing
Act as an experienced editor who writes for [audience]. I need a [blog post / newsletter / product description] about [topic]. Goal: [inform / persuade / entertain]. Tone: [tone]. Length: about [number] words. Include: [key points]. Avoid: [clichés, jargon, claims you cannot support]. Output: a short outline first, then the full draft with a headline and subheadings.
Coding
Act as a senior [language] developer. I am building [short description] using [framework / version]. The function below should [expected behaviour] but currently [actual behaviour]. Explain the likely cause in plain English, then show a corrected version with comments on what changed. Do not change anything unrelated. Output: explanation first, then a code block. <code> [paste code] </code>
Marketing
Act as a marketing strategist for a [type of business] in [location]. Our target customer is [description] and our main goal is [goal, e.g. 50 new enquiries this month]. Budget: [amount]. Suggest five campaign ideas. For each, give the channel, the core message, the first step and one way to measure success. Avoid ideas that need a large team. Output: a table.
Research
Act as a research assistant. I need to understand [topic] well enough to [purpose, e.g. brief my manager]. Explain the topic in simple terms, list the main viewpoints or approaches, and note what is still disputed or uncertain. Suggest what kinds of sources I should check to verify this, and do not invent specific citations or statistics. Output: headings for Overview, Key viewpoints, Open questions and Where to verify.
Business
Act as an operations consultant for a small business with [number] employees in [industry]. Our problem: [describe the problem]. What we have tried: [list]. Propose three practical solutions. For each, list the benefits, costs, risks and the first step we can take this week. Recommend one option and explain why. Keep the language non-technical. Output: a comparison table followed by a short recommendation.
Common beginner mistakes
- Writing prompts that are too short. One-line requests leave too much to guesswork.
- Leaving out the audience. The right explanation for a child, an expert and a customer are all different.
- Asking for several unrelated things at once. Break big jobs into steps.
- Not specifying the format. If you want a table or an email, say so.
- Treating the first answer as final. Use follow-ups to refine, such as "shorter", "more specific" or "give me a different angle".
- Believing everything the AI says. Check facts, figures, legal points and anything health-related with trustworthy sources.
- Sharing private information. Do not paste passwords, personal data or confidential material unless you are sure it is allowed.
- Starting from scratch every time. Save prompts that work and reuse them.
Advanced prompt improvement techniques
Once the five elements feel natural, these techniques help you handle harder tasks. You can see several of them applied in our collection of the top 10 Claude AI prompts.
Ask the assistant to question you first
Before you answer, ask me up to five questions that would help you give a better response. Wait for my answers.
Show an example (few-shot prompting)
If you want a particular style, include one or two examples of what good looks like. The assistant will pick up on tone, length and structure.
Write product taglines in the same style as these examples: - "Coffee that keeps up with you." - "Soap, without the nonsense." Now write five taglines for [product].
Break complex work into steps
Instead of requesting a finished report in one go, move through stages: gather the key points, create an outline, draft each section, then edit. You can review and correct between stages, which is usually faster than fixing one enormous answer.
Ask for critique, then revision
Review your answer above as a critical expert. List three weaknesses, then write an improved version that fixes them.
Separate instructions from material
When you paste long text, mark it clearly, for example with <text> and </text> tags or a line such as "The text begins below". This helps the assistant tell your instructions apart from the content to work on.
Define what success looks like
Add simple acceptance criteria: "The answer is good if a beginner could follow it without searching anything else" or "Include at least two concrete examples". Clear targets reduce guesswork.
Frequently asked questions
What is the easiest way to start writing better AI prompts?
Begin with the five elements: give the assistant a role, the context, one clear task, constraints such as length and tone, and the output format you want. Even adding two or three of them noticeably improves most answers.
Do I need to learn prompt engineering to use AI tools?
No technical background is needed. For most people, prompt engineering means writing clear instructions, adding useful context and refining the answer with follow-up messages.
Do the same prompts work in ChatGPT, Claude and Gemini?
Generally yes. Clear, specific prompts work well in all major assistants. The results will differ in style and detail, so you may need to adjust wording slightly for each tool.
How long should a good prompt be?
As long as it needs to be and no longer. Include details that change what a good answer looks like, such as audience, goal and format, and leave out anything that does not.
Why does AI give me generic answers?
Generic answers usually come from generic prompts. If the assistant does not know your audience, situation or goal, it falls back on safe, general statements. Add specific context and constraints, and ask for concrete examples.
Can I trust the facts in AI responses?
Not blindly. AI assistants can make mistakes or state incorrect information confidently. Check important facts, numbers, quotes and advice against reliable sources, especially for legal, medical or financial topics.
Conclusion
Writing better AI prompts is a skill you can build quickly. Start with the five elements (role, context, task, constraints and output format), compare weak and improved versions of your own requests, and keep a small library of templates that work. Remember that the first answer is a draft, and that you remain responsible for checking facts and decisions.
When you want ready-made examples to practise with, explore our guide to the top 10 Claude AI prompts and adapt them to your own work.
- prompt engineering
- AI prompts for beginners
- ChatGPT prompts
- prompt templates
- AI tutorials
This article is for general information. AI assistants can make mistakes, so verify important facts. Read our disclaimer.
Related articles

Top 10 Claude AI Prompts to Boost Your Productivity in 2026
Ten practical, copy-ready Claude AI prompts for planning, writing, coding and running a business, with examples, tips and the mistakes to avoid.