System prompt vs user prompt: what's the difference?
A system prompt is hidden instructions the app gives the AI before the chat starts, setting its role, tone and rules. A user prompt is the message you type. The system prompt shapes every reply.
Last updated
What each one means
- System prompt
- A system prompt is a hidden set of instructions the app gives the AI before you type anything. It sets the AI's role, tone and rules.
- Prompt
- A prompt is what you type to an AI: your question or instructions. Clearer prompts get better answers.
Side by side
| System prompt | Prompt | |
|---|---|---|
| Who writes it | The app's makers | You |
| Can you see it? | Usually not | Yes |
| What it covers | Role, tone, rules and limits | Your question or task right now |
| How long it lasts | The whole chat, applied to every message | One message |
| If they clash | Apps are usually built so it wins | Usually gives way |
| Example | "You are a friendly bank assistant. Never give investment advice." | "Can I raise my card limit?" |
| In a shop | The manager's briefing before opening | What a customer asks at the counter |
An example: a cooking app
A cooking app's makers write a system prompt: "You are a cheerful chef. Suggest only vegetarian recipes, and keep each answer under 100 words." You never see it. You type "What can I make with leeks?" That's your user prompt. The reply comes back short, cheerful and vegetarian, because the AI gets both together.
See the system prompt: change the hidden rule
The demo shows a hidden system prompt you can change: none, "keep it very short" or "end with a question". The question you send stays the same, but the reply changes to follow whichever rule the app set.
Your prompt: add building blocks
What you send
Suggest a cake.
Prompt strength: 0 of 4 blocks
AI reply
Try chocolate cake or Victoria sponge.
Change the system prompt and the same question gets a different answer. You never see these instructions, but the AI follows them every time.
See the user prompt: build it block by block
The demo starts with a bare prompt, "Suggest a cake", and a vague reply. Add a role, context, an example and a format one block at a time, and the reply changes from generic to a short list that fits a nut-free party for a six-year-old.
Your prompt: add building blocks
This lessonWhat you send
Suggest a cake.
Prompt strength: 0 of 4 blocks
AI reply
There are lots of kinds of cake, and the best one depends on the occasion and who's eating it. Popular choices include chocolate cake, Victoria sponge and carrot cake. Each has its own style, so it's worth thinking about what you like.
Turn blocks on one at a time. Context makes the answer fit your situation, an example sets the style, and a format controls the shape.
Common questions
What is a user prompt?
Another name for a prompt: the message you type to the AI. People say "user prompt" to tell it apart from the system prompt the app sets.
Can I write my own system prompt?
Often, yes. Many chat apps have a custom instructions setting that works like one, and tools for building AI apps let you write one directly.
Why do apps hide their system prompts?
Partly to keep their know-how private, and partly because it's setup you don't need to see. A few companies do publish theirs.