Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesPrompt Engineering Interactive Tutorial: Based on Anthropic MaterialsBasic Prompt Structure
Email data separated from the instruction by email tagsA language model continues the phrase “Unfortunately,” and picks the next word from three optionsA prompt made of four parts: role, task, context, format
Course

Prompt Engineering Interactive Tutorial: Based on Anthropic Materials

Module 1 · Structure and Clarity Foundations
01Basic Prompt Structure02Being Clear and Direct
Module 2 · Roles, Data, and Formatting
03Assigning Roles (Role Prompting)04Separating Data and Instructions05Formatting Output: XML Tags and Structured Outputs
Module 3 · Thinking, Examples, and Hallucinations
06Precognition: Thinking Step by Step07Using Examples (Few-Shot Prompting)08Avoiding Hallucinations
Module 4 · Complex Prompts and Chaining
09Complex Prompts from Scratch10Chaining Prompts
Prompt Engineering Interactive Tutorial: Based on Anthropic Materials · Lesson 1

Basic Prompt Structure

Messages API, required parameters (model, max_tokens, messages), user/assistant roles, the system prompt, and how to shape response format on current Claude models.

20 min readUpdated Nov 9, 20263 questions in quizReady prompt included

Messages API: Required Parameters

Every Claude call via the Messages API includes three parameters:

  • model — the model ID (e.g., claude-opus-5-5; for simple or high-volume tasks, claude-sonnet-5-5 or claude-haiku-5-5)
  • max_tokens — hard limit on response tokens
  • messages — an array of objects with role and content fields

The models are trained on alternating user and assistant turns, so start the conversation with user and alternate roles from there.

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
Messages API: Required ParametersCorrect FormatSystem PromptWhy This MattersShaping the Start and Format of a ResponseWhat Else Changed in the Basic CallPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free