How to Write Better AI Prompts: A Beginner’s Guide With Examples

A simple 5-part formula and seven habits that make ChatGPT, Claude or Gemini give you much better answers, with before-and-after examples.

·

·

4–7 minutes
How to write better AI prompts with a simple formula and examples

Ask two people the same question in an AI chatbot and they can get completely different answers. Usually the difference isn’t the tool. It’s the prompt.

The good news is that writing better prompts isn’t a technical skill. It’s mostly about giving the AI the same information you’d give a smart new colleague. This guide covers the simple habits that make AI answers more useful, with before-and-after examples you can copy.

Why vague prompts get vague answers

AI tools don’t know who you are, what you’re working on or what “good” looks like for you. If you type “write a post about healthy eating”, it has to guess everything: the audience, the length, the tone, the format. The result is usually bland because bland is the safest guess.

The 5-part prompt formula

You don’t need all five every time, but the more you include, the better the answer.

  • Role: who the AI should act as (“You’re an experienced hiring manager”)
  • Task: exactly what you want (“Review my resume summary”)
  • Context: the background it needs (“I’m applying for junior marketing roles”)
  • Format: how the answer should look (“3 bullet points, under 50 words each”)
  • Constraints: what to avoid (“No jargon. Don’t invent details.”)

Before and after examples

Example 1: Getting advice

  • Vague: How can I be more productive?
  • Better: I work from home as a graphic designer and lose focus after lunch. Suggest 5 practical changes I can try this week. Keep each one to two sentences and skip generic advice like “drink more water”.

Example 2: Writing something

  • Vague: Write an Instagram caption for my bakery.
  • Better: Write 3 short Instagram captions for a small family bakery posting a photo of fresh cinnamon rolls on a rainy Monday morning. Warm, friendly tone. Under 30 words each. One should include a question to get comments.

Example 3: Learning something

  • Vague: Explain inflation.
  • Better: Explain inflation to someone with no economics background, using an example about grocery prices. Then give me one question to check I understood.

7 habits that improve almost any prompt

1. Give an example

If you want a certain style, show it. “Write it like this: [example]” works better than describing the style in words.

2. Ask it to ask you questions first

Before you answer, ask me up to 5 questions about anything you need to know to give me a great result.

This one line often improves results more than anything else.

🧪 Tested example

We ran this prompt in ChatGPT (free plan) in October 2026 using the “ask me questions first” line on a deliberately vague request. The answer below is copied word for word (trimmed).

Sample input: “Write an Instagram caption for my bakery. Before you answer, ask me up to 5 questions about anything you need to know to give me a great result.”

What ChatGPT returned:

1. What’s your bakery’s name?

2. What are you posting about? (Cakes / Cupcakes and pastries / Bread and cookies / A variety of bakery products / A special offer or new product)

3. What’s your main goal for this post? (Get more orders / Get likes, comments, and shares / Build brand awareness / Promote a discount or special offer)

4. What vibe should the caption have? (Warm and tempting / Fun and playful / Elegant and premium / Trendy and catchy / Simple and professional)

5. Any extra details to include? (Optional)

Our take: This is the whole point of the habit in one screen. Without the extra line, ChatGPT would have guessed the product, the goal and the tone. With it, it asked for exactly the details a good caption needs. Answer these five questions and the caption you get back will be about your bakery, not a generic one.

3. Set the length and format

“A table with 3 columns”, “5 bullet points”, “under 100 words”. AI is very good at following format instructions, and it saves you editing time.

4. Tell it what not to do

“Don’t use cliches”, “don’t make up statistics”, “don’t rewrite my wording, only point out problems”. Constraints are just as useful as instructions.

5. Break big tasks into steps

Instead of “write my business plan”, start with “list the sections a business plan for [business] should have”, then work through them one at a time.

6. Iterate instead of starting over

If the first answer is close, don’t rewrite the whole prompt. Reply with what to change: “Shorter”, “more casual”, “replace the second point with something about pricing”.

7. Ask it to check its own work

Review your answer. Is anything inaccurate, unclear or missing? Fix it and tell me what you changed.

A reusable prompt template

You are [role].
I need you to [task].
Context: [who it's for, what it's about, any background].
Format: [length, structure, tone].
Avoid: [things you don't want].
Before you start, ask me any questions you need answered.

Save this somewhere handy and fill in the brackets whenever you need it.

Common mistakes

  • Trusting facts without checking. AI can state wrong information confidently. Verify anything important, especially numbers, dates, names and sources.
  • Sharing private information. Leave out passwords, financial details and other people’s personal data.
  • Giving up after one try. The second or third version is usually much better than the first.

Frequently asked questions

Do prompts work the same in ChatGPT, Claude and Gemini?

The same principles work in all of them. Clear context, a specific task and a defined format improve results in any AI chatbot.

Do I need to learn “prompt engineering”?

Not for everyday use. The habits in this guide cover most of what regular users need. Advanced techniques matter more for developers building AI products.

Why does AI give different answers to the same prompt?

Most chatbots include some randomness so answers don’t sound repetitive. If you need consistency, give more specific instructions and examples.

Put it into practice

Take a prompt you used recently that gave a disappointing answer. Rewrite it using the 5-part formula and the “ask me questions first” line. Compare the two answers. Most people notice the difference straight away. When you’re ready, try these habits on real tasks like writing professional emails or studying for an exam.

Related guide: learn how to make a budget with AI.

Written by

More about me →

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *