AI Exercises

How to write a prompt for AI (with before and after examples)

Better prompts23 November 2026 · 7 min read

To write a prompt for AI, say what you want (the task), add the details that make it yours, say what shape the answer should take (the format), and say how it should sound (the tone). That's it. A prompt is just the message you type into a chatbot like ChatGPT, Gemini or Claude, and the more of those four things you include, the less guessing the AI has to do.

Below you'll find the recipe in plain English, then lots of before-and-after example prompts for everyday jobs. Copy any of them, swap in your own details and try them.

Why a short prompt gets a bland answer

AI chatbots are good at filling gaps, but they fill them with the most average answer they can think of. Ask for "a birthday message" and you get something that would suit anyone, which means it suits nobody in particular.

Think of it like asking a friend to pick up "some bread". You might get the right loaf. You might not. Say "a small wholemeal loaf, sliced, under £2" and you will.

The good news: you don't need special words or tricks. You just need to say what you'd tell a helpful person who has never met you.

Practise this for real. Be specific: what you want, the details, and how it should sound. A 5-minute hands-on mission with instant feedback, free.
Try it free

How to write a prompt for AI: the four-part recipe

Every strong prompt answers four questions. You don't always need all four, but checking for them takes seconds.

  1. Task: what do you want? Start with a clear action word: write, summarise, plan, explain, list, compare, rewrite.
  2. Details: what does it need to know? Who it's for, what happened, the names, the numbers, the deadline, anything that makes it personal.
  3. Format: what should the answer look like? A list, a table, three options, one paragraph, under 100 words, a step-by-step guide.
  4. Tone: how should it sound? Warm, formal, friendly, firm but polite, simple enough for a 10-year-old.

Here's the recipe in action:

Write a thank-you message for my neighbour Priya, who fed my cat Biscuit all week while I was away. Make it warm and a little funny, and keep it under 50 words.

Task: write a thank-you message. Details: Priya, the cat, the week away. Format: under 50 words. Tone: warm and a little funny.

Prompt examples: before and after

Each "before" is the kind of prompt most people type first. Each "after" uses the recipe. Notice that the "after" versions aren't clever. They're just more specific.

Writing an email

Before:

Write an email to my landlord about the boiler.

After:

Write a short, polite but firm email to my landlord, Mr Davies. The boiler has stopped working twice this month and I have no hot water today. Ask him to arrange a repair this week and to confirm a date. Keep it under 120 words.

For more on this, see our guide to writing emails with ChatGPT.

Planning meals

Before:

Give me some dinner ideas.

After:

Suggest 5 easy weeknight dinners for 2 adults. One of us is vegetarian. Each should take under 30 minutes and use ingredients from a normal UK supermarket. Show them as a list with a one-line description each.

Understanding a confusing letter

Before:

What does this mean?

After:

Explain this letter from my energy supplier in plain English. Tell me in 3 bullet points what it says, and then tell me if there's anything I need to do and by when. Here's the letter:
[paste the letter here, with your account number and address removed]

Learning something new

Before:

Explain pensions.

After:

Explain the difference between a workplace pension and a personal pension in simple terms, as if I've never had a pension before. Use one everyday example for each and keep it under 200 words.

AI can explain general ideas like this well, but for decisions about your own money, speak to a qualified adviser.

Planning a trip

Before:

Plan a trip to Edinburgh.

After:

Plan a relaxed 2-day trip to Edinburgh for two people in their 60s who enjoy history and good food but don't want to walk more than about 5 miles a day. Lay it out as Day 1 and Day 2 with morning, afternoon and evening.

Writing a social post

Before:

Write a post about my lost dog.

After:

Write a short post for my local Facebook group about my lost dog, Bramble: a small brown terrier with a red collar, last seen near Victoria Park on Sunday evening. Ask people to check sheds and garages and to message me if they see her. Friendly and urgent, under 80 words.

Getting a gift idea

Before:

Gift ideas for my dad.

After:

Suggest 8 birthday gift ideas for my dad, who's 72, loves gardening and crosswords, and says he "doesn't need anything". Budget up to £40. Put them in a table with the idea, rough price and why he might like it.

Three extras that make prompts even better

Once you're comfortable with the recipe, these three habits will lift your results again.

Show an example

If you want a particular style, paste an example and say "match this". Showing beats describing. This is often called few-shot prompting, and you can practise it in our examples lesson.

Here are two messages I've sent friends before. Write a thank-you note to Sam in the same style, same length and same sign-off:
[paste your two examples here]

Give it a role

Telling the AI who to be changes what it focuses on. An editor spots different things than a cheerleader does. Try it in the role lesson.

Act as a strict but kind editor. Give me 3 specific ways to improve this short bio:
[paste your text here]

Let it ask you questions

Not sure what details matter? Ask the AI to interview you first.

I need to give a short speech at my mum's 80th birthday party. Before writing anything, ask me up to 5 questions so you can make it personal.

Don't start again: just follow up

If the first answer isn't right, you don't need to rewrite your prompt from scratch. Reply in the same chat, the way you would with a person:

Make it shorter and less formal.
Good, but remove the second paragraph and add that I'm free on Thursday.
Give me two more versions: one funnier, one more serious.

A conversation of three or four short messages often gets a better result than one long, perfect prompt.

What not to put in a prompt

A few safety habits worth building now:

Frequently asked questions

What is a prompt in AI?

A prompt is the message you type (or say) to an AI chatbot. It can be a question, an instruction, or a piece of text you want help with. There's no special format: plain English works.

How long should a prompt be?

Long enough to include the task, the key details, the format and the tone. For most everyday jobs that's one to four sentences. If you're pasting in a document, the prompt can be longer, and that's fine.

Does the same prompt work in ChatGPT, Gemini and Claude?

Yes. The four-part recipe works in any AI chatbot, including ChatGPT, Gemini, Claude, Microsoft Copilot and Meta AI. The wording of the answers will differ, but clear prompts get better results everywhere.

Do I need to be polite to the AI?

You don't have to, but writing as you'd speak to a helpful person tends to produce clear prompts. What matters most is being specific.

Start with one prompt today

Pick one small job you'd normally do yourself, like a message, a list or a plan, and write a prompt for it using task, details, format and tone. Then follow up once to improve it. If you'd like guided practice with instant feedback, our free first great prompt lesson takes about five minutes, and when you're ready for more, read our tips for getting better answers from ChatGPT.

Learn AI by doing it. Short, hands-on missions with a real AI and instant feedback. 12 missions are free.
Start free