Prompt Engineering Fundamentals
Beginner 15 min Module 2 of 6
Module 2 of 6

The Anatomy of an Effective Prompt

A prompt is not just a question. It is a structured communication. This module breaks down every component of a well-built prompt and gives you the CLEAR framework: a five-part structure you can apply to any task to get consistently better results.

By the end of this module you will be able to

Why Most Prompts Underperform

Most people write prompts the same way they write a text message: short, casual, and vague. "Summarize this." "Make it better." "Write an email." These work fine for casual conversations. They fail for anything where quality actually matters.

The model is not failing. The communication is failing. The model cannot guess what "better" means to you. It does not know the audience for the email. It does not know how long the summary should be or what format you expect. When you give it a vague prompt, it fills in those gaps with its best guess, which may have nothing in common with what you actually needed.

The pattern to remember Garbage in, garbage out does not mean the model is bad. It means unclear instructions produce unclear outputs. The model is working as designed.

The CLEAR Framework

CLEAR is a five-part structure for building prompts that get consistent, useful results. Each letter stands for one component.

LetterComponentWhat it doesExample
CContextBackground the model needs to do the task well"This is for a client in the healthcare industry who is not technical."
LLengthHow long or short the output should be"Keep it under 150 words." or "Write at least three paragraphs."
EExamplesShow the model what good output looks like"Here is an example of the tone I want: [paste example]"
AAudienceWho will read or use this output"The reader is a CFO who reads quickly and values bullet points."
RRoleWho the model should be when responding"You are a senior copywriter with ten years of B2B experience."

You do not need to use all five in every prompt. A simple task might only need two or three. But knowing all five means you know exactly what to add when a prompt is not working.

Seeing CLEAR in Action

Here is a weak prompt and its upgraded version.

Weak prompt:

Write a subject line for my email.

Upgraded with CLEAR:

[R] You are an experienced B2B email marketer.
[C] I am following up with a prospect who attended our product demo last Tuesday but has not responded to my first follow-up email sent three days ago.
[A] The recipient is a VP of Engineering at a mid-size software company. They are busy and skeptical of sales emails.
[L] Write three subject line options, each under 50 characters.
[E] Good examples of subject lines I like: "Quick question about the demo" and "One thing you mentioned Tuesday"

The second prompt will almost always produce better output. Not because the model is smarter, but because you gave it everything it needs to do the job.

Practice: What is missing from this prompt? "Explain machine learning to me."
Almost everything. Missing: Audience (who is "me" — a beginner? an engineer?), Length (one paragraph? ten pages?), Role (what kind of expert should explain it?), Examples (what style of explanation works for you?), Context (what are you going to use this explanation for?). The model will guess at all of these, and its guesses may not match what you need.

The Role Component: More Powerful Than It Looks

Setting a role is one of the highest-leverage moves in prompting. When you say "you are a cardiologist," the model activates patterns from medical literature, clinical communication, and specialist terminology. When you say "you are a patient educator," it activates patterns from plain-language health communication instead.

Roles work best when they are specific. "You are an expert" is weak — an expert in what? "You are a senior tax attorney specializing in corporate restructuring" is specific. It gives the model a clear pattern to match.

A useful trick: set the role first, before any other instruction. Research into prompting has found that model responses shift meaningfully when the role is established before the task is presented, rather than after (Wei et al., arXiv:2201.11903 examines this in the context of structured reasoning, where role framing affects output quality).

The Format Component: Often Overlooked, Always Worth Adding

The model will choose a format if you do not specify one. Sometimes that guess is fine. Often it is not. If you need bullet points, say so. If you need a table, describe the columns. If you need a numbered list with headers, show that structure.

Format specification also helps with consistency across many prompts. If you are using AI to process a batch of documents, specifying a fixed output format means every output has the same structure, which makes downstream processing much easier.

Quick format tip End every prompt with "Format your response as: [describe format]." Even one sentence about format reduces the chance of a poorly structured output significantly.

Constraints: Telling the Model What Not to Do

Constraints are a sixth component not in the acronym, but important enough to mention. Telling the model what to avoid is often as valuable as telling it what to do.

Examples of useful constraints:

Constraints are especially important for high-stakes tasks where a certain type of error is particularly costly. If you are using AI to draft a legal summary, "do not speculate about intent" is a constraint that can prevent serious problems.

Knowledge check
What does the "A" in CLEAR stand for?
Correct. Audience tells the model who will read or use the output, which shapes vocabulary, detail level, and tone.
Not quite. "A" stands for Audience: who will read or use the output. This shapes everything from vocabulary to detail level to tone.
A colleague says their AI outputs are always too long. Which CLEAR component should they add to their prompts?
Exactly. The Length component tells the model how long or short the output should be. "Keep it under 100 words" or "write exactly three bullet points" will solve this immediately.
Not quite. The Length component directly controls output length. Adding a constraint like "keep it under 100 words" will solve this problem immediately.
Why is setting a specific role more effective than setting a vague one like "you are an expert"?
Correct. "Senior tax attorney specializing in corporate restructuring" activates far more specific patterns than "expert." The model matches what you describe.
Not quite. Specific roles work because they activate more precise patterns from the model's training data. The more specific the role, the more targeted the response.
Before you go
Reflection: Pick one task you use AI for regularly. Write the prompt you currently use, then identify which CLEAR components are missing. What would you add?
You might also like
Was this module helpful?
← Module 1: What is a Prompt Module 3: Zero-Shot, Few-Shot, CoT →