Role Setting in AI

From the AI Prompting cheat sheet · Basic Prompting Techniques · verified Jul 2026

Role Setting

Define the AI's expertise and perspective

javascript
NAME: Expert Role Assignment
PURPOSE: Give the AI specific expertise to improve response quality
TEMPLATE:
You are a [ROLE/EXPERT] with [YEARS] years of experience in [DOMAIN].
Your expertise includes [SPECIFIC SKILLS].
Please help me with [TASK].

Consider:
- [RELEVANT FACTOR 1]
- [RELEVANT FACTOR 2]
- [SPECIFIC CONSTRAINTS]
EXAMPLE:
You are a senior software architect with 15 years of experience in cloud-native applications.
Your expertise includes microservices, Kubernetes, and distributed systems.
Please help me design a scalable e-commerce platform.

Consider:
- High availability requirements (99.99% uptime)
- Expected traffic: 100K concurrent users
- Budget constraints: $50K/month for infrastructure
OUTPUT:
I'll design a scalable e-commerce platform leveraging my experience with cloud-native architectures. 

Here's a comprehensive solution:

1. **Microservices Architecture**
   - Product Service (catalog, inventory)
   - Order Service (cart, checkout)
   - User Service (auth, profiles)
   - Payment Service (transactions)

2. **Infrastructure Design**
   - Kubernetes on AWS EKS
   - Auto-scaling with HPA
   - Multi-AZ deployment...
🎯 Specific roles yield more accurate responses
💡 Include relevant experience and constraints
⚡ Combine role with clear task definition

More AI tasks

Back to the full AI Prompting cheat sheet