AI Lab › Explainer
How to write a good AI prompt
A prompt is what you type to an AI. The clearer and more specific it is, the more useful the answer will be.
Six parts of a strong prompt
- Goal. What do you want to end up with?
- Context. What do you already know, or what are you stuck on?
- Audience or level. "Explain it like I'm in 8th grade."
- Format. A table, 5 bullet points, a step-by-step list.
- Limits. Length, time, tone, things to avoid.
- Examples. Show one of what you mean.
Before and after
Weak: "photosynthesis"
Stronger: "Explain photosynthesis in simple steps for a 9th grader, then give me 5 quiz questions to test myself."
Weak: "Write an essay about World War 2."
Stronger: "Write a 500-word essay on how the Battle of Stalingrad changed the Eastern Front, for a high-school history class."
If the answer is poor, improve the prompt
Do not just say "try again" or "make it better". Add detail instead. Say what was wrong: too hard, too long, missing something. Add the limits you forgot.
Other useful tricks
- Set a role: "Act as a friendly Spanish tutor for a beginner."
- Ask it to teach: "Walk me through it one step at a time and ask me to try each step."
- Ask for honest feedback: chatbots often flatter. Say "Be a strict teacher and list 3 weaknesses."
- Ask for variety: "from different countries and time periods."
Two habits that matter
Keep personal details out of your prompts, and check anything important in a trusted source. A great prompt does not guarantee a correct answer.
Try it: 💬 Prompt Lab. A free game that puts these ideas into practice.
Talk about it
- Take a prompt you used recently and improve it using the six parts. What changed?
- When is it better to ask an AI to teach you instead of giving you the answer?
Words to know
- Prompt
- The instruction or question you give to an AI.
- Context
- Background information that helps the AI understand what you need.
- Iterate
- To improve something step by step by trying again with changes.