System prompt
A system prompt is a set of instructions placed before a conversation with an AI model, usually by the developer or provider, that sets its role, rules, tone and context for every reply.
When you chat with an AI assistant, the model usually sees more than your message. Ahead of it sits a block of text you did not write: the system prompt. It might tell the model the current date, what product it is part of, which topics to avoid, how long answers should be and what tools it can use. Anthropic's API documentation describes it as a way to give the model context and instructions, such as a goal or role.
Technically, it is just more text. Hugging Face's documentation on chat templates shows that a conversation's system, user and assistant messages are converted into one sequence of tokens with special markers showing who said what, and the system message is usually placed at the start. Models are trained to give that section more weight, which is what makes it useful for setting behaviour across a whole conversation.
Providers rank instructions by source. OpenAI's developer guide says developer messages take priority over user messages, and its Model Spec, in the version dated October 29, 2026, sets out a chain of command running from its own fixed rules down through system, developer and user instructions. A user can ask for a different tone, but should not be able to talk the model out of rules set higher up. In practice adherence is imperfect: when OpenAI announced GPT-4 in March 2023, it noted that system messages were also the easiest way to jailbreak the model.
Consumer chatbots have long system prompts of their own. Anthropic publishes versions of the system prompt used in its Claude apps, explaining that it supplies up-to-date information and encourages behaviour such as discussing topics factually. It also notes that these prompts do not apply when developers call Claude through its API, where the developer writes the system prompt instead. That is why the same model can behave quite differently in a company's chatbot than in the provider's own app.
For anyone building on a model, the system prompt is the main control surface. It is where the persona, scope, formatting rules and safety instructions go. It is not a guarantee: it shapes behaviour strongly, but a model can still drift from it, so important limits also need checks outside the model.
It is the set of instructions placed before a conversation that tells an AI model how to behave throughout it, for example its role, tone, rules and available tools. It is normally written by the developer or the AI provider, not by the end user. The system prompt sets standing instructions for the whole conversation and usually carries more authority. The user prompt is each message the person types. Providers such as OpenAI state that developer or system instructions take priority when the two conflict. Anthropic publishes versions of the system prompts used in its Claude apps on its documentation site, while noting that some chat configurations use other versions. Other providers publish less. A system prompt set by a third-party company in its own product is generally not public. No. Models are trained to give system prompts priority, but adherence is not perfect and determined users can sometimes get around them. Important restrictions, such as access to data or the ability to take actions, should also be enforced in the software around the model.Common questions
What is a system prompt?
What is the difference between a system prompt and a user prompt?
Can I see ChatGPT's or Claude's system prompt?
Does a system prompt guarantee the model will follow the rules?
Search for "system prompt" with the model or provider you use, "system message", "instruction hierarchy" or "Model Spec chain of command". Providers' API documentation and published policy documents are the authoritative sources for how system prompts are handled, and some providers publish their own app prompts. Be careful with copies of system prompts circulating online that claim to be leaked, since they are hard to verify and change often.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.