In the summer of 2022, software engineer Riley Goodside posted a simple experiment on Twitter. He typed: "You are an expert Unix terminal. I will type commands and you will reply with what the terminal would show." The response was indistinguishable from a real terminal. Goodside had not changed the model. He had changed the instruction about who the model was supposed to be. The post became one of the most shared AI prompting demonstrations of that year, introducing thousands of people to what researchers would later call the persona prompt — one of the most reliable tools in prompt engineering.
A persona prompt is an instruction that tells an AI to adopt a specific identity, role, or character before it responds to anything else. Instead of asking AI a bare question, you first say: You are [someone]. Now answer.
This works because large language models are trained on enormous amounts of human writing. Every profession, communication style, and area of expertise has patterns in how its practitioners write. When you name a role, you activate those patterns. You are not giving the AI new knowledge — you are telling it which slice of its existing knowledge to bring forward.
When OpenAI released the GPT-4 system card in March 2023, they documented how their own researchers used system-level persona instructions to test safety. They assigned the model the role of an expert red-teamer — someone whose job is to find weaknesses — and then probed outputs. The same model, with the same knowledge, produced significantly different outputs depending on the role it had been assigned. This confirmed what prompt engineers already suspected: persona framing is one of the most powerful levers available to anyone using a language model.
Companies like Intercom, HubSpot, and Notion now build persona instructions directly into their AI-powered features. When Notion AI helps you write a blog post, it has been told — via a system prompt — to behave like a professional content writer. You never see that instruction, but you benefit from it every time.
A persona prompt has two parts. The first is the role declaration — who the AI is. The second is the task — what you want it to do. Everything else is optional refinement.
"Explain how to negotiate a raise."
"You are an executive career coach with 15 years of experience helping professionals negotiate compensation. Explain how to negotiate a raise."
The second prompt does not add new facts to the question. It tells the AI which expert voice to speak in. The result is typically more specific, more confident in tone, and more aligned with how an actual practitioner would explain the topic.
Students often write the persona after the task: "Explain how to negotiate a raise. You are a career coach." This reduces the effect. The role declaration should come first — it sets the context for everything that follows.
The more specific the persona, the more it shapes the response. "You are a doctor" is vague — there are many kinds of doctors. "You are a pediatric cardiologist explaining a diagnosis to worried parents" gives the AI two things: a specialty that narrows the knowledge domain, and an audience that shapes the communication style. Vague personas produce vague improvements. Specific personas produce specific, usable ones.
Persona prompts do not give AI new knowledge. They tell it which part of its existing knowledge to prioritize and how to communicate it. The best personas include: who the AI is, what expertise they have, and who they're speaking to.
You are going to practice writing persona prompts and seeing how they change responses. Start by giving the AI a role, then ask it a question that fits that role. Try at least three different personas during this lab.
Some ideas to try: a science teacher explaining something to a 10-year-old, a startup founder pitching to investors, a skeptical editor reviewing a news article, a travel guide for your home city.
When Anthropic published their model specification documents in 2023, they described how Claude's default character — its curiosity, directness, and care — had emerged partly from consistent persona-level instructions during training. The spec noted that operators could layer additional personas on top of this base character through system prompts. Companies building with Claude's API began publishing their own system prompt templates publicly on GitHub. Among the most starred repositories was one called awesome-claude-prompts, where community members had reverse-engineered and shared the persona instructions behind popular AI tools. The community discovered that the most effective personas consistently had the same structure: a role, an expertise level, an audience, and a behavior constraint.
Analyzing thousands of effective persona prompts — including those documented in Stanford HAI research, Anthropic usage studies, and public prompt engineering communities — four consistent ingredients emerge. Together they form what practitioners call a complete persona.
Zapier, the automation platform, documented their AI feature development in a 2023 blog post. Their team found that giving the AI a persona of "a pragmatic automation expert who values simplicity above all" produced dramatically more actionable suggestions than bare task prompts. The behavior constraint — "values simplicity above all" — was the ingredient that most changed output quality. Without it, the AI offered technically correct but overly complex automation workflows. With it, responses matched how their actual users wanted to work.
This pattern — the behavior constraint doing the heaviest lifting — appears consistently in published prompt engineering case studies from Notion, Jasper, and Copy.ai. The role and expertise level establish credibility; the audience and behavior constraint govern usefulness.
Tone can be embedded anywhere in a persona but works best in the behavior constraint slot. Compare these two behavior constraints attached to the same financial advisor persona:
"…who answers questions about money."
"…who is warm and reassuring, never dismissive of small concerns, and celebrates small financial wins enthusiastically."
The strong version tells the AI not just what to say but how to feel about saying it. Tone instructions like "enthusiastic," "patient," "skeptical," "formal," or "blunt" are short but change the character of a response significantly.
Students often write very long personas that repeat the same idea in different words. Length is not strength. Each ingredient should add new information: role, expertise, audience, behavior. Four focused words per ingredient beat forty vague ones.
Not every persona needs all four ingredients. For simple tasks, role plus one modifier is often sufficient. "You are a friendly grammar teacher" is complete for most editing requests. Reserve the full four-part structure for complex tasks where you need the AI to sustain a character through a long response or multi-turn conversation.
Also avoid contradictory constraints. "You are a blunt, no-nonsense critic who is also kind and gentle" gives the AI conflicting signals and produces inconsistent output. Pick a lane and stay in it.
Role + Expertise Level + Audience + Behavior Constraint. Each adds something the others do not. The behavior constraint is typically the ingredient that most improves output quality — because it governs how the AI communicates, not just what it knows.
Write a persona that includes all four ingredients: role, expertise level, audience, and behavior constraint. Then ask a question that tests it. Try building the same persona two ways — once with a weak behavior constraint and once with a specific one — and compare the outputs.
In February 2023, a widely circulated thread on Reddit's r/ChatGPT documented a problem users had discovered: after several exchanges, ChatGPT would gradually shed the persona it had been given and revert to its default, more cautious tone. Researchers at Anthropic and independent prompt engineers studying the phenomenon described it as persona drift — the gradual erosion of role-priming over a long conversation. The thread included practical workarounds that users had discovered: repeating the persona instruction at key moments, building the persona into the first message with unusual specificity, and using anchor phrases the AI could be told to maintain. These community-discovered techniques were later validated in formal prompt engineering research published in late 2023 by teams at UC Berkeley and MIT studying long-context instruction following.
Persona drift happens when an AI gradually moves away from an assigned role as a conversation extends. The role instruction, given at the start, competes with the growing weight of the conversation history. After enough turns, the model's default behavior begins to reassert itself.
This is not a bug — it is a natural consequence of how language models process context. Every message is part of a long sequence, and the model balances all of it when generating each response. Over time, the persona instruction becomes a smaller fraction of the total context.
The following techniques — drawn from both community practice and published research — each address persona drift differently. Use them in combination for long or complex conversations.
Companies building customer service chatbots on top of GPT-4 discovered persona drift when support conversations ran long. The documented solution, used by companies including Intercom in their 2023 AI Copilot launch, was to inject the persona instruction automatically every five user turns via a system prompt mechanism — invisible to users but preventing drift consistently.
Not all drift is bad. If you assign a very strict persona for an early part of a conversation and then need the AI to think more freely, allowing drift can work in your favor. The technique of deliberately not re-anchoring a persona — letting it fade — is used by some prompt engineers to transition the AI from a constrained expert voice to a more exploratory, generative one without explicitly breaking the character.
The skill is knowing when you want the persona to hold and when you are ready to let it go. Monitoring for drift — reading whether the AI's responses still match the original character — is part of working well with AI in extended sessions.
Persona drift is a specific type of a broader phenomenon called instruction drift — where any instruction given early in a conversation loses influence over time. The techniques for managing persona drift apply equally to other types of instructions: format requests, length limits, topic restrictions. Keeping important instructions fresh in the conversation history is a general best practice for any long AI interaction.
Persona drift is natural — not a failure. Manage it with front-loaded specificity, anchor phrases, and re-establishment at key transitions. And remember: sometimes letting a persona fade gracefully is itself a useful technique.
Assign a vivid persona and then hold a 5-turn conversation. Watch for signs of drift — changes in tone, vocabulary, or approach. Practice using anchor phrases mid-conversation to re-establish the character when you notice drift happening.
In October 2023, the writing tool Sudowrite published a breakdown of the AI personas powering their features. Their "Brainstorm" feature used a persona described as a wildly creative collaborator who never says no to an idea and always escalates rather than filters. Their "Critique" feature used the opposite: a demanding editor who has high standards and believes most first drafts can be significantly improved. Same underlying model. Radically different personas. The co-founders noted in interviews that the persona design for each feature took longer than the technical integration — because getting the character right was what determined whether the tool was actually useful. Users who had both features available began to develop what Sudowrite called a "persona workflow": using the creative persona to generate, then the critical persona to evaluate.
Different goals require fundamentally different AI characters. Using an encouraging, exploratory persona to evaluate whether your business plan has flaws will produce poor results — not because the AI lacks knowledge, but because the character you assigned is not designed to find problems. The persona shapes the goal more than the task instruction does.
Four broad purpose categories, each with distinct persona characteristics:
For brainstorming, ideation, and generative work, you want a persona that escalates, never filters prematurely, and treats every idea as a starting point rather than an endpoint.
For research, explanation, and structured reasoning, you want a persona that prioritizes accuracy, acknowledges uncertainty, and organizes information logically.
For editing, evaluation, and stress-testing arguments, you want a persona that is not trying to be kind — its job is to find what is weak, missing, or wrong.
For learning, explanation, and skill-building, you want a persona that meets the learner where they are, checks understanding, and builds knowledge step by step.
Sudowrite's observation — that users developed a "persona workflow" of generate-then-evaluate — reflects a broader professional pattern. Prompt engineers at companies like Notion, Anthropic, and Google DeepMind routinely use multiple personas in sequence on the same content:
Using a single "helpful assistant" persona for all tasks. A helpful assistant is designed to please — it will validate weak ideas, soften criticisms, and avoid conflict. For tasks where you need genuine challenge or rigorous analysis, assign a persona that is explicitly not trying to be agreeable.
Responsible prompting also means understanding the limits of persona assignment. Asking AI to play a character whose purpose is to bypass safety guidelines, produce harmful content, or impersonate real living people in misleading ways is a misuse of persona prompting — and modern AI systems are specifically trained to recognize and resist this. The persona techniques in this module are designed for legitimate creative, analytical, educational, and professional purposes.
The persona shapes the goal. A creative persona generates; an analytical persona clarifies; a critical persona challenges; a pedagogical persona teaches. Using the wrong persona for your purpose produces poor results even with a perfect task description. Build a workflow that sequences personas intentionally.
Choose any topic, idea, or piece of writing. Then run it through a persona workflow: first use a creative persona to generate ideas about it, then an analytical persona to organize those ideas, then a critical persona to find weaknesses. Observe how the same topic looks completely different through each lens.