Season 2 · Prompt Engineering · Episode 2

S2E2 Set the Role

Tell the AI who it is, and everything changes

What this lesson is about

When you ask an AI a question with no instructions, you get a generic answer. When you start your prompt by giving it a role, a persona, an identity, the tone, the vocabulary, and the level of detail all shift at once. This technique is called role prompting, and it is one of the most powerful tools in prompt engineering. Today you try out different roles on a topic of your choice and watch how each one reshapes the response.

What you'll be able to do

A role works because an AI generates text by following patterns it learned from huge amounts of human writing. Naming a role like surgeon, tortoise, or detective switches on a whole cluster of those patterns at once, which is why one good role instruction can do the work of ten separate style instructions. It is also a useful reminder that an AI sounding like an expert is not the same as it being one.

Why does telling an AI who it is change the answer more than telling it what to do?

Readings

Key words

Role prompting
Opening a prompt by naming who the AI is, so tone, vocabulary and depth all shift at once.
Persona
The identity you hand it — surgeon, tortoise, detective — and the cluster of patterns that comes with it.
Register
How formal or casual language is. A role sets it in one move, without you listing rules.