Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesPrompt Engineering from ScratchStructure: Role, Task, Context, Format
A prompt made of four parts: role, task, context, formatA language model continues the phrase “Unfortunately,” and picks the next word from three optionsA chat request: reply to the customer, delivery on Thursday, up to 80 words
Course

Prompt Engineering from Scratch

Module 1 · Anatomy of a Good Prompt
01Structure: Role, Task, Context, Format02Examples (Few-Shot) and Answer Tone
Module 2 · Advanced Techniques
03Chain-of-Thought and Step-by-Step Reasoning04System Prompts and Stable Roles
Prompt Engineering from Scratch · Lesson 1

Structure: Role, Task, Context, Format

The four parts of a good AI request and how to use them to turn a vague ask into a precise brief.

15 min readUpdated Nov 9, 20264 questions in quizReady prompt included

A prompt is a brief

A prompt is the text you write to a chat assistant: a question, a request, an instruction. Picture handing a task to a new colleague. They are smart and write fast, but this is their first day at your company. They will do exactly what they understood from the brief and fill in the rest on their own. A good prompt leaves them as little guessing as possible.

Almost any working prompt can be built from four parts.

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
A prompt is a briefThe four partsExample: before and afterOrder and layoutContext you repeatIf you don't know what to put in the contextExerciseKey takeawaysPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free