πŸ’¬ Prompt Engineering Lab

Learn to give AI clear instructions β€” and see how wording changes everything

πŸ§ͺ The Prompt Experiment

Write two different prompts about a cat or the Moon. Add a style such as "as a pirate," "as a haiku," "list 3 facts," or "for a 5-year-old," and compare the examples side by side.

Prompt A

Press Show example to see a matching example written in advance.

Prompt B

Press Show example to see a matching example written in advance.

πŸ’‘ This demo shows responses written in advance for two topics and five styles. No AI model is used and nothing you type leaves your browser.

🌟 5 Tips for Better Prompts

1. Be Specific: Instead of "Write about space," try "Write 3 fun facts about Jupiter for a 4th grader." The more specific your instructions, the better the result.
2. Set a Role: Tell the AI who to be. "You are a friendly science teacher" or "Explain this like a sports announcer" changes the entire style of the response.
3. Give Examples: Show the AI what you want. "Write a haiku about rain. Example: Gentle drops falling / Puddles form on the sidewalk / Nature's lullaby" helps the AI match your format.
4. Set Length: Say "in 2 sentences" or "in exactly 50 words" to control how long the response is. Without this, AI might write too much or too little.
5. Ask for a Format: Request "as a numbered list" or "as a table" or "with pros and cons" to structure the output exactly how you need it.

🛠️ Prompt Makeover: Checklist Builder

Start with a vague prompt. Tick each checklist item you want to add and fill it in. The after prompt builds itself as you go. This tool doesn't send your prompt anywhere or ask an AI; it only helps you write clearer instructions. Nothing is saved.

Before

After

A clearer prompt usually gets a more useful answer, but it does not make the answer true. Check important facts in a trusted source, and follow your school's rules for using AI.

SmartOnlineGames.com · Prompt Lab · Recipe: Role + Task + Audience + Length + Format + Context + Example

🎯 Prompt Challenges

Try these challenges to practice your prompt engineering skills!

Challenge 1: The Specific Request

Which prompt will get a better answer about the water cycle?

Challenge 2: Role Setting

Which prompt uses a role to make the response more engaging?

Challenge 3: Format Control

Which prompt gives clearer format instructions?

What the Lab Teaches

A prompt is the instruction you give a chatbot. This page lets students compare two prompts side by side and see how a few words change the result. Type a prompt about a cat or the Moon in each box, add a style ("as a pirate," "as a haiku," "list 3 facts," "for a 5-year-old"), and press Show example. Each box shows a matching example that was written in advance, plus a note saying which topic and style it matched. The five tips and three challenges below the boxes practice the same ideas without typing.

Because the answers are pre-written, the lab works the same way every time. That makes it good for teaching the concept. It also means it can't answer other questions; type anything without "cat" or "moon" and it says so.

The Prompt Makeover Checklist

The makeover tool turns the tips into a checklist. Students type a vague prompt such as "tell me about volcanoes," then tick and fill in the items they want: the exact task, the audience, the length, the format, and optionally a role, the reason they need it, and an example. The after prompt updates as they type, a counter shows how many checklist items are used, and a final privacy check reminds them to leave out names, addresses and passwords. If a field looks like an email address or phone number, the tool warns them. The card prints as a one-page recipe with the before and after side by side. The tool never sends the prompt anywhere; it is a writing aid, not a chatbot.

What Real AI Companies Recommend

The advice on this page matches what AI developers publish for adults. OpenAI's prompt engineering guide recommends giving explicit instructions, saying exactly what format you want, including a few examples of the input and output you expect (often called few-shot prompting), and adding relevant context. Notice that all of these are things a good teacher already does when writing directions for a class.

TipWeak promptStronger prompt
Be specificWrite about space.Write 3 fun facts about Jupiter for a 4th grader.
Give a role or voiceDescribe Mars.You are an astronaut who just landed on Mars. Describe what you see in 3 sentences.
Show an exampleWrite a haiku about rain.Write a haiku about rain. Here is the pattern: 5 syllables, then 7, then 5.
Set the lengthTell me about volcanoes.Explain how a volcano erupts in 2 sentences.
Ask for a formatWhat are healthy snacks?List 5 healthy snacks as: Snack, then one benefit.

Worked Example: Same Topic, Five Prompts

Type "Describe the Moon" in Prompt A and "Describe the Moon as a list of 3 facts" in Prompt B. Prompt A gives a short paragraph with the Moon's average distance, about 384,400 kilometers. Prompt B gives a numbered list. Now change B to "Describe the Moon as a haiku" and then "Describe the Moon for a 5-year-old." Ask students which version would be best for a science report, a poem display and a kindergarten buddy. The topic never changed; only the instructions did.

The cat haiku follows the 5-7-5 pattern: "Soft paws on the rug / a sunbeam becomes a bed / tail flicks, then she sleeps." Have students clap the syllables to check.

Running It in Class

  1. Start vague. Ask students to write a prompt for "something about animals." Collect a few and discuss what a chatbot might do with them.
  2. Explore the lab. Pairs try all five styles for one topic and record which words changed the result.
  3. Do the challenges. Each has one clearly better prompt; have students name the specific feature (audience, count, role, format) that makes it better.
  4. Rewrite. Students upgrade their vague prompt from step 1 using at least two tips, then trade with a partner who checks which tips were used.

Things Students Often Get Wrong

  • Longer always means better. Extra words help only if they add a task, an audience, a format or context.
  • A good prompt guarantees a correct answer. Chatbots can still make things up. Prompts shape the style and focus; fact-checking is a separate job.
  • The chatbot knows what I meant. It only has the words you typed. If you want a list for a 4th grader, say so.
  • Private details are fine to share. Teach students never to put full names, addresses, passwords or photos of classmates into any online tool.

Extension Ideas

  • Prompt recipe cards. Students write a reusable "recipe": Role + Task + Audience + Length + Format.
  • Unplugged prompting. One student gives drawing instructions to a partner who can't see the original picture. Vague directions produce funny results, which shows why precise instructions matter.
  • Fact-check the example. Have students confirm the Moon facts on NASA's Moon facts page.

Related: AI vs. Human and How AI Works.

Framework alignment

AI4K12 Big Idea 4 (Natural Interaction: intelligent agents require many kinds of knowledge to interact naturally with humans) and Big Idea 5 (Societal Impact). These are guidelines, not numbered standards.

Prompt Lab FAQ

Is this a real AI chatbot?

No. The lab shows examples written in advance for two topics (a cat and the Moon) in five styles. It is built this way on purpose: students see clearly how wording changes a result, and children can practice prompting without an account or a chatbot.

How old do kids have to be to use ChatGPT?

OpenAI's terms of use say users must be at least 13, and anyone under 18 needs a parent's or guardian's permission. Other AI tools set their own rules, so check the terms of any tool before students use it.

What is the single most useful prompt tip for kids?

Say who the answer is for and what shape it should take. "Explain photosynthesis" becomes "Explain photosynthesis to a 4th grader in 3 sentences." Audience plus format fixes most vague answers.

Does a better prompt make the answer true?

No. A clear prompt gets a more useful answer, but chatbots can still state wrong facts confidently. Students should check important facts against a trusted source, such as a textbook, an encyclopedia or an official website.

Is using AI for homework cheating?

It depends on the assignment's rules. Some teachers allow AI for brainstorming or feedback but not for the final writing. Teach students to ask first and to say when and how they used it.

Sources

Last reviewed: November 2026 Β· AI4K12 Big Ideas 4 and 5

🌟 Keep Exploring
πŸ€–AI vs Human 🧠How AI Works πŸ’»Binary Numbers