Anatomy of a Prompt
The four components of an effective prompt — role/persona, context, task instruction, and constraints. We break down weak vs. strong prompts, explain the reasons behind rules, mark up blocks with tags, and set the role in the API.
What Is a Prompt
A prompt is everything you send to a model before its response. The model sees only this text: it knows nothing about your audience, goals or taste. A good prompt gives it enough signal for the answer to match your task. With too little signal, the model picks the most likely and therefore the most generic option.
Anthropic suggests thinking of the model as a brilliant new employee who doesn't yet know your norms and workflows. The more precise the brief, the better the result.
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.


