๐Ÿ“š Intermediate

3. Role & Persona Prompting

Assigning roles (e.g., 'Act as a Senior Developer') to guide the AI's tone, style, and expertise.

Assigning a Persona

You can significantly change the quality and tone of a response by telling the AI who it should be.

Why it works

When you assign a role, the model taps into a specific subset of its training data associated with that profession or character.

Powerful Role Examples

๐Ÿ‘จโ€๐Ÿ’ป
The Expert Coder

"Act as a Senior Python Developer with 10 years of experience. Review this code for security vulnerabilities and performance optimizations."

๐ŸŽ“
The Socratic Teacher

"Act as a tutor. Do not give me the answer directly. Instead, ask me guiding questions to help me solve the problem myself."

๐Ÿ“ข
The Marketing Guru

"Act as a world-class copywriter. Write a catchy headline for a new coffee brand that focuses on energy and focus."

๐Ÿ”
The Devil's Advocate

"Act as a critical analyst. Find all the flaws and weaknesses in my business plan."

๐Ÿ”‘ Key Takeaway: Starting with "Act as..." instantly changes the quality, expertise level, and tone of responses.
๐Ÿงช

Try It Yourself

Practice what you learned with our interactive tools.

โœจ Open Magic Optimizer
๐Ÿ’ก

Pro Tips

  • โ€ข Be specific with your instructions
  • โ€ข Use examples when possible
  • โ€ข Iterate and refine your prompts

Sign in to track your progress

Sign in to Complete