The same question can produce a very different answer when you tell Claude something like "You are an expert in ___." Giving Claude a role (persona) is one of the simplest yet most effective prompting techniques. This guide explains why it works and how to use role, goal, audience, and format to pull out sharper answers.
🟢 Model references match the current lineup · model notice · Fable subscription
Fable 5 and 5.1 subscription (updated September 7, 2026): Claude Fable 5.1, released September 1, 2026, is the current Fable model and Fable 5 is now legacy. Plan terms are the same for both — Max and Team Premium plans include Fable at up to 50% of the weekly usage limit; Pro and Team Standard use usage credits (
- Assigning a role (persona) changes the depth, tone, and perspective of answers.
- One of the simplest prompt techniques with a clear effect.
- Four elements of a good role prompt: expertise · purpose · audience · constraints.
- A ready-to-use template is included.
What is a role prompt
A role prompt sets, at the start of your message, the standpoint from which Claude should answer. For example, starting with "You are a nutritionist with 10 years of experience. Please review the following meal plan" leads Claude to frame its answer with that role's perspective, vocabulary, and concerns.
Why it works
A language model generates the response that best fits the given context. Assigning a role narrows the scope to match that role, so you get more consistent results than with a vague "explain this." It is the same reason "explain it as an elementary school teacher" tends to produce simpler wording.
- Tone — distinguishes a formal voice from a friendly one.
- Expertise level — separates beginner-friendly from expert-level explanations.
- Fixed perspective — keeps the answer within one job or field of view.
The four parts of a good role prompt
Rather than tossing out a role alone, adding goal, audience, and format (as in the figure above) improves results considerably.
- Role: who should answer (e.g. "senior security engineer")
- Goal: what the answer is for (e.g. "check this code for vulnerabilities")
- Audience: who will read it (e.g. "executives without security background")
- Format: what shape to return (e.g. "top 3 by risk level")
A template you can copy
Pack the four parts into one sentence. Fill in the blanks and paste it as-is.
You are a [role]. For [audience], perform [goal] and answer in [format].
Example: You are a senior backend developer. For a new teammate, review this function for problems and answer as a top-3 list by risk.
Example: same question, different roles
Take the identical question "tell me about the benefits of green tea" and add a role:
- "As a nutrition professor, explain with evidence" gives a compound- and research-focused answer.
- "As a cafe owner recommending to a guest" gives a simpler, friendlier answer.
The question is the same, but the depth and wording shift with the role.
Caveats
A role prompt changes tone and perspective; it does not guarantee factual accuracy. Saying "you are a doctor" does not give Claude an actual medical license, and important facts still need separate verification. When your goal is information, an overly theatrical role-play can get in the way.
- A role does not automatically improve accuracy. Verify key facts separately.
- Fields that require professional credentials (medicine, law, finance) need a real expert regardless of any role prompt.
Related reading
Role prompting is a good next step after the prompting basics. It works even better alongside few-shot examples and the prompt engineering guide. For more detail, see the official Anthropic documentation.
Frequently asked questions
What is role assignment?
Giving Claude a role, like "You are an expert in X." The same question then gets a different perspective and tone.
Why does it work?
With a role set, Claude answers in that perspective, expertise, and tone, giving more specific, purpose-fit responses.
How do I use it?
Specify expertise (who), purpose (for what), audience (to whom), and constraints (conditions) together for the best effect.
To keep a novel character's voice consistent over a long story, see keeping web novel characters consistent with Claude.
Related articles
- Getting Started with Claude: From Sign-Up to Your First Chat (Beginner's Guide)
- How to Use Claude: A Step-by-Step Guide for Beginners
- How to Download & Install Claude: Web, Desktop, and Mobile
- How to Prompt Claude Well: 7 Basics of Writing Prompts
- Giving Claude Good Examples: Few-Shot Prompting
- Giving Claude Enough Context: Background, Goal, Constraints