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.

1

Step 1: Role

Set viewpoint: "You are a support rep."

2

Step 2: Goal

Define outcome: "Create a 5-question FAQ."

3

Step 3: Context

Add facts: product name, audience, policies.

4

Step 4: Examples

Provide one ideal Q&A pair to copy style.

5

Step 5: Constraints

Add limits: bullet format, keep under 120 words.

Try this now

Rebuild a weak prompt

  • Take a vague prompt you have used recently.
  • Rewrite it using the five-part blueprint.
  • Send both to a model and compare structure and accuracy.
  • 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