AI for students · lesson 9 of 24 · free

Parts of a good prompt — AI for students

A prompt is the request you give an AI chatbot. Prompt engineering simply means writing prompts that get useful answers. A strong prompt can have five parts: a role (“Act as a friendly maths tutor”), a task (“Explain how rainbows form”), context (“I am in Class 6”), a format (“Answer in 3 bullet points”) and an example (“Like this: 2 + 3 = 5”). Not every prompt needs all five, but the task is always there.

▶ Watch how it works

Got it? Practise ↓

AI tip

Role · Task · Context · Format · Example — “tell the AI who to be, what to do, about you, the shape of the answer and a sample”

  1. Role = who the AI should act as. Task = what you want done (explain, write, list, summarise, check).
  2. Context = facts about you or the situation (your class, what it is for, what you already know).
  3. Format = the shape of the answer (bullet points, a table, a numbered list). Example = a sample that shows the pattern or style you want.

Use it for: Before typing any request to an AI chatbot for study.

Worked example: 🧩 Which part of a prompt is this? “I am in Class 6.” → context

  1. It does not give a job or a shape — it tells the AI about you.
  2. Information about you or the situation is the context.

Check: Try it: write one prompt about volcanoes that has all five parts, and underline each part in a different colour ✓

▶ Watch it animated

✏️ Practice

Work it out in your head or on paper, type the answer and press Check. Stuck? Press “Show me how”.

Right: 0 · Tried: 0

🏁 Lesson 9 test

20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.

🏅 Sign in with Google to earn the 🧩 Prompt Part Builder badge when you pass — and a certificate when you finish all 8 lessons of Part 2 · Prompting. You can still take the test without signing in.

🖨️ Prompt Engineering Worksheet: Parts of a Prompt

✨ Free AI tutor

Ask the AI tutor about this lesson

Why does it work? When should you use it? Ask in English, मराठी or हिंदी.

Sign in with Google to ask Free — 20 questions a day.

👩‍🏫 AI for students classes near you — online or at home

Prefer a real teacher? TalentJR teachers take live online classes anywhere in India and visit homes in selected cities. Tell us what you need and our team will call you with timings and fees.

Live online classesSmall groups or 1:1 with a teacher, from home, any city.
Teacher at homeA TalentJR teacher visits your home (selected cities).
At a centreClasses at a TalentJR partner centre near you, where available.
Badges, certificates & gifts A badge for every lesson you pass, a certificate for every part you finish, plus TalentJR Points for daily practice. Computer worksheets Flowcharts, block coding and safe internet.