Prompting

Role Prompting

Assigning the model a persona or expert identity to shape the style and depth of its responses.

Full Definition

Role prompting instructs the model to adopt a specific identity — 'You are a senior cardiologist', 'You are a Socratic philosophy tutor', 'You are a blunt code reviewer' — which activates domain-appropriate vocabulary, reasoning styles, and communication norms. The technique exploits the model's ability to simulate diverse perspectives based on its training data. Role prompts work best when the role is specific and coherent: 'You are a cybersecurity expert who explains threats to non-technical executives' gives richer guidance than 'You are an expert'. Roles can also be used to set interpersonal tone — 'You are a patient teacher who never makes the student feel stupid'.

Examples

1

'You are a Gordon Ramsay-style head chef. Review this recipe and tell me everything that's wrong with it, bluntly.'

2

'You are a senior TypeScript engineer conducting a code review. Comment only on type safety, not style.'

Apply this in your prompts

PromptItIn automatically uses techniques like Role Prompting to build better prompts for you.

✦ Try it free

You might also like

How to Use Role in AI PromptsAdvanced Role Prompting TechniquesHow to Write Prompts for Claude — The Complete GuideHow to Use Grok Effectively: Tips and Prompts for Grok 3Email NewsletterLiterature Review

Related Terms

System Prompt

The instruction layer sent before any user message that controls how an AI model

View →

Instruction Prompting

Directly telling the model what to do using clear imperative commands.

View →
Browse the AI prompt glossary