Ever asked an AI chatbot a question and got back a bland, generic answer? You're not alone. The good news: the fix is usually not a smarter AI, it's a clearer request. This guide to prompt engineering for beginners walks you through 7 simple tips, with real prompt examples, a copy-and-paste prompt template and a live prompt builder you can play with right here on the page.
A prompt is simply the message you type into an AI tool like ChatGPT, Claude or Gemini. “Prompt engineering” sounds technical, but it really just means writing that message well.
Why prompts matter more than you think
AI chat assistants are built on large language models: programs trained on huge amounts of text to predict what words should come next. (If you're curious about the mechanics, our guide on how ChatGPT works explains it in plain English.)
Here's the key idea: the AI can only work with what you give it. It can't see your screen, read your mind or know your deadline. When your prompt is vague, it fills the gaps with the most “average” answer. When your prompt is specific, the answer becomes specific too.
Prompt engineering for beginners: 7 tips that work
You don't need to use all seven tips every time. Think of them as a toolbox. For a quick question, one or two is plenty. For anything important, reach for more.
1. Give context
Context is the background information the AI can't guess: your situation, your goal and any material it should work from. It is the single easiest upgrade you can make.
Give me a workout plan.
Give me a workout plan. I'm 35, haven't exercised in a year, have 20 minutes a day, and only have a yoga mat at home. My goal is to feel more energetic, not to lose weight.
Same request, but now the AI knows your time, equipment, fitness level and goal. If you have source material, such as notes, an article or an email you're replying to, paste it in and say what it is.
2. Assign a role
Starting with “You are a…” tells the AI what perspective, vocabulary and tone to use. A role is just a character or job title for the AI to play.
You are a patient high-school maths tutor. Explain why dividing by zero is undefined, then check my understanding with one simple question.
Roles work best when paired with the other tips. “You are a world-class chef” on its own won't help much; “You are a chef who specialises in quick weeknight meals for families” gives the AI a much clearer target.
3. Be specific about the format
If you know how you want the answer laid out, say so. Bullet points, a table, numbered steps, a word limit, a reading level: all of these are fair game.
Compare renting vs buying a home for a first-time buyer. Format: a table with columns for "Factor", "Renting" and "Buying", then a 2-sentence summary. Keep it neutral; I'm not asking for a recommendation.
Format instructions save you the most editing time, because you get something you can actually use straight away.
4. Show examples (few-shot prompting)
Sometimes it's easier to show than tell. Giving one or more examples of what you want is called few-shot prompting (“shots” just means examples). The AI picks up the pattern: the tone, length and structure.
Write product descriptions in this style: Example: "Cloud Mug. Holds 350ml of coffee and keeps it warm for an hour. Dishwasher-safe. Smiles back at you." Now write one for: a canvas tote bag with an inside pocket.
5. Break big tasks into steps
Asking for an entire business plan, essay or app in one go tends to produce something shallow. Instead, split the job into smaller stages and handle them one at a time, checking each result before moving on.
Step 1: Suggest 5 possible titles for a blog post about starting a vegetable garden on a balcony. Wait for me to pick one before writing anything else.
Then you pick a title, ask for an outline, tweak the outline, and only then ask for the draft. You stay in control, and mistakes get caught early. This step-by-step idea is also at the heart of AI agents, which break goals into smaller actions on their own.
6. Set constraints
Constraints are rules and limits: length, tone, words to avoid, what to do if the AI isn't sure. They keep the answer focused.
Explain what inflation is in under 100 words. Use a friendly tone and one everyday example. If you're not sure about something, say so rather than guessing.
One trick: phrase constraints as what you want, not only what you don't. “Use short, everyday words” usually works better than “don't be complicated.”
7. Iterate and ask for revisions
Your first prompt doesn't have to be perfect. AI chats remember the conversation so far, so you can simply reply with what to change, much like giving feedback to a colleague.
Make it shorter and more casual. Good, but the second point is too vague. Add a concrete example. Give me 3 different versions so I can choose. What questions would you ask me to make this better?
Build your own prompt (interactive)
Time to practise how to write better AI prompts. Pick a preset or fill in your own details, watch the strength meter climb, and copy the result into whichever AI assistant you use.
🛠️ Try it: the prompt builder
Fill in as many boxes as you like, or start from a preset. Your prompt assembles itself below. Nothing you type leaves this page.
- Role: Add a role so the AI knows what expertise and tone to use.
- Task: Say exactly what you want done. Start with a verb: write, summarise, explain, list.
- Context: Share background the AI can't guess: your situation, goal, or source material.
The meter only checks which ingredients are filled in, not how good they are. It's a nudge, not a grade.
Start typing above (a Task is the best place to begin) and your prompt will appear here.
See the difference: before and after
These prompt examples show how much a few extra details can change the result. Flip each card to compare.
🔁 Before & after: prompt examples
Tap After on each card to see how a few extra details change the answer. The replies are hand-written illustrations, not real AI output, but they show the typical difference.
Trip planning
Vague prompt
Plan a trip to Italy.
Sample reply (illustrative)
Italy is a wonderful destination! You could visit Rome, Florence, Venice and the Amalfi Coast. Consider the season, your budget and your interests...
Work email
Vague prompt
Write an email to my boss.
Sample reply (illustrative)
Dear [Boss's name], I hope this email finds you well. I wanted to reach out regarding [topic]...
Learning a topic
Vague prompt
Explain blockchain.
Sample reply (illustrative)
Blockchain is a distributed ledger technology that uses cryptographic hashing and consensus mechanisms to maintain an immutable record of transactions across a decentralised network...
Social media
Vague prompt
Write a post about my coffee shop.
Sample reply (illustrative)
☕ Come visit our amazing coffee shop! We have the best coffee in town. #coffee #cafe #love #instagood #foodie...
Studying
Vague prompt
Help me study for my history test.
Sample reply (illustrative)
Sure! Here are some general study tips: make a schedule, review your notes, use flashcards, get enough sleep...
A free prompt template you can copy
Here is the structure from this guide as a reusable prompt template. Copy it, replace the brackets, and delete any lines you don't need. It works as a starting point in any chat-style AI tool.
You are [ROLE, e.g. an experienced travel planner]. Task: [WHAT YOU WANT, starting with a verb: write / explain / summarise / list]. Context: [BACKGROUND the AI can't guess: your situation, goal, source text]. Audience: [WHO it's for and their level]. Format: [SHAPE of the answer: bullets, table, steps, headings]. Constraints: [LIMITS: length, tone, things to avoid]. Example of the style I like (optional): """ [PASTE A SHORT SAMPLE] """ If anything is unclear, ask me a question before you start.
Common prompting mistakes to avoid
- Being vague. “Make it better” leaves the AI guessing. Better how: shorter, friendlier, more formal?
- Cramming everything into one prompt. Five tasks in one message usually means five half-done tasks. Split them up.
- Only saying what not to do. A list of “don'ts” gives no direction. Describe what good looks like.
- Trusting the answer blindly. AI tools can sound confident and still be wrong, sometimes inventing facts (often called “hallucinating”). Double-check anything important, like dates, numbers, quotes, health or legal information.
- Giving up after one try. If the first reply misses, tell the AI what's wrong. A quick follow-up is often faster than rewriting the whole prompt.
🕵️ Mini-game: spot the problem
Round 1 of 4 · Score 0
Write something about dogs.
What's the main problem with this prompt?
ChatGPT prompt tips beyond text
The same habits carry over to other kinds of AI. Image tools, for example, also respond far better to specific details about subject, style, lighting and composition. If that sounds fun, read how AI image generators work to see why describing a picture clearly matters so much.
Key takeaways
- A prompt is just your message to the AI. Prompt engineering means writing it clearly.
- Give context, a role, and a clear format to move from generic to genuinely useful answers.
- Show an example when describing the style is hard; the AI will follow the pattern.
- Split big jobs into steps and set constraints like length and tone.
- Treat the first reply as a draft: ask for revisions, and fact-check anything important.
- Never paste passwords, financial details or confidential data into AI tools.
Frequently asked questions
What is prompt engineering in simple words?
Prompt engineering is the skill of writing instructions for an AI tool so it gives you useful answers. In practice it means being clear about what you want, giving helpful background, and saying what the answer should look like. You don't need any coding or technical knowledge to do it.
Do I need to learn coding to write good AI prompts?
No. Prompts are written in everyday language, the same way you would brief a helpful colleague. Clear thinking and specific details matter far more than technical knowledge.
Do these prompt tips work with ChatGPT, Claude and Gemini?
Yes. The basics in this guide (context, a role, a clear format, examples, steps, constraints and follow-up revisions) work across popular AI chat assistants. Each tool has its own style, so you may need a small tweak, but the core habits carry over.
How long should a prompt be?
As long as it needs to be, and no longer. A one-line prompt is fine for a simple question, while a task like rewriting a report deserves a few sentences of context and format. If the answer keeps missing the mark, that usually means some detail is missing.
Is it safe to paste personal information into an AI chatbot?
Be careful. Depending on the service and your settings, what you type may be stored or reviewed, so avoid pasting passwords, ID numbers, financial details, health records or confidential work data. Remove names and private details, or use made-up placeholders instead.
🧠 Quick check: are you prompt-ready?
1. Which prompt is likely to give the most useful answer?
2. What is 'few-shot prompting'?
3. The AI's first answer is close but too long. What's the best next step?
4. Which of these should you avoid pasting into an AI chatbot?
That's it: you now know more about prompting than most people who use AI every day. Open your favourite assistant, grab the template above, and try one tip at a time. Small changes in how you ask lead to big changes in what you get.