Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesPrompt Engineering Interactive Tutorial: Based on Anthropic Materials
Get started free

Online course, Engineering, Claude

Prompt Engineering Interactive Tutorial: Based on Anthropic Materials — with tasks, quizzes and an AI tutor

10 lessons of 20 minutes, about 4 hours: the nine chapters of Anthropic's tutorial plus the appendix on prompt chaining. A task and a quiz in every lesson.

Start: 7 days freePreview the first lesson, no sign-in

No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.

Email data separated from the instruction by email tagsLesson 1, 20 minBasic Prompt Structure
  • Beginnerlevel
  • 3 h 35 min10 lessons, 4 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Build a Messages API request: model, max_tokens, messages and a system prompt
  • Write clear, direct instructions, drop preambles and get a decision instead of a hedge
  • Set a role in the system prompt and see how it changes tone and accuracy
  • Build prompt templates with variables and separate data from instructions with XML tags
  • Get the format you need: XML tags in the output, schema-valid JSON through structured outputs, stop_sequences
  • Set reasoning depth with effort, read summarized thinking and see where manual CoT still helps
  • Set tone and format with examples: zero-shot versus few-shot
  • Reduce hallucinations: let Claude say “I don't know” and ask for a quote from the document first
  • Assemble a complex prompt from blocks: role, context, data, examples, task, format
  • Split a task into a chain of prompts and pass each answer to the next step

What is Anthropic's interactive prompt engineering tutorial

It is Anthropic's open course on prompt engineering basics for Claude: 9 chapters with exercises plus an appendix of advanced methods. Academl splits it into 10 lessons: prompt structure, clear instructions, roles, separating data with XML tags, output format, step-by-step thinking, examples, avoiding hallucinations, complex prompts and chaining.

Pricing and what's free →
01
Free lesson

Basic Prompt Structure

The three required Messages API fields (model, max_tokens and messages), user and assistant roles (the API merges two consecutive messages from one role into a single turn), and the system prompt. In the task you write a system prompt that makes Claude answer “What is 2+2?” only in verse. The lesson examples use current models, claude-opus-5-5 and claude-haiku-5-5.

Open the lesson →

Course lessons

Structure and clarity → roles, data and formatting → thinking, examples and hallucinations → complex prompts and chaining. Both lessons of the first module are free.

Module 1 · 2 lessons · 40 min

Structure and Clarity Foundations

How the Messages API works, how to write clear instructions, and why Claude needs explicit context.

1Basic Prompt Structurefree20 minMessages API, required parameters (model, max_tokens, messages), alternating user/assistant roles, and system prompts.2Being Clear and Directfree20 minThe Golden Rule of Prompting, how to eliminate preambles, and how to make Claude commit to a single answer instead of hedging.
Module 2 · 3 lessons · 1 h 5 min

Roles, Data, and Formatting

Role prompting, XML tags that separate data from instructions, output format control with XML tags and structured outputs in place of prefill, which returns a 400 error since Claude 4.6.

3Assigning Roles (Role Prompting)20 minHow a role in the system prompt changes tone and output quality, from a cat to a logic bot, and why a role improves accuracy on logic problems.4Separating Data and Instructions20 minPrompt templates with variables, XML tags as separators, why 'Dear Claude' in the response signals mixed instructions and data.5Formatting Output and Speaking for Claude25 minXML tags in the output for reliable parsing, why prefill returns 400 on Claude 4.6+ and what replaces it, schema-valid JSON with structured outputs, classification with an enum and strict tool use, stop_sequences to save tokens.

Who the course is for

  • People starting with Claude who want to write prompts the way Anthropic teaches
  • Developers and analysts calling Claude from code: lesson examples are in Python
  • Product managers and writers who draft system prompts for bots and assistants
  • Anyone who took a general prompting course and wants the Claude-specific techniques

How each lesson works

  1. A 20-minute lesson with Python examplesA chapter of Anthropic's tutorial: the technique, a sample request and Claude's answer, and why it works.
  2. A hands-on task in every lessonFor example, an extract_sentiment(text) function that returns a label through structured outputs with an enum, or answer_from_doc(question, document) that returns “Not found” when the document has no answer. AI checks your solution and explains what to fix (after sign-up).
  3. A ready prompt and common mistakesA prompt for the lesson topic and mistakes from practice: data mixed into the instruction without XML tags, a role as vague as “You are helpful”, examples that contradict each other and blur the answer.
  4. A 3-question quiz and an AI tutorThe quiz locks in the lesson, the tutor answers questions on the topic.
  5. CertificateAfter all lessons you get a certificate with a unique verification code.

Certificate of completion

You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.

See how a certificate is checked
Sample

What changed since the tutorial came out

Anthropic states that the tutorial was written for Claude 3 models and says to follow Prompting best practices where the two differ.

Claude 3 Haiku, which the original exercises used, was retired on April 20, 2026.

Since Claude 4.6, prefill (speaking for Claude, chapter five) is no longer supported and such a request returns a 400 error. Set the format with instructions, XML tags or structured outputs. On Academl, the output format lesson already uses structured outputs and strict tool use, and the reasoning lesson covers adaptive thinking and effort.

API version 2026-10-21 removed the temperature parameter, so the original tip about temperature=0 for testing no longer applies to Claude.

Anthropic keeps the tutorial in its own prompt-eng-interactive-tutorial repository, and there is a lighter Google Sheets version.

  • Anthropic — Prompt engineering interactive tutorial on GitHub
  • Anthropic — the tutorial in the courses repository (9 chapters and an appendix)
  • Claude API — Prompting best practices
  • Claude API — Prompt engineering overview and tutorials
  • Claude API — structured outputs
  • Claude API — retired models and parameters

