Artificial Intelligence

Role Prompting

A technique where the model is instructed to adopt a specific persona, expertise, or perspective in its responses. The assigned role shapes tone, depth, terminology, and reasoning approach.

Why It Matters

Role prompting significantly changes output quality for domain-specific tasks. A model prompted as an expert produces markedly better domain responses.

Example

Prompting: 'You are a senior cybersecurity analyst with 15 years of experience. Analyze this log file for potential security threats.' versus just 'Look at this log file.'

Think of it like...

Like hiring an actor and giving them a character brief — the same person delivers a completely different performance depending on the role they are playing.

Related Terms