Skip to content
Text prompts

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 ·

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.

Two side-by-side cards: the role changes tone and voice, vocabulary and level of detail, point of view and focus; the role does not guarantee factual accuracy, knowledge of the subject, or let you skip checking
The role affects how it answers, not whether what it says is correct.

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.

Three stacked layers with arrows pointing down: standing instructions, which are the system or developer message and take priority over the user message in OpenAI's documentation; the user message, which is each individual request; and the model's response. Below, a note: without a field for standing instructions, the first sentence of the request plays the same part
Two layers of instruction. The role can live in the standing one or in the first sentence of the request.

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.

Three bands with examples: voice, where the teacher explains to 16-year-olds; lens, where a demanding editor points out the three weakest passages; simulation, where an interviewer asks one question at a time
Voice, lens, and simulation: the three uses where a role usually pays off.

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.

Two cards with the studies: Zheng and others, 2024, with 162 roles, 2,410 questions, and 4 model families, no gain in accuracy; Basil and others, Wharton, 2025, with 6 models and difficult questions, partly PhD-level, no consistent gain for experts and worse results with low-knowledge roles
Both studies measured accuracy on factual questions, not the quality of the tone.

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.

LabBefore and After: Role and AudienceTry it

Illustrative data Answers written to show the difference, not generated by a model.

Before

Prompt

Explain what inflation is.

Answer

Inflation is the generalized and sustained rise in the prices of goods and services in an economy, measured by price indexes. It reduces the purchasing power of the currency and can have causes tied to demand, production costs, or the money supply.

After

Prompt

You are a high school economics teacher. Context: I'll use your explanation in class, with 16-year-old students who have never studied economics. Explain what inflation is. Format: start with an everyday example and end with a two-sentence definition. Limits: at most 8 lines and no technical term left unexplained.

Answer

Imagine that a snack in the cafeteria cost $5 at the start of the year and now costs $6. Your money is the same, but it buys less snack. It's your purchasing power that went down. Inflation is the rise in prices in general, not just of one product. When it goes up, the same amount of money buys fewer things than before.

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.
Open this lab on its own page →
What to notice: The answer on the right sounds like a lesson for the right class. Also read the last change listed: the role didn't correct or check anything.

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.

Four decision rows: to change tone or audience, use a role and say who it's for; for a critical eye, give the role of a reviewer and the criterion; to rehearse a conversation, give the role of the other side; to get facts right, a role doesn't solve it and you need to supply material, ask for the source, and check
A role serves three uses. For facts, other tools work better.

If you do, follow three steps:

  1. Choose the use: voice, lens, or simulation.
  2. Write the role in one sentence and say who the response is for.
  3. 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.

  1. Pick 10 questions from your field with answers you know how to check: dates, definitions, short calculations.
  2. Conversation A, no role. Open a new conversation and ask the questions one at a time, with no extra instruction.
  3. Conversation B, with a role. Open another new conversation and put the role on the first line. Ask the same questions.
  4. Write down what it got right and wrong in each conversation, and whether the tone changed.
  5. 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.
Five-step flow: the same ten questions are split across two new conversations, A with no role and B with a role on the first line; then comes a question-by-question record of right answers, wrong answers, and tone changes; finally, a reminder to repeat three times because answers vary
The home test: the same questions, with and without a role, in separate conversations.

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

References

  1. 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.
  2. 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.
  3. Anthropic. Prompting best practices, Section: Give Claude a role. Consultado em Nov 28, 2026.
  4. OpenAI. Shaping your agent's personality (2026). Consultado em Nov 28, 2026.
  5. OpenAI. Text generation, Section on developer, user, and assistant messages. Consultado em Nov 28, 2026.
  6. 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).

On the same shelf1 book