Lesson 10 of 12 · Using It Well
Your First Prompt
Write prompts that work the first time: task, context, audience, format and examples, with before-and-after prompts and how to refine answers.
- 7 min read
- Beginner
- Reviewed
- What a prompt is and why vague prompts give generic answers
- The five parts of a good prompt
- How to improve an answer by continuing the conversation
- Simple habits that make every prompt better
Talking to a model
You do not need special words or tricks. A good prompt is simply what you would write to a smart new colleague who knows nothing about your situation. They are capable, but they cannot read your mind.
Why vague prompts give generic answers
Remember how a model works: it continues your text in the most likely way. If your prompt is vague, the most likely answer is an average one, written for an average reader with an average purpose.
Ask "Write about dogs" and the model must guess everything. Who is it for? How long? What about dogs? It guesses the middle of the road, and you get a bland essay.
The five parts of a good prompt
| Part | What it tells the model | Example |
|---|---|---|
| Task | What to do, starting with a clear verb | "Write an introduction for a leaflet..." |
| Context | Background and purpose | "...for an animal shelter in a big city." |
| Audience | Who will read the result | "First-time dog owners who live in flats." |
| Format | Length, structure, tone | "About 120 words, friendly, then 3 tips as bullet points." |
| Examples | A sample of what you want (optional) | "Here is a leaflet we liked: ..." |
You rarely need all five, but every one you add removes a guess.
The program below builds a prompt from these parts, so you can compare a vague prompt with a specific one.
def build_prompt(task, context="", audience="", output_format=""):
lines = [task]
if context:
lines.append("Context: " + context)
if audience:
lines.append("Audience: " + audience)
if output_format:
lines.append("Format: " + output_format)
return "\n".join(lines)
vague = build_prompt("Write about dogs.")
specific = build_prompt(
"Write an introduction for a leaflet about owning a dog.",
context="The leaflet is for an animal shelter in a big city.",
audience="First-time dog owners who live in flats.",
output_format="About 120 words, friendly tone, then 3 practical tips as bullet points.",
)
print("VAGUE PROMPT:")
print(vague)
print()
print("SPECIFIC PROMPT:")
print(specific)
print()
print("Words:", len(vague.split()), "vs", len(specific.split()))Forty extra words take thirty seconds to type and save several rounds of "no, not like that".
Before and after
| Vague | Specific |
|---|---|
| "Summarise this." | "Summarise this report in 5 bullet points for my manager, who has 2 minutes. Put any deadlines first." |
| "Help me with my CV." | "Here is my CV and a job advert. Suggest 5 specific changes that make my CV fit this job better. Do not invent experience I don't have." |
| "Explain inflation." | "Explain inflation to a 14-year-old in under 150 words, using an example with the price of a bus ticket." |
| "Write a Python function to clean data." | "Write a Python function that takes a list of email addresses, removes duplicates and blank entries, lower-cases them, and returns the clean list. Include one example call." |
Keep the conversation going
Your first prompt is a first draft. The best results usually come from follow-ups:
- "Make it shorter and less formal."
- "Give me three different versions."
- "The second point is wrong: the deadline is Friday. Please fix it."
- "Now turn this into an email to the team."
Habits that always help
- Give it the material. Paste the document, email or data rather than describing it. (This also reduces hallucinations.)
- Say what to avoid. "No jargon." "Don't change the meaning." "Do not invent figures."
- One task at a time. Big jobs work better as a series of smaller steps.
- Show an example of the style or format you want, if you have one.
- Check the result, especially facts and numbers.
You can practise assembling prompts from parts in the Prompt Builder, and the Prompt Engineering course goes much deeper.
Common mistakes
Assemble a prompt from its parts: the task, the context, the tone and the length.
task = "Write a thank-you note to my neighbour" context = "She watered my plants for two weeks while I was away" tone = "warm and short" length = "under 60 words" # Print a four-line prompt, exactly like this: # Write a thank-you note to my neighbour. # Context: She watered my plants for two weeks while I was away. # Tone: warm and short. # Length: under 60 words.
Which prompt is most likely to get a useful answer first time?
Summary
- A prompt is everything you tell the model; write it as you would brief a smart new colleague.
- Vague prompts give average answers, because the model fills every gap with the most likely guess.
- Good prompts state the task, context, audience and format, and sometimes include examples.
- Improve answers with follow-up messages, and invite the model to ask you questions.
- Give it the material, say what to avoid, and check the result.
Next: what using AI costs, and the limits you will run into.
Finished reading? Tick it off to track your progress.