Short Answer
Defining the AI's persona or expertise area in the prompt.
Role prompting defines the AI's persona, expertise area, or professional identity to
guide its behavior and responses. This helps ensure responses are appropriate for the
intended context and audience.
Role types include:
- Professional roles: Expert, consultant, teacher, analyst
- Domain expertise: Scientist, engineer, writer, designer
- Personality traits: Friendly, formal, creative, analytical
- Audience adaptation: Child-friendly, technical, general
- Cultural context: Regional, industry-specific, organizational
💡
Examples
Expert Role
Defining AI as a subject matter expert.
You are an expert data scientist with 15 years of experience. Explain machine learning concepts in detail.
The AI would respond with detailed, expert-level explanations appropriate for a data scientist.
✅
Best Practices
- Define roles clearly and specifically
- Specify relevant expertise areas
- Include experience level when appropriate
- Consider audience needs
- Test role effectiveness
🎯
Use Cases
- Educational content
- Professional consulting
- Technical documentation
- Creative writing
- Audience adaptation