Megaminds Academy
Chat on WhatsApp

How to Write a Good AI Prompt: 5 Steps and Examples

How to Write a Good AI Prompt: 5 Steps and Examples

Your son types into ChatGPT: "Explain percentages", and gets a long page of unfamiliar terms. Then he types: "I'm in grade 8. Explain percentages with a shop-discount example in five sentences", and understands it the first time. Same tool, different request.

This skill is now taught in class. On 18 June 2026, the European Commission and the OECD launched the final version of their AI literacy framework for primary and secondary schools. One activity it suggests: students compare the answers to two versions of the same request and explain why one was more useful.

This guide explains how to write a good AI prompt for ChatGPT and Gemini with a five-step formula, copy-ready prompts by age and by task (studying, images and presentations), how to fix a weak answer by improving the prompt, and how to check the result.

What is a prompt, and why does the wording matter?

A prompt is the request a user types into an AI tool such as ChatGPT or Gemini, and the clearer and more precise it is, the closer the answer comes to what they need. OpenAI's guide advises prompts that are clear, specific and give enough context, then reviewing the response and refining the prompt.

It is a thinking skill before a technical trick: a good request means knowing what you want, breaking the problem down and choosing precise words. The full text of the European Commission and OECD framework names prompting as an example of "computational thinking": framing a problem so that AI can help solve it.

How do you write a good AI prompt in 5 steps?

Writing an AI Prompt in 5 Steps
Writing an AI Prompt in 5 Steps

The student tells the tool four things before asking (the role, the task, the context and the format) and checks the answer after. We call it "four before, one after". The four come from Google's guide to writing prompts, which says not every prompt needs all four. The fifth is our addition for students:

  1. Role: who should the tool be? "You are a patient science teacher."
  2. Task: what exactly do you want? "Explain electric circuits to me."
  3. Context: what does the tool need to know? "I'm in grade 8, and I don't understand the difference between series and parallel circuits."
  4. Format: how should the answer look? "Five short points, with an example from home."
  5. Check after the answer: does it match my textbook? Can I explain it in my own words?

Put together: "You are a patient science teacher. Explain electric circuits to me. I'm in grade 8, and I don't understand the difference between series and parallel circuits. Write it in five short points with an example from home."

The same idea runs through the comprehensive guide to prompt engineering in education that the Saudi Data and AI Authority (SDAIA) released in April 2026: a good prompt has a clear task, educational context and precise expectations, Jehat reported.

What are some ready prompts for studying, images and presentations?

Each task needs its own prompt, but the rule stays the same: the tool helps, it does not do the work. Copy-ready prompts:

For studying

  • "Quiz me on the digestive system with five questions, one at a time, and don't give me the answer until I try."
  • "Here is my solution. Don't write the correct one. Give me one hint about where my mistake is."

For images

Gemini's help page suggests starting with words like draw, generate or create, and describing the style, subject, action and setting in detail. Example: "Draw a large plant cell in the centre of the image, as a colourful illustration like a science textbook, on a white background." The same page says, as of December 2026, that generating images requires age 13 or the applicable age in your country, and that editing images is not available to users under 18. More in our guide How to Make Images with Gemini: Steps and School Prompts.

For presentations

"I'm giving a 6-slide presentation on solar energy to my grade 8 class. Suggest a title for each slide and three ideas under it, and I'll write the text in my own words." The full steps are in our guide How to Make a Presentation with AI for Free, Step by Step.

How should students write prompts at each age?

Students write prompts in a way that suits their age and each tool's rules. As of December 2026, OpenAI says ChatGPT is not meant for anyone under 13, that with younger students an adult must be the one using it, and that teens aged 13 to 18 need parental consent. Examples for each stage:

  • Ages 6 to 9, with you: you type, and they suggest the words: "You are a storyteller. Write a five-sentence story about a cat who builds a rocket, for a 7-year-old, and end it with a question for them." Then ask: is this what you imagined?
  • Ages 10 to 12, beside you: they compose the request and you type it into ChatGPT: "I'm in grade 6 and presenting a project on the water cycle. Suggest three safe experiments I can do at home, as a list, with the materials for each."
  • Ages 13 to 16, on their own account: with parental controls where available: "You are a debate coach. I'm 15, and I think school should give one day a month to projects. Give me the two strongest arguments against my view, then ask me how I would respond."

At every age, a prompt never includes their full name, address or photos of real people, and never asks the tool to do their homework for them.

How can students fix a weak answer by improving the prompt?

Students fix a weak answer by changing one thing in the prompt and comparing, instead of repeating the question. Five simple ways:

  1. Add context: "I'm in grade 8, and I don't understand what a variable is in algebra."
  2. Set the format: "In three sentences only" or "as a numbered list".
  3. Give an example: "Write me two questions like this one: ..."
  4. Split the task: "Give me only the first step", then ask for the next.
  5. Let the tool ask you: "Before you answer, ask me three questions about what you need to know."

The skill improves with practice. In a randomised trial with 431 university students in an introductory programming course, published in February 2026, even a two-sentence reminder improved how students asked the tool for help, with bigger gains from deeper training, lasting six weeks.

Read also: More Than 15 Ways to Develop Thinking Skills

How can students check an AI answer?

Checking an AI Answer
Checking an AI Answer

Students check an AI answer by treating it as a draft to review, not final truth, because these tools can be confidently wrong. In a study by the European Broadcasting Union and the BBC published in October 2025, 22 public service media organisations from 18 countries assessed over 3,000 answers to news questions from ChatGPT, Copilot, Gemini and Perplexity, and found at least one significant issue in 45% of them. The steps:

  1. Compare with a trusted source: the school textbook, an official website, or the teacher.
  2. Ask for sources and open them: a link that does not open, or does not say what the tool claims, is a red flag.
  3. Ask another way: if the answer changes a lot, the topic needs more research.
  4. Calculate or test it yourself: in maths and coding, a correct answer can be tested.
  5. Decide: do I accept the answer, revise it, or reject it? And why?

That last step is, word for word, one of the European Commission and OECD framework's competences: evaluate whether AI outputs should be accepted, revised or rejected.

Read also: What Is Vibe Coding? A Parent's Guide to Coding with AI

How does Megaminds Academy help students master working with AI?

At Megaminds Academy, we teach students aged 6 to 16 coding, robotics and AI in live online classes, in small groups with certified instructors. Coding itself trains what a good prompt needs: describing a problem precisely and breaking it into steps. In courses such as AI and Machine Learning and Python, each student builds real projects themselves and earns an accredited certificate after each level.

Frequently asked questions about writing AI prompts

Should my son or daughter write prompts in Arabic or English?

Either works, because both tools understand Arabic. Google says Gemini is available in more than 70 languages, Arabic included, and OpenAI says users can ask ChatGPT in the chat to reply in another language. It is best to write in the language of the subject they study.

Are prompts different for ChatGPT and Gemini?

The same formula works for both: OpenAI's and Google's guides both ask for clarity, context and a clear format. For images in Gemini, Google suggests starting with words like draw, generate or create, and describing the style, subject and setting in detail.

Does my son or daughter need a prompt engineering course?

Not at the start. The simple formula, with practice and checking, builds the habit. What matters more is organised thinking, clear writing and knowing how these tools work, skills that coding and AI projects build.

Finally, a good prompt starts with a clear idea in your son or daughter's head; the tool comes after. Teach them to ask well and always check.

Book a trial class now and let them turn their ideas into real projects.

Start the Coding Journey with a Fun Session Today

Book now and our team will contact you within 24 hours to determine the right level for your son or daughter.