Giving AI a Role: When It Helps and When It Hurts
Telling AI who to be changes the tone of an answer, not its accuracy. See three uses that work, what two studies found, and how to write a role.
Rodrigo Faustino ·
- Shelf
- Text prompts
- Call number
- TXT-002
- Level
- Beginner
- Reading
- 10 min
- Published
- Lab
- Before and after
Giving AI a role means telling it, in one sentence, who it should be when it responds: “you are a high school teacher,” “you are a demanding editor.” The role changes the style of the response, such as its tone, vocabulary, and point of view. It doesn’t make the AI more accurate, and recent studies haven’t found a consistent gain in accuracy on factual questions.
What a Role Is and What It Changes
Many tools have a field for standing instructions, called a system message or developer message, that applies to the whole conversation. In Fabrício Carraro’s book on ChatGPT, the example is the System field in OpenAI’s Playground. With the default message, the model responds helpfully. Swap in a sarcastic assistant, and the responses pick up some irony, but the model keeps answering the questions.
In an ordinary chat you don’t need any field: the first sentence of your request does the job. Anthropic’s documentation says that setting a role focuses the AI’s behavior and tone, and that a single sentence already makes a difference. OpenAI describes instructions of this kind as controlling tone, level of detail, and style.
An analogy helps: the same content sounds different coming from a test-prep instructor than from a coworker. But it’s only an analogy. The AI doesn’t become the instructor; it imitates how an instructor would explain it.
Where the Role Lives: Standing Instructions and the Request
OpenAI’s documentation separates two layers. The developer message carries the application’s instructions and takes priority over the user message, which carries each individual request. The page describes the first as the rules and logic of the system, and the second as the data those rules apply to. The instructions can cover tone, goals, and examples of correct responses. Anthropic’s documentation shows the same design: the role goes in the system parameter, separate from the user message.
For you, the consequence is practical. If the same role works every week, like the reviewer of your report, it’s worth keeping in a fixed place, when the tool has an instructions field, so you don’t rewrite it in every conversation. In a one-off request, the first sentence of the message does the job. In both cases the role comes before the task, and the task comes in full: a role by itself doesn’t say what to do.
One caution. If the two layers contradict each other, OpenAI’s priority rule favors the fixed one. That rule comes from the API documentation, and chat apps may combine the layers differently. If a fixed role is getting in the way of your request, look first at what it says.
When a Role Helps: Three Uses
Voice. You want the same content in a different tone or for a different audience. “You are a high school teacher, explain this to 16-year-olds” changes the vocabulary and the examples. Here the role and the audience work together: state both.
Lens. You want the AI to look at your text through a particular criterion. “You are a demanding editor” makes sense because it says what to look for: loose passages, repetition, vague promises. The clearer the criterion, the better the review.
Simulation. The role is the task itself. Rehearsing a job interview, practicing a negotiation, or practicing a language all call for the AI to play the other side of the conversation. There’s nothing to check against facts here: the value is in the practice.
When It Hurts: Believing a Role Brings Accuracy
The popular idea is that “you are a world expert on this subject” makes the answer more correct. Two studies tested this.
The first, by Zheng and colleagues, appeared in the Findings of EMNLP 2024. They tested 162 roles, 2,410 factual questions, and four families of models. Overall, the role brought no gain in accuracy compared with the request without a role. The effect of each role appeared to be, in large part, random.
The second is a report from Wharton, the University of Pennsylvania’s business school, from December 2025. It covered six models and two sets of difficult questions, one of them with PhD-level questions. Expert roles gave no consistent gain. Roles with little knowledge, such as “child” or “layperson,” often made results worse. There were isolated exceptions: in one of the models, expert roles produced moderate gains on one of the tests, and the authors think this may be a quirk of that model.
There are limits. Both measured accuracy on test questions with known right answers. They don’t say a role is useless: the Wharton report’s own authors note that it can still help with tone, perspective, and context. But they’re enough for a practical caution: “world expert” is not insurance against mistakes.
A role that gets it right once isn’t a role that gets it right every time. In the Zheng study, the 162 roles came from six types of relationships between people and eight areas of expertise. The gender, type, and field of the role can all affect accuracy. When the authors combined, for each question, the result of the best role, accuracy rose considerably. Choosing that best role in advance, however, proved difficult: automatic selections often did no better than a coin flip. The authors conclude that the effect of each role may be largely random.
In practice, swapping roles until an answer comes out right is fishing for a result. What you see is the accuracy on one question, not a rule that holds for the next one.
For the “explain it like I’m a layperson” case, one alternative is to ask for a language level rather than a character: “explain it to a 10-year-old” instead of “you are a child.” That swap is a suggestion from this book. The studies cited didn’t test it.
Try It: The Same Request, With and Without a Role
You’ll compare two ways of asking for the same explanation: one bare, the other with a role, an audience, a format, and constraints.
Illustrative data Answers written to show the difference, not generated by a model.
Before
Prompt
Answer
After
Prompt
Answer
What changed
- Gained a role: the answer now sounds like a lesson, not a dictionary entry.
- Gained an audience: the AI knows the students are 16 and have never studied the subject.
- Asked for a format: first the example, then the definition.
- Set limits: few lines and no loose technical terms.
- What didn't change: the definition is just as correct as it was before. A role doesn't remove the need to check.
The lab could not load. The summary above still applies.
Open this lab on its own page →The role changed how the explanation is delivered, and that’s what you asked for. The definition of inflation is the same in both answers. If one of them had been wrong, the role wouldn’t have warned you.
In Practice: Write a Role in Three Steps
Before writing one, decide whether you need one.
If you do, follow three steps:
- Choose the use: voice, lens, or simulation.
- Write the role in one sentence and say who the response is for.
- Give the context and the material. If the answer depends on facts, paste in the text or the data instead of trusting the AI’s memory.
Here’s a request where the role tries to do a professional’s job:
You are the best lawyer in the country. Is my lease okay?
And a version that uses the role as a lens, with context, constraints, and material:
You are a contract reviewer who explains things to non-specialists.
Context: I'm about to sign a residential lease and want to understand what I'm agreeing to.
Task: list the clauses that deserve the most attention and explain each one in plain language.
Format: a list with the clause number, what it says, and why it deserves attention.
Constraints: don't tell me whether or not to sign. At the end, suggest three questions for me to bring to a lawyer.
<contract>
paste the contract text here, without names, ID numbers, or addresses
</contract>
The second version doesn’t promise that the AI “knows the law.” It asks for an organized reading and hands the decision and the checking back to you and to a professional. This book is not legal advice.
For the simulation use, the role is the center of the request:
You are an interviewer for customer service positions. I'm going to practice an interview.
Ask one question at a time and wait for my answer before continuing.
After five questions, tell me what I answered well and what I can improve.
Two more templates to copy. The first uses the role as a lens: the role supplies the criterion, and you ask for a few points, each with its reason.
You are a demanding editor of writing for a general audience.
Context: the text below is an email to customers letting them know a deadline has changed. The goal is to inform without creating distrust.
Task: point out the three weakest passages and explain, for each one, what's loose or confusing.
Criteria: clarity, respectful tone, and a single action requested of the reader.
Constraints: don't rewrite the whole text. For each passage, give a one-sentence suggestion.
<text>
paste your text here
</text>
The constraint “don’t rewrite the whole text” keeps the AI from taking over your writing. The second template uses the role as a voice: it changes the tone and leaves everything else the same.
You are a friendly, straightforward coworker.
Rewrite the email below in a lighter tone. Keep all dates, amounts, and names exactly the same and don't add any information.
<email>
paste the email here
</email>
After the rewrite, compare the dates, amounts, and names with the original. The role changed the tone, as you asked, but nothing guarantees the facts stayed intact.
Test It Yourself: Does a Role Help in Your Case?
The studies cited above compared responses with a role against a no-role control. You can run a much smaller home version for your own kind of question. It’s a simple protocol from this book, not the researchers’ method. With only ten questions, it shows a tendency, not proof.
- Pick 10 questions from your field with answers you know how to check: dates, definitions, short calculations.
- Conversation A, no role. Open a new conversation and ask the questions one at a time, with no extra instruction.
- Conversation B, with a role. Open another new conversation and put the role on the first line. Ask the same questions.
- Write down what it got right and wrong in each conversation, and whether the tone changed.
- Repeat at least once more. Answers vary from one attempt to the next, and a single round can mislead you. The reason is in Temperature: Why the Same Question Gets Different Answers.
In conversation A, the questions go in as they are:
Question 1: [write it here]
In conversation B, the role comes first:
You are a [your field] teacher.
Question 1: [write it here]
A simple scorecard helps with the comparison:
Question | No role (right or wrong) | With role (right or wrong) | Did the tone change?
1 | | |
2 | | |
To read the result, use three cases. If accuracy stayed the same and the tone improved, the role worked as a voice, and that’s already useful. If accuracy got worse with the role, drop the role or swap it for a request about language level. If accuracy improved with the role, repeat the test before believing it: the studies show that effect can be random.
Common Mistakes and Cautions
Treating a role as insurance against mistakes. Even with “expert” in the prompt, dates, names, numbers, and quotes need checking. The method is in When AI Makes Things Up: How to Check an Answer.
Giving a role and forgetting the audience. “You’re a great writer, write a post” doesn’t say who it’s for. A role gains strength when it comes with context, which is one of the five parts explained in How to Structure a Text Prompt.
Writing an enormous character. One sentence already makes a difference, according to Anthropic’s documentation. A long character weighs the prompt down, and none of the sources consulted shows that it improves the response.
Asking for a low-knowledge role on a factual task. “You are a child” combined with a hard question was one of the cases where the Wharton report saw worse results.
Mistaking a professional’s voice for the professional. The response can sound like a doctor’s, a lawyer’s, or an accountant’s without being one. For health, law, and money, use AI to understand and prepare questions, and take the decisions to someone with the training who answers for them.
Keep Reading
- How to Structure a Text Prompt
- When AI Makes Things Up: How to Check an Answer
- The Types of AI You Already Use Without Realizing It
- Temperature: Why the Same Question Gets Different Answers
References
- Zheng, Mingqian; Pei, Jiaxin; Logeswaran, Lajanugen; Lee, Moontae; Jurgens, David. When “A Helpful Assistant” Is Not Really Helpful: Personas in System Prompts Do Not Improve Performances of Large Language Models, Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 15126-15154 (2024). Consultado em Nov 28, 2026.
- Basil, Savir; Shapiro, Ina; Shapiro, Dan; Mollick, Ethan; Mollick, Lilach; Meincke, Lennart. Prompting Science Report 4: Playing Pretend: Expert Personas Don't Improve Factual Accuracy (2025). Consultado em Nov 28, 2026.
- Anthropic. Prompting best practices, Section: Give Claude a role. Consultado em Nov 28, 2026.
- OpenAI. Shaping your agent's personality (2026). Consultado em Nov 28, 2026.
- OpenAI. Text generation, Section on developer, user, and assistant messages. Consultado em Nov 28, 2026.
- Carraro, Fabrício. Inteligência Artificial e ChatGPT: da revolução dos modelos de IA generativa à engenharia de prompt [Artificial Intelligence and ChatGPT: from the revolution of generative AI models to prompt engineering], Chapter 5, the System field (2024).