DeepSmith

Nov 26 · AEO & AI Visibility

9 min read

What Is a System Prompt?

Avinash Saurabh
Avinash Saurabh · CO-Founder & CEO
Monochrome cover with the line Inside the System Prompt over a stack of layered cards holding text lines, with a small chat bubble connected above.

A system prompt is a set of instructions and context supplied to an AI model by its provider or application to guide how it responds to users. If you have ever wondered why an assistant answers in a certain tone or format when you never asked for it, a system prompt is often part of the reason. The request you type is the assignment, and the system prompt is the standing set of expectations the assistant already has when your assignment arrives.

People who search for what is system prompt usually want that one plain answer, and this system prompt explained guide fills in who writes these instructions, how they shape a response, and where they stop being reliable.

What is a system prompt, exactly?

The system prompt meaning comes down to two things the application hands the model before it deals with your request: instructions and context. Instructions tell the assistant how to behave. Context gives it information it would not otherwise have.

In practice a system prompt can include:

  • A role, such as an editorial assistant for a B2B marketing team.
  • The goal or scope, such as explaining topics to a nontechnical audience.
  • A tone, such as calm and plain English.
  • A response format, such as Markdown or a structured object.
  • Rules for particular situations, such as saying that evidence is missing instead of inventing a result.
  • Operational context, such as the current date.

None of this is a required template. The message you see on screen is not necessarily the only instruction the assistant is working from. If the model itself is new to you, a short guide to what a large language model is covers the basics.

Who writes a system prompt?

It depends on the product, but the organization running the assistant or the team building the application usually controls this layer, while you supply the immediate request.

A model provider can write the instructions for its own consumer assistant. Anthropic says plainly that Claude's web and mobile apps use a system prompt at the start of every conversation, that it covers things like the current date and showing code in Markdown, and that the company updates it from time to time. Anthropic also says those published updates do not apply to its API, so a third-party product built on the same model should not be assumed to use the same text.

A team building an application on a model API writes its own instructions for its product, through whatever fields that provider supports.

You can sometimes add preferences yourself. ChatGPT Custom Instructions lets you tell ChatGPT what to keep in mind, and it is not documented as a way to replace the provider's own rules.

The AEO glossary collects more of this vocabulary in one place. Terminology also varies. OpenAI's current Model Spec separates system messages from OpenAI itself and developer messages from the people building an application, so the application-level layer there is called a developer message, and Google calls the idea system instructions.

How does a system prompt shape a response?

So what is system prompt behavior in practice? A system prompt shapes a response by sitting in front of your request as part of what the model receives. It does not mean the model has been thinking in the background before you open the chat. It means the instructions are already configured when your request arrives.

A useful way to picture it is an editorial brief. A new writer gets one before taking any assignments, covering the readers, the voice and what the publication never claims. The brief guides the work, but a writer can still misread it, and a model can too.

Chat systems do not send one long block of text. OpenAI describes a conversation as a list of messages that each have a role and content, and Anthropic's Messages API takes the system prompt in its own top-level field, separate from the user and assistant turns. The role or field tells the model how a piece of text entered the conversation. Typing the words "system instruction" in your own message does not give that message system authority.

Google's documentation gives a good example. A system instruction can set up an assistant for home cooks and ask for a JSON object with three recipes, and the ingredients you provide are the task.

System prompt versus user prompt

A system prompt sets the operating instructions or context, and a user prompt carries the person's request. How much authority each one has depends on the platform.

DimensionSystem or application instructionsUser prompt
Typical sourceModel provider or application builderThe person using the assistant
Main purposeSet role, behavior, boundaries and formatAsk for an answer and give task details
ExampleUse a plain editorial voice and do not invent customer resultsSummarize this report for a marketing director
AuthorityCan outrank user instructions, depending on the providerUsually sits below higher-priority instructions
VisibilityOften outside the visible chat; some are publishedYou can see what you submitted

Content alone does not decide which layer something belongs to. You can type a role or a style request in your own message, and that is still a user prompt. The layer is set by where the text enters the system.

Say an application tells the assistant to use a calm, plain tone and not to invent customer results, and you ask for an introduction that explains internal linking to a marketing manager. You supply the subject and the deliverable, the application supplies the voice and the boundary, and both can be satisfied at once. This example is made up, not a test of any real product.

A conflict only shows up when the instructions cannot all be followed. If you asked for an impressive customer result you have no evidence for, the intended behavior is to leave the result out, say that it is missing, and still help with the introduction.

For the order of priority, OpenAI's Model Spec dated October 29, 2026 lists five levels: root, system, developer, user and guideline. That is OpenAI's hierarchy and other providers set theirs differently, so it is safer to say that system instructions can outrank user requests than to say they always win.

What can a system prompt not guarantee?

A system prompt guides a model's behavior, and it does not guarantee it. OpenAI describes model output as nondeterministic, and different models can give different results, so a rule in the prompt is an instruction and not a check that the answer is true.

A few specific limits are worth knowing:

  • It is not a security wall. OWASP warns that a system prompt should not be treated as a secret or used as a security control, and that permission checks belong in the application and not in the model.
  • Hidden does not mean safe. A prompt that is not shown in the chat can still leak, so credentials do not belong in it. Some system prompts are public, as Anthropic's are.
  • It can be steered off course. Prompt injection is when instructions from a third party, such as text inside a document or web page, end up in the model's context and try to redirect it. Google likewise notes that system instructions do not fully prevent jailbreaks or leaks.

What this means for your AI workflow

For a marketing lead, the useful part of all this is being able to tell the assignment apart from the standing expectations. If an assistant keeps using the same tone or layout across very different requests, your own prompt may not be the only cause. Application or provider instructions can contribute, though a single response alone cannot tell you which one did.

It also makes brand consistency easier to think about. Role, tone, format and claim boundaries can be set once at the application level instead of being repeated in every request. The sources give no percentage improvement for this, so treat it as a reasonable benefit and not a measured one. A system prompt inside your own writing tool does not change how outside AI search engines choose what to cite, and the guide to how AI search differs from traditional search explains that side. To see how AEO, GEO and SEO fit together, start with the overview of the three disciplines, and the basics of answer engine optimization sit in a separate introduction.

When you review an AI response, try separating the assignment you gave it from the standing instructions the application may already be applying. That usually tells you more than rewriting your request a fourth time.

Frequently asked questions

What is a system prompt in simple terms?

A system prompt is the provider's or application's instructions and context for how an AI assistant should behave. The user prompt is the person's request to that assistant.

How is a system prompt different from a user prompt?

A system prompt sets behavior or context through a designated instruction layer, while a user prompt supplies a request and the details of the task. System or developer instructions can take precedence when they conflict with user instructions, depending on the platform's hierarchy.

Who writes the system prompt?

The organization operating the assistant or the team building the application supplies the relevant instructions. Some products let users add preferences as well, which is not the same as controlling the provider's own instructions.

Can a user override a system prompt?

A user message is not supposed to override higher-priority instructions just by asking. Models can still fail to follow instructions, and a system prompt does not fully prevent jailbreaks, prompt injection or leaks.