Lesson 2 of 5 · 6 min

How to Write a Good Prompt

Use a simple 4-part recipe (role, task, context, format) to turn a vague request into a clear one, then improve the answer with follow-up questions.

In this lesson

  • Use role, task, context and format in a prompt
  • Improve a weak prompt step by step
  • Use follow-up questions instead of starting again

Why your words matter

An AI assistant can only work with what you give it. A short, vague request gets a short, general answer. A clear request gets something you can actually use.

The good news is that you do not need special tricks or technical words. You just need to explain what you want, the way you would brief a helpful new colleague on their first day.

The 4-part recipe

A good prompt often has four parts. You do not always need all four, but thinking about them helps you avoid the most common problems.

  • Role: who should the AI act as? For example, “You are a friendly English teacher” or “Act as an experienced travel planner.”
  • Task: what exactly should it do? Use a clear action word: write, explain, summarise, list, compare, check.
  • Context: what does it need to know? Who will read the result, what is the situation, what have you already tried?
  • Format: how should the answer look? A list, a table, three short paragraphs, under 100 words, simple English.

The order does not matter much. What matters is that the AI is not left guessing. If you leave out the role, the AI picks a neutral voice. If you leave out the format, it decides the length for you, and it often writes more than you need.

Improving a weak prompt step by step

Let us take a real example. Imagine you want help with a message to your neighbour about noise.

Before (weak prompt): “Write a message to my neighbour.”

The AI does not know what the message is about, how you feel, or how long it should be. It will probably write something general and too formal.

Step 1, add task and context: explain that their music is often loud after 11 pm and that you have to wake up early for work.

Step 2, add role and tone: ask the AI to act as a calm, polite communicator, and say you want to stay on good terms.

Step 3, add format: ask for under 80 words, a friendly tone and one practical suggestion.

After (improved prompt): “You are a calm, polite communicator. Write a short message to my neighbour. Their music is often loud after 11 pm and I need to wake up early for work. I want to stay on good terms with them. Keep it under 80 words, friendly, and suggest turning the volume down after 10:30 pm on weekdays.”

The second version takes thirty seconds longer to write, but the result is usually ready to send with only small changes. Notice that nothing in it is technical. It is simply the information a person would also need to help you well.

Keep the conversation going

Your first prompt is only the start. A big advantage of a chat assistant is that it remembers what you said earlier in the same conversation. So instead of starting again, ask follow-up questions:

  • “Make it shorter.”
  • “Use a warmer tone.”
  • “Give me two other versions.”
  • “Which part might sound rude? Rewrite it.”
  • “Ask me three questions first, then write a better version.”

The last one is especially useful when you are not sure which details to include. Let the AI interview you, answer its questions, and the next draft will fit your situation much better.

You can also say what you liked: “Keep the first sentence, but change the ending.” Small, clear feedback works far better than “this is bad, try again”.

Finally, if a conversation goes in the wrong direction, open a new chat. A fresh start is often quicker than fixing a long, confused thread.

Practice

Open the AI assistant you normally use and paste the prompt below. Replace each part in [BRACKETS] with your own words.

Prompt
You are a [ROLE]. Help me improve this prompt: "[WEAK_PROMPT]". First tell me what is missing, using these four parts: role, task, context and format. Ask me no more than two short questions if you need details. Then write an improved version I can copy.
[ROLE]
e.g. friendly writing coach, patient teacher
[WEAK_PROMPT]
e.g. write a birthday message for my aunt
See an example result

Here is what your prompt is missing:
– Role: no role is given, so the tone may feel generic.
– Task: clear (write a birthday message).
– Context: I don't know your aunt's age, your relationship, or anything special about her.
– Format: no length or style, so I might write too much.

Two quick questions:
1. Is the message for a card, a text message or a voice note?
2. Is there a memory or quality of hers you want to mention?

Improved prompt (fill in the details):
"You are a warm, thoughtful writer. Write a birthday text message for my aunt, who is turning 60. She taught me to bake and always makes everyone laugh. Mention one of those things. Keep it under 50 words, warm and a little funny, with one emoji."

What to notice: The AI points out the gaps before writing, so you learn the recipe while you use it. Answer its questions in a follow-up message and the final text will sound much more personal.

Key takeaways

  • Clear prompts beat clever prompts
  • Role, task, context, format: check all four
  • Follow-ups and small feedback improve the result fastest