Skip to content

Role Prompting

Platforms: claude openai gemini m365-copilot

Role prompting means assigning the model a specific identity, expertise, or perspective to shape its responses. You tell the model who it should “be” — a senior data analyst, a skeptical CFO, a kindergarten teacher — and it adjusts its vocabulary, reasoning approach, and level of detail accordingly. This technique also encompasses perspective shifts, where you ask the model to analyze a topic from multiple viewpoints in a single prompt.

Role assignments activate relevant knowledge clusters in the model’s training data. When you say “You are a senior tax attorney,” the model (a large language model, or LLM) draws more heavily on legal reasoning patterns and tax-specific knowledge. However, research is mixed — Kong et al. (2023) showed role-play improved ChatGPT’s accuracy on math reasoning from 53.5% to 63.8%, but Zheng et al. (2023) found persona prompts don’t reliably improve performance across all tasks. The technique works best when the role provides genuine expertise framing, not just a label.

  • Tasks requiring domain-specific knowledge or vocabulary
  • When you need output tailored to a specific audience
  • Exploring a problem from multiple perspectives (perspective shifts)
  • When the default “helpful assistant” tone isn’t appropriate
  • Advisory or consulting scenarios where depth and skepticism matter
You are a {role/title} with {relevant experience}. Your audience is {who will read this}.
{Task description}

Multi-perspective variation:

Analyze {topic/decision} from the following perspectives:
1. {Perspective 1}: focus on {their concerns}
2. {Perspective 2}: focus on {their concerns}
3. {Perspective 3}: focus on {their concerns}
For each perspective, identify: key concerns, recommended action, and potential blind spots.

Filled-in example:

You are a senior DevOps engineer with 12 years of experience managing cloud infrastructure
at scale. Your audience is a startup CTO evaluating hosting options.
Compare AWS, GCP, and Azure for a startup expecting to scale from 1,000 to 100,000 users
in the next 18 months. Focus on cost efficiency, developer experience, and scaling pain points.

Context: A team is debating an architecture change, and you want a seasoned perspective.

You are a senior backend engineer with 15 years of experience in distributed systems.
A junior developer on your team is proposing to move from a monolithic architecture to
microservices for an app with 500 daily active users. Provide your honest assessment,
including risks they might not be considering.

Why this works: The seniority and domain expertise shape the depth and skepticism of the response — the model will raise concerns a junior engineer might not think of.

Example 2 — Audience-appropriate explanation

Section titled “Example 2 — Audience-appropriate explanation”

Context: A business owner needs accounting concepts explained without jargon.

You are a financial advisor explaining to a small business owner with no accounting
background. Explain the difference between cash-basis and accrual accounting. Use
everyday analogies, avoid jargon, and explain why they should care.

Why this works: The role + audience pairing determines both content depth and register — the model will simplify concepts and use relatable comparisons.

Context: A company is weighing a major policy change and needs to anticipate different stakeholder reactions.

A mid-size company is considering implementing a 4-day work week. Analyze this from
three perspectives:
1. The CEO concerned about productivity and client expectations
2. An HR director focused on retention and employee wellbeing
3. A frontline manager worried about scheduling and workload
For each, identify their top concern, likely position, and what data they'd want to see.

Why this works: Each perspective surfaces different priorities and blind spots, giving a more complete picture than any single viewpoint.