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
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.
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.
๐ฏ What? (Task)
Tell the AI what to do.
๐จ How? (Format)
Tell the AI how to show the answer.
๐ซ Rule? (Constraint)
Give the AI a rule it must follow.
๐ง 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!
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?
๐จโ๐ฉโ๐ง 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
- ๐ฅ Bronze Challenge: Generate a logo for a space pizza delivery company.
- ๐ฅ Silver Challenge: Now generate the same logo, but in the style of 8-bit pixel art from an old video game.
- ๐ฅ 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!)
๐ง 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 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
- Next Up: Exploring Different Kinds of AI - Keep exploring!
- Back to the AI Builders Lab Mission Board - See all available missions.