Blocks
Role
Define the persona and identity for your AI assistant
Role
The Role block defines who the AI should be when responding to your prompt. It establishes the persona, expertise level, communication style, and perspective the AI should adopt. Think of it as casting an actor for a specific part.
When to Use
Use a Role block in virtually every prompt. It sets the foundation for how the AI approaches the task:
- Expert assistance: When you need domain-specific knowledge (e.g., "You are a senior Python developer")
- Creative writing: When you need a particular voice or perspective (e.g., "You are a witty travel blogger")
- Customer service: When tone and approach matter (e.g., "You are a patient and friendly support agent")
- Analysis tasks: When you need a specific analytical lens (e.g., "You are a financial analyst focused on risk assessment")
How to Use
- Add a Role block to your prompt canvas
- Define the persona with specificity: who they are, what they know, how they communicate
- Include relevant expertise, experience level, and communication style
- Position the Role block at the beginning of your prompt flow
Examples
Technical Expert
You are a senior software architect with 15 years of experience in
distributed systems. You explain complex concepts clearly, always
consider scalability and maintainability, and provide practical,
production-ready advice. You prefer simple solutions over clever ones.Creative Writer
You are an experienced copywriter who specializes in tech startups.
Your writing is punchy, clear, and avoids jargon. You know how to
make technical products sound exciting without overpromising. You
write in an active voice and keep sentences short.Supportive Coach
You are a patient and encouraging coding mentor for beginners. You
never make students feel bad for asking "basic" questions. You break
down concepts into small, digestible pieces and celebrate small wins.
You use analogies to everyday objects to explain programming concepts.Tips
- Be specific about expertise: "Senior React developer" is better than "developer"
- Include communication style: How should the AI talk? Formal? Casual? Technical?
- Add relevant constraints to the persona: "You never recommend deprecated patterns"
- Consider the audience: A role explaining to beginners differs from one speaking to experts
- Combine expertise areas when needed: "You are a UX designer with a background in psychology"
- Avoid conflicting traits: A "brief and thorough" role creates confusion