PROMPTING-101 COURSE GUIDE

Prompting 101

A chapter-by-chapter readback of the free course by Anthropic on Anthropic.

Length24:52
Chapters19
Modules5
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

A rare prompt-engineering talk built around one evolving real-world case — a Swedish car insurance claim with a sketch — so you watch a prompt improve from hallucinated nonsense to production-grade output.

Who it's for
Read this guide if
  • You want a concrete, iterative workflow for improving prompts with test cases
  • You build applications that need structured, parseable LLM output
  • You work with documents or images Claude must analyze reliably
Skip ahead if
  • You have never used a language model before
  • You only want casual chat prompting, not application-grade prompts
  • You need coverage of models beyond Claude or non-Anthropic tooling
In brief
  • Duration: about 25 minutes (1492 seconds)
  • 16 chapters grouped into 5 modules
  • Tools: Anthropic console with Claude 4, temperature 0
  • Level: introductory prompt engineering for developers
  • Case study: Swedish car insurance claim with form and accident sketch

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

Getting Started with Prompt Engineering

0:00

Introduction

The talk opens by defining prompt engineering as writing clear instructions, supplying context, and organizing information to get the best result from a language model.

1:33

The Insurance Claim Scenario

A Swedish insurance company needs to process car insurance claims from two inputs: an accident report form and a human-drawn sketch of the accident.

2:17

Baseline Prompt Fails

Using the Anthropic console with Claude 4 at temperature 0, a minimal prompt leads Claude to misidentify the incident as a skiing accident, showing the cost of missing context.

3:27

Prompt Engineering as an Empirical Science

The presenters frame prompting as iterative and empirical: build test cases — such as expecting Claude to recognize a vehicular accident — and refine the prompt against them.

Structuring and Enriching the Prompt

4:25

Recommended Prompt Structure

A standard ordering is presented: role and task first, then dynamic content like images, detailed instructions, examples, and a final repetition of critical information.

5:40

Adding Task and Tone Context

Version 2 of the prompt adds context that Claude acts as a claims adjuster reviewing Swedish car accident forms, and instructs it to stay factual and not guess when unsure.

7:00

Improved Results and System Prompt Placement

With the new context, Claude correctly reads the form's checkbox markings but admits it lacks information on fault. Static form details belong in the system prompt, where they also enable prompt caching.

10:13

Delimiters and XML Tags

XML tags or markdown can structure prompts; because Claude is fine-tuned on XML, tags let you label content and reference it later in the prompt.

10:48

Full Form Context in the System Prompt

Describing the accident form's title, two vehicle columns, all 17 rows, and how humans mark it imperfectly improves Claude's analysis dramatically.

13:07

Few-Shot Examples

Examples are a powerful steering tool: tricky, human-labeled cases — including base64-encoded images with interpretation notes — can be baked into the system prompt, ideally dozens of gray-area cases in a real application.

Controlling Behavior and Reasoning

15:00

Conversation History and Final Reminders

Conversation history can enrich context, best in the system prompt for user-facing apps. Ending the prompt with reminders — don't invent details, admit unclear sketches, cite the form as evidence — guards against hallucination.

17:30

Order of Analysis

Like human reasoning, Claude should read the form first to establish facts, list them, then analyze the sketch against that understanding.

18:52

Controlling Output Verbosity

Asking Claude to carefully examine the form makes it show its work box-by-box, illustrating that prompt instructions directly control how verbose the output is.

19:36

Step-by-Step Structured Thinking

With structured XML output sections — form analysis, accident summary, sketch analysis — Claude again concludes vehicle B was at fault; step-by-step thinking is highly impactful for complex cases.

Output Formatting for Applications

20:08

Guidelines and Machine-Readable Output

Applications need the core stored information, not Claude's preamble; wrapping the final verdict in XML tags lets the app ignore everything else and feed analytics or databases.

21:49

From Demo to Application

The demo's progression is recapped: from insecure, hallucinated outputs to strictly formatted, confident output that could power a real car insurance application.

22:18

Pre-Filled Responses

Pre-filling the start of Claude's response — an open bracket or opening XML tag — forces a specific format, yielding structured JSON or skipping preamble entirely.

Extended Thinking and Takeaways

23:26

Extended Thinking with Claude 4

Claude 3.7 and especially Claude 4 are hybrid reasoning models; their thinking transcripts can be analyzed to see how the model reasons through data like an accident checklist.

24:00

Closing Insights

Insights gained from extended thinking can be folded back into the system prompt, improving the prompt and saving tokens without relying on human intuition about model reasoning.

Moment by moment

TimeWhy it matters
2:50The minimal prompt hilariously misreads the case as a skiing accident — the motivation for everything that follows
7:54Version 2 of the prompt correctly reads both vehicles' checkbox marks, showing the payoff of added context
11:39Full form context in the system prompt flips the verdict: Claude confidently finds vehicle B at fault
22:38Pre-filled responses demonstrated as a trick to force structured output and skip preamble
23:26Extended thinking introduced: reading Claude's scratch pad to improve your prompt

Do this next

  1. Rebuild the demo in the Anthropic console: start with a minimal prompt, add task and tone context, and compare outputs at temperature 0
  2. Pick one of your own prompts and add XML delimiters, a system-prompt context block, and a final reminders section, then test against fixed cases
  3. Wrap your model's final answer in XML tags and parse only that section in your application code for reliable downstream use

Common questions

What model and settings does the demo use?

The demo runs in the Anthropic console on the new Claude 4 model with temperature 0 and a large maximum token budget for deterministic, complete outputs.

Why XML tags instead of plain text?

Claude is fine-tuned on XML, so tags reliably label content (like form data or user preferences) that Claude can refer back to later, and they make final answers easy to parse in an application.

How do you stop Claude from hallucinating?

The talk recommends ending the prompt with concrete reminders: don't invent details, admit when a sketch is unintelligible, answer only when confident, and cite the form (e.g., a specific checkbox) as evidence.

What is a pre-filled response?

It's forcing Claude's output to begin with specific text — like an open bracket or an opening XML tag — which yields structured JSON or skips preamble before the answer.

Spot a mistake?

Every chapter summary on this page is hand-checked against the video, but errors can slip through. If you spot a wrong timestamp, a misparaphrased point, or anything inaccurate, please let us know so we can fix it.

More course guides