What Is a System Prompt? The Hidden Instructions Behind Every AI Chat, Explained Simply
Two apps can run the exact same AI model and still feel like different personalities — one formal, one chatty, one that refuses things the other happily does. Much of that difference comes from the system prompt: a set of hidden instructions the AI reads before it ever sees your message. Here is how it works, and how understanding it makes you better at using AI.
What a System Prompt Is
A system prompt is text handed to the model before the conversation starts: "You are an assistant called X," "Answer concisely," "For medical questions, recommend seeing a doctor." Role, tone, rules, and context are loaded up front, and everything you type afterward is interpreted against that foundation.
System Prompt vs. Your Prompt
What you type in the chat box is the user prompt. The system prompt sits underneath it and, by design, generally takes priority. That is why the same model behaves differently across a chat app, a search product, and a workplace tool — each product lays down its own system prompt.
What's Typically Inside
- Role and persona: name, identity, speaking style
- Rules: what to answer, what to refuse, safety policies
- Format: when to use lists, how long to answer, which language
- Tool use: when to search the web or run code
- Context: today's date, the user's environment
Some companies keep these secret; others publish them. Anthropic, for example, publicly documents the system prompts used in its Claude apps — a useful window into why an AI behaves the way it does.
You Can Layer Your Own: Custom Instructions
Most AI services let users register standing instructions of their own — ChatGPT's custom instructions, Gemini's Gems (now becoming Skills), Claude's projects. Write "lead with the conclusion" or "explain jargon" once, and it applies to every chat. This is the system-prompt mechanism, opened up to users.
The Weak Spot: Prompt Injection
A system prompt is not a vault. Prompt injection attacks try to override it with text like "ignore your previous instructions" — sometimes successfully, especially when the attack text arrives hidden inside a web page or document the AI is asked to read. Instructions can also be coaxed out by persistent users. The standard design rule: never put secrets in a system prompt.
What One Looks Like
A miniature example makes it concrete. An airline's support bot might carry a system prompt like: "You are the support assistant for Airline X. Answer only questions about bookings and baggage. Be polite, keep answers under 100 words, and never discuss refund amounts — route those to a human agent." Every behavior you notice in that bot — its topic limits, its brevity, its handoffs — traces back to lines like these.
Why This Knowledge Pays Off
When an AI's answer seems off, you can now ask the right question: is it the model, or the instructions wrapped around it? You can tune your own custom instructions to stabilize output. And you can evaluate AI products more fairly, knowing that "personality" is mostly a layer on top of the model, not the model itself.
FAQ
Can I see an app's system prompt?
Usually not — most are confidential, though some vendors publish theirs. Trying to extract a hidden one may violate a service's terms of use.
Does a system prompt stop hallucinations?
No. It shapes behavior and tone, but it cannot guarantee factual accuracy. Verify important numbers and names independently.
What should I put in my custom instructions?
Start with three things: output format (conclusion first, lists or prose), your context (profession, expertise level), and preferred style. Keep it short — overlong instructions are followed less reliably.
Related on AI Learning Lab: What Is Prompt Injection? · How to Write AI Prompts That Get Reliable Answers · What Is a Context Window?

Comments
Post a Comment