Online course, Engineering, Claude
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.
No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.
Lesson 1, 20 minBasic Prompt StructureIt 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.
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.
Structure and clarity → roles, data and formatting → thinking, examples and hallucinations → complex prompts and chaining. Both lessons of the first module are free.
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.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.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 checkedAnthropic 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 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.
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.
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.
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.
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.
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.
BeginnerLearn prompt engineering from scratch in 4 short lessons: the four-block prompt, few-shot examples, chain-of-thought and system prompts.
Certificate
BeginnerA beginner AI course in 4 short lessons: what a large language model is, context and tokens, hallucinations and how to pick a model.
Certificate
BeginnerBeginner course: how LLMs work, tokens and context, the four-part prompt, hallucinations and fact-checking, AI for writing and code.
Certificate
Beginner9 lessons on prompting techniques from DAIR.AI's open guide: prompt anatomy, few-shot, chain-of-thought, ReAct, JSON output, defending against prompt injection.
CertificateThe 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 upStep-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.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.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.