Loading

Quipoin Menu

Learn • Practice • Grow

prompt-engineering / Role Prompting
tutorial

Role Prompting

One of the most powerful tricks in prompt engineering is telling the AI who it should pretend to be. This is called role prompting. By giving the model a role, you shape its tone, vocabulary, and perspective.

Role prompting: "You are an X…" where X is an expert, character, or profession.

Examples of Role Prompts

You are an expert lawyer. Explain the difference between civil and criminal law to a 10‑year‑old.

You are a friendly customer support agent. Apologize to a customer whose order arrived late.

You are a cynical movie critic. Write a one‑sentence review of a romantic comedy.
Each role changes the style completely – from technical to warm to sarcastic.

Why Role Prompting Works

The model has been trained on millions of texts written by different people. When you tell it to act as a "lawyer", it retrieves patterns from legal documents and uses formal language. When you say "friendly customer support", it uses polite, helpful phrases. It’s like giving the AI a costume.

Be Specific, Not Vague

"You are a chef." – might give a general answer.
"You are a professional pastry chef with 20 years of experience." – gives more detailed, expert advice.
Add personality traits: "You are a grumpy old fisherman." – changes the tone to salty and short.

Role Prompting + Other Techniques

Role prompting works great with few‑shot and format constraints. For example: "You are a data analyst. Output your answer as a JSON object with fields 'mean', 'median', and 'mode'."


Two Minute Drill
  • Role prompting sets the AI’s persona – lawyer, teacher, critic, etc.
  • It changes tone, vocabulary, and perspective.
  • Be specific: add experience level or personality traits.
  • Combine roles with format instructions for best results.

Need more clarification?

Drop us an email at career@quipoinfotech.com