Header_blog

Coding Education

5 min read

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

Published: 11.08.2026·Updated: 14.08.2026
Bayu Nugraha

Bayu Nugraha

Children's Coding Specialist

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

A prompt is the instruction or question you write to an AI in order to get the answer you want.

Table of Contents

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

PartQuestion it answersExample
RoleWho should the AI beYou are a primary school maths teacher
TaskWhat should it doExplain how to find the lowest common multiple
ContextFor whom and in what situationFor a year 5 pupil meeting this for the first time
FormatWhat shape the answer should takeIn 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.