What is a system prompt?
A system prompt is the set of instructions a developer gives a model before the user's messages, to set its role, rules and output format.
In short. A system prompt is the set of instructions that a developer gives a model before the user's messages, to set its role, rules and output format. OpenAI calls them developer messages, and Google calls them system instructions. They take priority over user messages. Chat apps have system prompts too, and Anthropic publishes one version of the prompt for Claude's apps.
On this page 6 sections
The evidence
- Confirmed:
OpenAI says instructions given with the instructions parameter or in developer messages take priority over user messages.1OpenAI API documentation. Checked Dec 1, 2026
- Confirmed:
Claude's web, desktop and mobile apps use a system prompt at the start of every conversation. Anthropic says its updates to that prompt do not apply to the Claude API.3Claude API documentation. Checked Dec 1, 2026
- Confirmed:
For current models, Anthropic publishes one version of the app system prompt, used in some chats with web search turned off. Chats with web search turned on use other versions, which it does not publish.3Claude API documentation. Checked Dec 1, 2026
- Confirmed:
Confirmed by the platform
AI chat apps answer inside a system prompt that the user does not see in the chat. In AI search, that hidden prompt is part of why the same question can get a different answer in a chat app than through the developer API.
#How does a system prompt work?
A system prompt is sent with every request, ahead of the conversation, and the model treats it as the developer's rules. OpenAI's prompt engineering guide says instructions in the instructions parameter or in developer messages take priority over user messages. It compares developer messages to a function definition and user messages to the arguments of that function.1
The Gemini API's text generation guide passes the same kind of instruction in a system_instruction parameter. Its example is one line: "You are a cat. Your name is Neko."2 What is a prompt in AI? covers the parts of a prompt and the message roles.
#Why does a model follow the system prompt?
Providers design their models to give the developer's instructions more weight than the user's.1 Claude's Constitution calls the companies and people who build on Claude operators, and says they typically interact with Claude in the system prompt. Claude should generally follow the system prompt if that is not unsafe, unethical or against Anthropic's guidelines.4
The constitution gives an example from an airline customer service app. Its system prompt might say "Do not discuss current weather conditions even if asked to." Claude should follow it, because a plausible business reason exists. The airline does not want to seem to give authoritative advice on flight delays.4
#Do AI chat apps use system prompts?
Yes. Anthropic's system prompt release notes say Claude's web, desktop and mobile apps use a system prompt at the start of every conversation. It gives Claude current information, such as Anthropic's models and products, and encourages behaviors such as discussing topics factually. Anthropic's updates to it do not apply to the Claude API.3
Anthropic publishes one version of that prompt for each current model, used in some chats with web search turned off. Chats with web search turned on use other versions, which Anthropic does not publish.3 A test of AI search visibility through the API therefore runs without the app's system prompt. How to test AI search visibility with prompts covers how to set up such tests.
Read next
Measurement
How to test AI search visibility with prompts
Test brand visibility in ChatGPT, Claude, Gemini and Perplexity with 20 to 40 prompts across four intent stages, run in fresh sessions each month.
LLMs
How do large language models work?
LLMs predict text one token at a time from what fits in their context window. Tokens, context window sizes and the lost-in-the-middle effect.
LLMs
What is a context window?
A context window is the number of tokens a model can read and write in one request. Sizes from Anthropic, OpenAI and Google, and what happens at the limit.
AI search
How does AI search choose which sources to cite?
AI search retrieves pages from an index, reads passages and cites what it used. What OpenAI, Anthropic, Google, Microsoft and Perplexity document.
Used in
Related terms
Questions
What is the difference between a system prompt and a user prompt?
The system prompt comes from the developer and sets the rules for the whole conversation. The user prompt is the message a person types. OpenAI compares developer messages to a function definition and user messages to the arguments passed to that function.
Does the Claude API use the same system prompt as the Claude app?
No. Anthropic says its updates to the system prompt of Claude's web, desktop and mobile apps do not apply to the Claude API. A developer who calls the API writes their own system prompt or sends none.
Does a model always follow its system prompt?
No. Anthropic's constitution says Claude should generally follow an operator's system prompt unless doing so is unsafe, unethical or against Anthropic's guidelines. Anthropic's guidelines take precedence over those of the operator.
About this page
Researched and reviewed by Promptly Found. Reviewed Dec 1, 2026. Next review due Mar 2027.
Notes
- 1
- 2
- 3
- 4
Cite this page
Promptly Found. (2026, December 1). What is a system prompt? https://promptlyfound.com/glossary/system-prompt
Revisions 1
- First published.