Loading lesson…
Pro prompters follow a structure. Give the AI a role, set the context, show examples, set constraints, and pick a format. This framework alone 10x's your output quality.
Quick prompts work for quick tasks. But when you want something solid — a first draft of an essay, a piece of code, a study plan — you need structure. Most professional prompt engineers use some version of this five-part recipe.
| Part | What it does | Example phrase |
|---|---|---|
| Role | Sets the AI's persona and expertise | 'You are an experienced 8th-grade history tutor' |
| Context | Tells the AI the situation | 'I'm preparing for a unit test on the American Revolution' |
| Examples | Shows what good output looks like | 'Here's an example of the kind of study note I want: ' |
| Constraints | Sets rules and limits | 'Keep each note under 50 words. Avoid jargon.' |
| Format | Defines the shape of the output | 'Output as a bulleted list with bolded terms.' |
You are a patient middle-school math tutor who loves real-world analogies. I'm a 7th grader studying for a test on linear equations. I understand what a variable is but I struggle with word problems. Here's the kind of hint I find helpful: > 'Think of x as how many apples are in the bag — your job is to figure out what number makes the sentence true.' Constraints: - No solving the problem for me. - Give one hint at a time. - Use analogies, not algebra vocabulary. Format your response as: **Hint:** <one sentence> **Try this:** <one guiding question> Here's my problem: A bookstore sells paperbacks for $8 and hardcovers for $15. They sold 12 books total and made $128. How many of each did they sell?The five-part structure in action.Notice how every part has a job. The role puts the AI in tutor mode. The context tells it what you know. The example models the tone you want. The constraints stop it from spoiling the answer. The format makes the output scannable. You will get a wildly better response than 'help me with this math problem.'
When you tell the AI 'you are an experienced editor' or 'you are a skeptical scientist,' it shifts its whole voice. It pulls on different patterns from its training. This one line often changes the answer more than any other part of the prompt.
8 questions · take it digitally for instant feedback at tendril.neural-forge.io/learn/quiz/end-prompting-role-context-builders
What is the main idea of "The Five-Part Prompt: Role, Context, Examples, Constraints, Format"?
Which concept is most central to "The Five-Part Prompt: Role, Context, Examples, Constraints, Format"?
Which use of AI fits this topic best?
What should a careful learner remember about "You don't always need all five"?
You want to use AI after this lesson. What is the safest next step?
How should AI output about role assignment be treated?
Name one way to verify an AI answer about role assignment.
Which action would help you apply "The Five-Part Prompt: Role, Context, Examples, Constraints, Format" responsibly?