Standalone lesson.
Lesson 1448 of 1455
Prompt Engineering
Role + context + examples + constraints + format.
Builders · Builders · ~18 min read · Interactive
Prompt engineering is just being really specific with your AI. The best prompts have five ingredients: role, context, examples, constraints, and format.
The RCECF recipe
Role
You are a ___.Telling the AI who to be changes how it talks. “You are a friendly museum guide” vs. “You are a strict copy-editor” — same question, very different answers.
Context
Who is the output for? What’s the situation? “I’m presenting to a room of 7th graders who are new to this topic.”
Examples (“few-shot”)
Show one or two examples of good output. This is the single biggest upgrade you can make to a prompt.
Constraints
“Under 200 words.” “Don’t use the word ‘delve.’” “Only include facts from the article I pasted.”
Format
“Bullet points.” “A table with three columns.” “Respond in JSON.”
Advanced move: chain-of-thought
Add “Think step by step before answering” to any complex prompt. The AI will write out its reasoning, and because each step is written first, the final answer is more likely to be correct.
Try it now
In your own AI tool, run one weak prompt (“write me a poem”) and one strong one using all five ingredients. Notice how much more the strong prompt controls the answer.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Creators · 9 min
AI and System Prompt Architecture: Layered Instruction Design
AI helps creators architect system prompts in layers so changes don't require rewriting the whole thing.
Creators · 11 min
System Prompts vs User Prompts and Why the Distinction Matters
Use the system prompt as the always-on instruction layer it was designed to be.
Builders · 7 min
Fine-Tuning vs Prompting: When You Actually Need to Train
Most people who think they need fine-tuning just need better prompts and a few examples. Real fine-tuning is rare.
