Class 9 · Unit 4: Generative AI · Lesson 4.2 · 40 min
Prompting: role, task, context, format
Same tool, same minute. Rahat gets four paragraphs of beautiful nothing. Hiba gets six lines a parent will read.
Today you will: Build a prompt: role, task, context, format · Judge the first answer, then fix the prompt · Keep every prompt free of personal data
Story
Two students, one job: a short notice for parents about the science exhibition.
Rahat types: "write a notice about the science exhibition."
What comes back is four paragraphs of beautiful nothing — "We are delighted to invite our esteemed parents to an enriching showcase of scientific temper" — no date, no place, no time, and a sentence about refreshments nobody promised.
Hiba types a longer thing. She names who is writing, what is needed, what the reader already knows, and how long it must be.
What comes back is six lines, with blanks where the date and the hall should go, in language a parent will actually read.
Same tool. Same minute. The difference is entirely in what was asked.
Watch
Asking properly — — scan code 9.4.2 in the printed book.
Learn it
The model fills whatever you leave out with what is generally likely, which is how a vague request returns "esteemed parents" and refreshments nobody promised. A good prompt gives the model the context it needs in four parts: Role, Task, Context, Format. The first answer is rarely the one you keep, so you judge it and fix the prompt. And one rule never bends: no personal data goes into a prompt.
Words to know
- Prompt what you type to a generative AI tool. It sets the context the model works from.
- Role who is writing, or who it is for: "You are a school office assistant."
- Task the one thing to do, starting with a verb: "Write a notice…"
- Context what the reader knows and what must not be assumed: "Parents may not read English well. Do not invent dates or places."
- Format how long, what shape, what language level: "Six lines, simple words."
- Iterate improve the prompt and try again, rather than fixing the answer by hand.
- Placeholder a blank like
[DATE]or[STUDENT NAME]that you fill in yourself, so no personal data goes into the prompt.
Step by step: from a weak prompt to a usable one
Weak: "write about the library."
- Role: You are the school librarian.
- Task: Write a short notice reminding students to return books.
- Context: Many Class 6 books come back late during exams. Readers are 11–13 years old. Do not invent any dates or fines.
- Format: Five lines, friendly, with a blank for the return date: [DATE].
- Check before sending: any name, photo, number or address? None, only a placeholder.
- Judge the answer, then fix the prompt: too formal? Add "in plain words a Class 6 pupil would use" and run it again.
Two habits worth more than any template: say what you don't want, and ask for the shape you need (six lines, a table, three options).
🕌 From our heritage
Muslim scholars held that you cannot judge a matter you have not properly framed: al-ḥukm ʿalā al-shayʾ farʿ ʿan taṣawwurihi — "a judgement about a thing follows from conceiving it correctly." A jurist asked a half-stated question was expected to establish the facts before answering, because an answer to a badly put question is worthless however well it is phrased. Your four columns are that same discipline: frame the question, then ask it.
Source: a maxim standard in works of logic and uṣūl al-fiqh.
Careful: a well-written answer is not a correct one. Fluency is not accuracy; Lesson 4.3 shows how to check. And a prompt is not a private message, so it never holds a classmate's name, photo or number.
On the laptop
You need: LibreOffice Calc · prompt-sheet.ods · prompt-log.ods · the school's AI account (teacher only) · prompt-pairs/ if there is no account
Mission 1: Paper first (7 min, in pairs)
- ☐1
In
prompt-sheet.ods, fill Role · Task · Context · Format for the job your teacher sets — e.g. a six-line notice inviting parents to the science exhibition. - ☐2
Write it out as one paragraph in the last column.
- ☐3
Check it before it goes anywhere: any name, photo, number, address or anything about a classmate? Replace it with a placeholder like
[STUDENT NAME].
Mission 2: Run it, once (10 min, whole class)
- ☐4
Predict: what will be wrong with the first answer? Write one guess.
- ☐5
Your teacher runs the prompts on the projector, two or three at a time.
- ☐6
In
prompt-log.ods: my prompt · what came back · what was wrong · my next prompt. Fix the prompt, not the answer.
Stuck?
Your prompt is probably missing Context. Add one sentence on what the reader knows and what must not be invented.
Finished early?
Ask for the same thing twice more — as three options, then as a table. Which shape would you use?
No laptop today?
Do Part 1 on paper. For Part 2, read the printed weak and strong pairs in prompt-pairs/ and mark which of the four parts fixed each problem.
Debate it
Hiba's prompt worked because she knew what a good notice looks like — the date, the place, the time, the plain language.
Could someone who had never seen a good notice write a good prompt for one? What does that tell you about who gets the most out of these tools?
Check yourself — practice, not a test
1. Put the four parts of a prompt in the order taught in this lesson:
- 1. Context
- 2. Task
- 3. Role
- 4. Format
2. Which prompt is most likely to return something usable?
- ○ "Write about water."
- ○ "Write a good essay on water, very nice."
- ○ "You are a science teacher. Explain in six lines, for a Class 6 pupil, why water in a kangri-warmed room evaporates. Do not invent any numbers."
- ○ "Water essay, urgent, fast."
3. If the answer is wrong, the right move is usually to fix the answer by hand rather than to improve the prompt.
- ○ True
- ○ False
4. Which of these must never appear in a prompt for a school task? (choose all that apply)
- ○ A classmate's name
- ○ The topic of the lesson
- ○ A phone number
- ○ A photograph of a student
5. Saying "do not invent any dates" is an example of telling the model what you do not ______.
Remember
Role, task, context, format — on paper first, and nobody's personal data in it.
Typing practice
Skill: quotation marks and colons, Term 2 (5 min)
- On typing.com, open the punctuation practice your teacher has set .
- Today's keys are the ones a written prompt needs:
":,and the apostrophe. - Prompts are typed once and reused. A prompt with a missing quotation mark is still a prompt; a Python line with one is not — that is Unit 5's problem, so practise now.