Skip to main content
โ† Back to Vibe Coding samples
๐Ÿค–Vibe Codingยท15 minยทSample Lesson

Tell the Computer What You Want: The Magic Words of AI

What if you could talk to your computer the same way you talk to a friend โ€” just using regular words? You might say, Draw me a picture of a purple elephant wearing a birthday hat, and the computer would actually do it! This is real. AI helpers understand words you type, and they try their best to do exactly what you ask. Learning how to say things clearly to an AI is one of the most exciting skills you can learn right now. It is called vibe coding โ€” and you do not need to know any secret computer language to do it.

What You'll Learn

In this lesson you will learn: - What vibe coding means - What a prompt is and why it matters - How to make your instructions clear so the AI understands you - What to do when the AI gets something wrong

What Is Vibe Coding?

Long ago, getting a computer to do anything meant writing lines of special code that looked like this: print(hello world). It was like learning a completely new secret language just to ask a computer to say two words! Vibe coding is different. You just use regular words โ€” the same words you use every day when you talk to a friend. You describe what you want, and the AI figures out how to make it happen. The AI handles the tricky computer parts. You handle the thinking and the describing. It is teamwork between you and the computer!

Your Words Are Instructions

The words you type to an AI are called a prompt. Think of a prompt like a restaurant order. If you walk up to a waiter and say I want food, the waiter has no idea what to bring you! But if you say I would like a grilled cheese sandwich with extra cheese, no tomato, the waiter knows exactly what to do. AI works the same way. A fuzzy prompt like Make a game does not give the AI much to work with. But a clear prompt like Make a simple game where I click colored bubbles to pop them and I get one point for each bubble tells the AI exactly what to build. The clearer and more specific your words are, the closer the AI gets to what you actually wanted.

Three Power Words: WHO, WHAT, and WHY

Try adding three things to any prompt: WHO it is for, WHAT it should look like or do, and WHY it will be used. Example: Make a colorful poster (WHAT) for my classroom (WHO) to remind everyone to wash their hands before lunch (WHY). Prompts that include all three almost always get better results than short, vague ones!

What If the AI Gets It Wrong?

Sometimes the AI makes something that is not quite right โ€” and that is completely okay! You do not have to start over. You just talk to it some more and ask it to fix the part that is wrong. If you asked for a red house and got a blue house, you can say: Please change the house color to red. If you asked for a happy dog and the dog looks sad, try saying: Make the dog smile with its tongue hanging out. This back-and-forth conversation with the AI โ€” fixing things step by step โ€” is part of vibe coding. Even the very best coders in the world fix things over and over before they get them right. You are not doing it wrong; you are doing it exactly right!

Match each fuzzy prompt to the better, clearer version.

Terms

Make a story.
Draw something.
Make a game.
Write a poem.

Definitions

Write a 3-sentence story about a brave cat who rescues a kitten stuck in a tree.
Write a 4-line rhyming poem about a rainy day for kindergarteners.
Make a game where a frog jumps over logs by pressing the spacebar, and the logs go faster each time.
Draw a rainbow arching over a green mountain with a small red house at the bottom.

Drag terms onto their definitions, or click a term then click a definition to match.

โ“

What is a prompt in vibe coding?

โ“

You ask an AI to make something for school and it produces something random that does not help you. What is the best next step?

๐ŸŽฏ

Prompt Power: Three Tries to Get It Right

With a parent or teacher, open a safe AI drawing or writing helper (your teacher can suggest one). Try this challenge in three steps. First, give the AI a very short fuzzy prompt of just 2 or 3 words. Look at what it makes and draw a quick sketch of the result in your notebook. Second, try again with one full sentence describing what you want. Sketch that result too. Third, try once more with a longer, detailed prompt that includes colors, size, who it is for, and what it will be used for. Sketch that result. Look at all three sketches. Which one came closest to what you were imagining? Circle the words in your third prompt that you think made the biggest difference. Share your three attempts with your class and explain what you learned.

Want to keep learning?

Sign up for free to access the full curriculum โ€” all subjects, all ages.

Start Learning Free