Free 🧰 Practical LLM Lessons
LLM Lab 3: Prompt Anatomy Workshop
Assemble prompts with role, goal, context, examples, and constraints to steer the model.
Published January 8, 2026
Build the blueprint
Strong prompts follow a pattern: role, goal, context, examples, constraints.
Prompt pieces
- Role
- Set the model persona or viewpoint.
- Goal
- State the single objective.
- Context
- Give facts the model should rely on.
- Examples
- Show the format or style to mimic.
- Constraints
- Set limits: length, tone, citations.
Can You Guess?
Which prompt is most likely to produce a structured FAQ?
Prompt assembly line
Follow the steps and watch each checkpoint light up as you progress.
Step 1: Role
Set viewpoint: "You are a support rep."
Step 2: Goal
Define outcome: "Create a 5-question FAQ."
Step 3: Context
Add facts: product name, audience, policies.
Step 4: Examples
Provide one ideal Q&A pair to copy style.
Step 5: Constraints
Add limits: bullet format, keep under 120 words.
Try this now
Rebuild a weak prompt
Key Takeaways
- ✓ A clear role and goal cut randomness.
- ✓ Examples are the fastest way to enforce format.
- ✓ Constraints prevent the model from rambling.
Quick poll
What brought you to this free lesson?
Lesson: LLM Lab 3: Prompt Anatomy Workshop