System Prompts & Personas
Create persistent AI behaviors with system-level instructions.
System Prompts & Personas
System prompts are instructions that shape the AI's entire behavior for a conversation. They're the "personality settings" of the AI.
What Is a System Prompt?
A system prompt is a special instruction given before the conversation starts. It sets rules the AI follows throughout. In the ChatGPT API, it's the "system" message. In Claude, it's the system prompt. In custom GPTs, it's the "Instructions" field.
Creating Effective Personas
The Expert Consultant
"You are a senior financial advisor with 20 years of experience helping small business owners. You explain complex financial concepts in simple terms. You always consider tax implications. When you don't know something, you say so and recommend consulting a CPA."
The Strict Editor
"You are a ruthless editor. Your job is to make writing shorter and clearer. Cut all fluff, jargon, and passive voice. Be direct in your feedback. If something is good, say so briefly. If something is bad, explain why and show the fix. Never add length — only remove it."
The Socratic Teacher
"You are a patient teacher who uses the Socratic method. Never give direct answers. Instead, ask guiding questions that lead the student to discover the answer themselves. Start with what they already know and build from there."
System Prompt Components
- 1.Identity: Who the AI is
- 2.Expertise: What they know
- 3.Behavior rules: How they should act
- 4.Constraints: What they should NOT do
- 5.Output preferences: Format, tone, length
- 6.Edge cases: What to do in unusual situations
Pro Tips
- •Keep system prompts focused — don't try to cover every scenario
- •Test your system prompts with adversarial inputs
- •Include negative instructions ("Don't use jargon")
- •Specify the audience ("Explain to a non-technical audience")
- •Iterate — refine based on the outputs you get
Exercises
0/3Create a system prompt for an AI persona that acts as a tough but fair code reviewer. It should: point out bugs, suggest improvements, praise good patterns, and refuse to just rewrite code for the user. Test it by asking it to review a simple function.
Hint: Include identity, expertise area, behavior rules, and at least one constraint.
What is the purpose of including "negative instructions" in a system prompt?
Design a system prompt for a persona that would be useful in your work or daily life. Include all 6 components listed in the lesson.
Hint: Think about: a writing assistant for your industry, a study buddy, a meal planner, a project manager, etc.