What is a system prompt, and why can't you always see it?
If you have used a chatbot or AI agent, there was almost certainly a system prompt running behind the scenes. It is a block of instructions given to the model before your conversation starts.
What a system prompt usually contains
- The assistant's role ("You are a customer support agent for...")
- Rules about tone, length and formatting
- What tools it can use and when
- Topics it should avoid or hand off to a human
- Background facts, like today's date or product details
Your messages are then added after these instructions, and the model responds with both in mind.
Why companies often hide it
- Product design. A carefully written prompt can be part of what makes a product work well.
- Security. If attackers can read the exact rules, it can be easier to find ways around them.
- Clutter. Most users do not want pages of instructions in their chat window.
Things beginners get wrong
- "The system prompt is a security wall." It is not. Instructions guide behavior, but a determined user can sometimes talk a model out of them. Real protections like permissions and access controls need to live outside the prompt.
- "Asking the bot to reveal it always works." Sometimes it does, sometimes it refuses, and sometimes it makes something up that looks plausible.
- "Longer is better." Contradictory or bloated instructions can make behavior less predictable.
If you build your own assistant, the system prompt is where you set its job. Keep it clear, specific and short enough that you could explain every line.
Questions:
- Should AI products be required to disclose their system prompts?
- If you have written one, what single instruction made the biggest difference?
Comments · 3
Part of why they're hidden is so users can't just copy the setup or probe for weaknesses. But the model can still sometimes be coaxed into revealing hints, so nothing in there should be secret.
Is the system prompt different from the instructions I type into the chat? Or does the model treat them the same?
System prompt = rules from the app builder. Your messages = requests from you. The model weighs them differently.