
Coding Education
What Is a Prompt: How to Write Good Instructions for AI

Bayu Nugraha
Children's Coding Specialist

A prompt is the instruction or question you write to an AI in order to get the answer you want.
Table of Contents
- Why the Prompt Decides the Result
- The Four Parts of a Good Prompt
- The Most Common Mistakes
- Why It Matters for Kids
The term sounds technical, but the meaning is simple: a prompt is how we speak to a machine. The quality of the question decides the quality of the answer, exactly as when asking a person.
Why the Prompt Decides the Result
An AI such as ChatGPT has no idea what is in our head. All it has is the sentence we typed. If the instruction is vague, it guesses, and its guess often misses what we meant.
Compare two requests. The first: explain fractions. The second: explain fractions to a fourth-grade child using a pizza-sharing example, in no more than five sentences. Both go to the same AI, but the results differ enormously - not because the AI changed, but because the instruction became far clearer.
The Four Parts of a Good Prompt
| Part | Question it answers | Example |
|---|---|---|
| Role | Who should the AI be | You are a primary school maths teacher |
| Task | What should it do | Explain how to find the lowest common multiple |
| Context | For whom and in what situation | For a year 5 pupil meeting this for the first time |
| Format | What shape the answer should take | In three steps, with one practice problem at the end |
Not every prompt needs all four. But whenever an answer comes back off-target, one of these parts is almost always missing.
The Most Common Mistakes
- Too short. A one-word instruction leaves the AI far too much room to guess.
- Bundling many requests at once. One prompt, one goal, then follow up with the next question.
- Not saying who it is for. An explanation for a year 3 pupil and one for a university student are very different, and the AI has to be told.
- Accepting the first answer as final. Good prompts usually emerge through refinement: ask for simpler, ask for another example, ask for shorter.
Why It Matters for Kids
Writing good prompts trains a skill far older than AI: framing a question precisely. A child who habitually states what they need, who it is for, and in what form is practising the same structured thinking that writing code and composing an essay both demand.
There is a subtler second benefit. A child who understands that an AI's answer is shaped by their own question stops treating AI as a source of truth. They start seeing it as a tool whose output depends on how it is used - which is exactly the right attitude.
In Algonova's AI classes for children, writing and refining prompts is part of the practice from the earliest sessions. Try a free class to see the approach.