---
title: Role / Persona Prompting — Prompt Engineering Technique
description: Role prompting assigns the model a persona or expertise ("You are an experienced editor…") to steer tone, vocabulary, and priorities. It sets consistent context for how the model should approach the task.
canonical: https://prompeteer.ai/techniques/role-prompting
category: Foundational patterns
---

# Role / Persona Prompting

Role prompting assigns the model a persona or expertise ("You are an experienced editor…") to steer tone, vocabulary, and priorities. It sets consistent context for how the model should approach the task.

## What it is

Role or persona prompting frames the model as a particular kind of expert or character before giving it the task. Providers commonly recommend setting a role in the system prompt to establish domain expertise, voice, and the standards the response should meet.

A well-chosen role concentrates the model on the relevant slice of its training: asking it to respond "as a security reviewer" biases it toward vulnerabilities and defensive framing, while "as a friendly tutor" shifts tone and explanatory depth. The role is context-setting, not magic — it shapes style and emphasis rather than adding new capabilities.

## When to use

- You want consistent tone, voice, or level of expertise across responses.
- The task benefits from a specific professional lens (legal, medical caution, editorial).
- You are configuring a system prompt for an assistant with a stable persona.
- Vocabulary and framing matter as much as the raw answer.

## How it works

1. Decide the expertise and voice the task calls for.
2. State the role plainly, ideally in the system prompt (e.g. "You are a…").
3. Add the standards or priorities that role implies (rigor, audience, tone).
4. Give the task; the role now conditions how the model approaches it.

## Illustrative structure

The structure prepends a role clause to the task: "You are a [domain expert] who values [priority]. [Task instruction]." For instance: "You are a meticulous technical editor who values clarity and brevity. Rewrite the passage below." The persona sets the lens; the instruction sets the work.

## Pitfalls

- A role changes style but does not grant knowledge or accuracy the model lacks.
- Overly elaborate personas add tokens without improving results.
- Personas can introduce unwanted bias or overconfidence ("as a doctor…") — pair with accuracy constraints.
- Conflicting role and task instructions confuse the model; keep them coherent.

## Sources

- [Anthropic — Giving Claude a role with a system prompt](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts)
- [OpenAI — Prompt engineering: use system messages](https://platform.openai.com/docs/guides/prompt-engineering)

## Related techniques

- [system-prompts](https://prompeteer.ai/techniques/system-prompts)
- [zero-shot-prompting](https://prompeteer.ai/techniques/zero-shot-prompting)
- [constraint-prompting](https://prompeteer.ai/techniques/constraint-prompting)