What is free and what it costs

  • The first two lessons, basic prompt structure and clear instructions, are open with no payment after a free sign-up.
  • After sign-up you get 7 days of full access to all 10 lessons and the whole catalog, no card needed.
  • After that, Pro costs $9 a month or $79 a year. Online card payment is not connected yet: write to info@academl.com and we open access manually.
  • Claude API calls from the examples run on your own key and are billed by Anthropic at its rates.

Questions about the tutorial and the course

Where can I take Anthropic's prompt engineering tutorial?+

Anthropic publishes it as Jupyter notebooks on GitHub and as a lighter Google Sheets version. Academl runs the same path as 10 lessons with tasks, quizzes and an AI tutor, so you can study without setting up notebooks. The first two lessons are open after a free sign-up.

Do I need to know how to code?+

Lesson examples and tasks are written in Python with calls to the Claude API. The techniques themselves (roles, XML tags, examples, step-by-step thinking) also work in the claude.ai chat. If you do not need code yet, start with Prompt Engineering from Scratch.

Is the tutorial still current for new Claude models?+

Its core techniques are in Anthropic's current Prompting best practices: clear instructions, examples, XML tags, roles, thinking and prompt chaining. What aged is the Claude 3 Haiku model and prefill: since Claude 4.6, speaking for Claude returns a 400 error. Current Claude models reason on their own with adaptive thinking, and the effort parameter sets the depth. The replacements are listed above on this page.

How is it different from Real World Prompting?+

The tutorial teaches techniques one at a time on short examples. Real World Prompting is Anthropic's next course, 5 lessons where the techniques come together in large prompts for medical records, support calls and a chatbot. Anthropic recommends taking them in that order.

How do I make Claude answer without a preamble?+

Say so directly, for example “Answer in three bullet points, no introduction.” The lesson two task rewrites the vague request “Tell me about Paris” this way. Anthropic also suggests asking for the answer inside XML tags and stripping the rest when you parse the response in code.

How do I reduce Claude's hallucinations?+

The tutorial gives two techniques: allow Claude to say it does not know when it is unsure, and ask it to find a quote in the document first and answer from that quote. In the lesson task, answer_from_doc looks for a quote in <scratchpad> and returns “Not found” when the document has no answer.

The course in short

level
Beginner
For whom
AI basics
Task
Get started with AI
Tool
Claude
Format
Lessons, quizzes and tasks checked by AI
Lesson language
English

Is this course right for you?

Check your level in 3 minutes. We will show which course to start with.

Check my level

More courses on this topic

Full catalog
Beginner

Prompt Engineering from Scratch

Learn prompt engineering from scratch in 4 short lessons: the four-block prompt, few-shot examples, chain-of-thought and system prompts.

1 h 10 min, 4 lessonsCertificate
Beginner

AI Basics: How LLMs Work

A beginner AI course in 4 short lessons: what a large language model is, context and tokens, hallucinations and how to pick a model.

1 h 5 min, 4 lessonsCertificate
Beginner

Generative AI Fundamentals

Beginner course: how LLMs work, tokens and context, the four-part prompt, hallucinations and fact-checking, AI for writing and code.

3 h 45 min, 9 lessonsCertificate
Beginner

Prompt Engineering Guide

9 lessons on prompting techniques from DAIR.AI's open guide: prompt anatomy, few-shot, chain-of-thought, ReAct, JSON output, defending against prompt injection.

4 h 15 min, 9 lessonsCertificate

What next

Prompt Engineering from Scratch: no code needed →A 4-week prompt engineering study plan →Real World Prompting: Anthropic's next course →Anthropic API fundamentals: pip install anthropic and a first request →Advanced prompt engineering: CoT, ReAct, evaluation →Library of ready prompts →

Start with chapter one

The lessons on prompt structure and clear instructions are open after a free sign-up. Sign up with email or Google to get 7 days of full access to every lesson in the course and the whole catalog.

Sign up
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Module 3 · 3 lessons · 1 h 10 min

Thinking, Examples, and Hallucinations

Step-by-step thinking via XML tags, few-shot prompting, and techniques for reducing hallucinations.

6Precognition: Thinking Step by Step25 minWhy 'thinking out loud' is more accurate, examples with brainstorm and positive/negative-argument tags, and the ordering effect.7Using Examples (Few-Shot Prompting)20 minZero-shot vs few-shot, how examples set the tone for a parent bot, extracting structured data through format demonstration.8Avoiding Hallucinations25 minTwo main methods: giving Claude an out ('only if you know for certain') and requiring a quote from the document before answering.
Module 4 · 2 lessons · 40 min

Complex Prompts and Chaining

Assembling a complex prompt from all learned elements and the prompt chaining technique for iterative improvement.

9Complex Prompts from Scratch20 minThe recommended structure of a complex prompt: role, context, data, examples, task, format and, in the original, prefill (gone since Claude 4.6). Worked examples: a career coach and a legal analyst.10Chaining Prompts20 minIterative improvement through multi-turn dialogue: fixing non-words, improving a story, extracting names and alphabetizing them.
Certificate
Your name
for the course
Prompt Engineering Interactive Tutorial: Based on Anthropic Materials
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
How much does the course cost?+

The first two lessons are always free. After sign-up you get 7 days of full access with no card. Pro opens every lesson in the catalog for $9 a month or $79 a year.