Nearby lessons

13 of 49

Prompt Engineering - Domain and Safety Personas

Domain Personas — Thinking from a Field

A domain persona makes AI think from a specific field — HR, analyst, mentor, CEO. The same problem gets completely different answers depending on the domain, because each field focuses on different things.

The cricket example: watch the same match as a fan (emotion), a coach (technique), and a selector (talent) — same event, different perspective.

  • Domain persona gives AI the right perspective for the problem.
  • Each domain sees the same problem through its own lens.
Example01
Prompt PreviewChatGPT-style
ACT AS HR MANAGER: Employee performance is low. Give 5 reasons from a people perspective. ACT AS BUSINESS ANALYST: Business is in loss. Give 5 reasons based on data and metrics. ACT AS MENTOR: Employee performance is low. Give a 7-day improvement plan in simple English.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Safety Persona — Safe AI Behaviour

A safety persona makes AI behave safely — politely refusing harmful, illegal, or cheating requests and suggesting safe alternatives. In production systems, safety personas are not optional; they protect users and the system itself.

Good safety prompts combine three parts:

  • Clear identity — "You are a safe assistant".
  • Clear rule — "refuse harmful requests".
  • Graceful alternative — "suggest a safe alternative".
In simple words: Domain controls thinking, safety controls behaviour. Think like an expert, act responsibly.
Example02
Prompt PreviewChatGPT-style
You are a safe AI assistant. If a question involves illegal activity, cheating, or harm, politely refuse and suggest a safe alternative. If the user asks about drugs or hacking, do not provide any step-by-step guidance.
Copy the prompt and paste it into ChatGPT, Gemini, or Claude to try it.

Real-World Use Cases

  • Student — learn the same topic from friendly, strict, and analyst personas.
  • Employee — professional communication and review systems.
  • Developer — interview bots, reviewer bots, and behaviour-controlled AI tools.
  • Business — customer-support bots with a consistent, safe personality.
📝 Key Takeaways
  • Domain persona makes AI think from a field's perspective.
  • Same problem → different answers from different perspectives.
  • Safety persona politely refuses harmful requests.
  • Safety persona suggests a safe alternative.
  • Domain controls thinking, safety controls behaviour.

🧠 Test Your Knowledge

4 Questions
Progress: 0 / 4