Home โ€บ Prompt Like a Pro
๐Ÿ’ฌ Module 02 ยท Beginner

Prompt Like a Pro

โœจ PAN'S RULE: The computer is a super-smart puppy. It wants to do what you say, but you need to give it good instructions! โœจ

Let's learn the secret language of AI! You'll master "prompting"โ€”how to give an AI the perfect instructions to get exactly what you imagine in your head.

๐Ÿ“–

Garbage In, Garbage Out

๐Ÿ“ Mission Briefing

If you tell an AI, "Write a story about a dog," you're letting the AI just guess what you want, and it might guess wrong! You might get a 10-page tragedy about a stray, or a 3-sentence rhyme for a little kid.

(๐ŸŒ + ๐Ÿงฆ) โžก๏ธ ๐Ÿค– โžก๏ธ (๐ŸŽจโ“)
If you give the AI junk instructions, you'll get junk results!

Prompt Engineering is the skill of giving the AI super-clear instructions so there's no confusion. A great prompt has four building blocks. Click each one to see an example!

๐Ÿง‘โ€๐Ÿš€ Who? (Role)

Tell the AI who it should be.

"Act as a senior Disney Pixar animator."

๐ŸŽฏ What? (Task)

Tell the AI what to do.

"Write a story outline about a dog who gets lost."

๐ŸŽจ How? (Format)

Tell the AI how to show the answer.

"Use bullet points and keep it under 300 words."

๐Ÿšซ Rule? (Constraint)

Give the AI a rule it must follow.

"Do NOT use the word 'sad'."

๐Ÿง  Behind the Magic: How Does This Work?

AIs are trained on nearly the whole internet. When you give it a Role like 'Act as a NASA scientist,' you're telling it to ignore the parts of its brain that know about cake recipes and cat videos, and focus only on the science stuff. You're giving it a temporary job!

๐Ÿ“บ Code.org โ€” "AI for Kids: Prompting"
โš™๏ธ

The Prompt Randomizer

Let's build a silly prompt together. Fill in the blanks below to create a set of instructions for an AI. This is a great way to warm up your prompt-building brain!

Create a story about a from who loves to !

๐Ÿ•ต๏ธ Prompt Deconstruction

In the prompt below, which part is the Constraint?

"Act as a space captain. Write a log entry about discovering a planet made of jellybeans. Keep it under 50 words."
"Act as a space captain."
"Write a log entry about discovering a planet made of jellybeans."
"Keep it under 50 words."

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง PARENT CORNER: Kitchen Table Prompts

Try this fun activity away from the screen! Take turns giving each other "prompts" for drawings. Start simple ("Draw a house") and then add more detail ("Draw a tall, spooky, purple house with a friendly ghost in the window"). This is a great way to practice how adding context and constraints changes the final result!

๐Ÿš€

Mission: The Logo Gauntlet

Reading is cool, but building is even cooler. It's time to use your new prompting skills with a real AI image generator!

Your Mission: Complete all three challenges below to generate a logo for a fictional company. Each challenge builds on the last. Let's go!

Recommended Tool: Microsoft Designer Image Creator

  1. ๐Ÿฅ‰ Bronze Challenge: Generate a logo for a space pizza delivery company.
  2. ๐Ÿฅˆ Silver Challenge: Now generate the same logo, but in the style of 8-bit pixel art from an old video game.
  3. ๐Ÿฅ‡ Gold Challenge: Perfect the prompt! Generate the pixel art logo, but add the constraint that it must feature a happy green alien eating a slice of pepperoni pizza.

๐Ÿš€ Advanced Option: Ready for a more powerful engine? Check out a tool like Leonardo.Ai. It gives you more control, including 'Negative Prompts' to tell the AI what you don't want to see. (Heads up: These pro tools often have unmoderated community image feeds. Get a parent's permission and guidance before exploring!)

๐Ÿ›ก๏ธ Safety Check: Tools like Microsoft Designer require an account. Ask a parent for help to sign up. Never use your full name or share personal info when creating accounts online!

๐Ÿง  Deep Dive: Pro-Techniques

Want to unlock the AI's full power? Here are two secret weapons the pros use:

1. Few-Shot Prompting

Give the AI examples right in the prompt to teach it a specific style on the fly! For a Q&A format, you could write:

Q: What is the capital of France? A: Paris.
Q: What is the capital of Japan? A: Tokyo.
Q: What is the capital of Canada? A:

The AI sees the pattern and will answer 'Ottawa'. You just taught it a format in seconds!

2. Chain-of-Thought (CoT) Prompting

If you ask an AI a hard logic puzzle, it might get it wrong. But if you add the simple phrase "Think step-by-step..." to your prompt, the AI first writes out its reasoning before giving the final answer. By forcing it to "show its work," it becomes dramatically more accurate. This is a secret weapon for complex tasks.

โšก Power User Challenge: The JSON-Bot

Ready for a final test? Your challenge is to write a single, perfect prompt for a text-based AI (like ChatGPT or Claude). Your prompt must ask the AI to act as a video game designer and create a character sheet for a new superhero. The prompt must have a Role, a Task, multiple Constraints (e.g., the hero's power cannot be flight), and a specific Format: the output must be a valid JSON object. This is how real developers get structured data from AIs!

๐Ÿ“š Learn More