Prompts & AI use

System Prompt

AI-assisted editorial review:

System prompt

A system prompt is a high-priority instruction given to a large language model (LLM) before a conversation starts. It sets the model's role, tone, rules and background information, and the model is expected to follow it in every response that comes after.[8][1]

What does System Prompt mean in simple terms?

Think of the ground rules a team agrees on before a project starts: "We speak politely, and we decide by majority vote." A system prompt does the same for an AI model. Before any conversation begins, you tell it once: "You are this kind of assistant, you answer in this tone, and you do not handle these topics." Anthropic notes that even a single sentence setting a role changes the model's behavior and tone.[8] You do not have to repeat the rules in every message. For chatbots, workflow automation and internal assistants that must keep the same style over many conversations, the system prompt is usually the first setting to work on.

How can System Prompt be explained with an analogy?

It is like the work manual a new employee receives on day one.

Where is System Prompt used?

Case 1

Anthropic — Publishing Claude's system prompts

Anthropic publishes the system prompts used on claude.ai and the Claude mobile apps in its release notes; the earliest dated entries are from July 2024.[2][12] These prompts give Claude up-to-date information such as the current date and encourage behaviors such as writing code snippets in Markdown. They do not apply to the Claude API.[2] Simon Willison's review of the Claude 4 prompt found the model's identity, tone guidance, safety guidance and a fixed fact about the 2024 US presidential election. He also noted that a leaked full version contained 6,471 tokens of instructions for the search tool alone, which Anthropic had not published.[3] When he asked the same model "what model are you?" through the API, without the app's system prompt, it gave a shorter and more generic answer.[3]
Result: Willison’s example illustrates how app-level instructions can change the same model’s response; it is not a controlled comparison of all app and API behavior.[2][3]

Case 2

Toss — Designing a persona bot

Toss, a Korean fintech company, built "Huribot," an AI bot that answers like a Toss user so designers can quickly check the usability of draft screens.[4] The team found that giving the bot a clear role and situation worked better than feeding it rules and example answers. Telling it what to do worked better than listing what not to do. They prepared 10–20 test screens and questions, and reran the same set every time they changed the prompt.[4]
Result: A clear role, positive instructions and a fixed test set were the main lessons the team shared (qualitative, no figures reported).[4]

Case 3

OpenAI Model Spec — Who outranks whom

OpenAI's Model Spec (December 2025 version) gives each instruction a level of authority: Root, System, Developer, User and Guideline. Higher levels override lower ones.[1] System messages sit at the System level and developer messages rank above user messages. Assistant and tool messages and quoted untrusted text have no authority.[1] In practice, a company puts business rules and limits in the system or developer message, and end users only send user messages. The spec also shows a model politely declining to reveal its system or developer message when an operator has asked it to keep it private.[1]
Result: The order of authority is written down: Root > System > Developer > User > Guideline.[1]

Case 4

The Instruction Hierarchy — Training models to respect it

OpenAI researchers argued that LLMs are vulnerable to prompt injection partly because they treat system prompts and untrusted user text as having the same priority.[6] They generated training data that teaches a model to ignore lower-priority instructions that conflict with higher ones, and applied it to GPT-3.5.[6] Robustness improved sharply, for example defense against system prompt extraction improved by 63%, with minimal loss of standard capabilities. Robustness also increased by up to 34% on attack types not seen in training, such as jailbreaks.[6]
Result: Up to 63% better robustness on trained attack types and up to 34% on unseen attack types (research results on GPT-3.5).[6]

Try it today

  1. Write one paragraph covering your job role, preferred tone and topics to avoid in ChatGPT's custom instructions or in a Claude Project's instructions.[11] These are saved user preferences, not control over the provider’s highest-priority instructions.
  2. Run the same request with and without that instruction and save both answers to compare.
  3. For a company chatbot, start the system prompt with the company name, the tone to use, what the bot must not answer, and where to send people when it cannot help.
  4. Read one of Claude's published system prompts and borrow its structure for identity, tone and safety guidance.[2]
  5. Prepare 10–20 fixed test questions and rerun them every time you change the system prompt, checking that the format stays consistent.[4]

Limits and direction

A system prompt is not a complete control mechanism. In one stress test, models followed a few guardrails reasonably well, but their performance approached zero as more guardrails were added. Real system prompts collected from the GPT Store and HuggingChat contained 5.1 guardrails on average. The authors concluded that current techniques fall short of ensuring system prompt robustness.[5] System prompts also leak: Claude 4's full prompt, including unpublished tool instructions, was posted in a public GitHub repository of leaked prompts.[3] Do not put secrets in a system prompt, and do not rely on it as your only safeguard.

Two directions are emerging. The first assigns authority levels to system, developer and user messages and trains models to respect that order, as in OpenAI's Model Spec and the Instruction Hierarchy research.[1][6] The second adapts the system prompt to each user input. Sysformer, a research method that keeps the LLM frozen, reported up to 80% gains in refusing harmful prompts and up to 90% better compliance with safe ones.[7] This is still research rather than an industry standard, so test any approach against your own use case.

How has System Prompt evolved?

2023
Chat API with message roles
OpenAI opened the GPT-3.5 Turbo (ChatGPT) API, which takes a list of messages instead of plain text; its ChatML format separates system, user and assistant messages.[9][10]
2023-07-20
ChatGPT custom instructions
OpenAI let users save preferences that ChatGPT considers in every conversation, starting with a beta for Plus users.[11]
2024-04-19
Instruction Hierarchy paper
OpenAI researchers proposed training models to give system prompts priority over lower-privileged instructions.[6]
2024-07-12
Claude system prompts published
Anthropic's release notes include claude.ai system prompts dated from July 12, 2024 onward.[12][2]
2025-12-18
Model Spec authority levels
OpenAI's Model Spec ranks instructions as Root, System, Developer, User and Guideline.[1]

Which concepts are related to System Prompt?

  • Related concept
    User PromptThe message the user actually types in the same conversation; it ranks below system and developer instructions.[1]
  • Foundation
    Prompt EngineeringDesigning roles and rules is a starting point of prompt engineering.[8]
  • Example tool
    Custom InstructionsLets ChatGPT users set standing instructions that apply to every conversation.[11]
  • Next step
    Persona PromptingGoes beyond assigning a role by giving the model a detailed character and situation.[4]

System Prompt vs User Prompt

ComparisonSystem PromptUser Prompt
Written byDeveloper or operatorEnd user
PurposeDefines the AI's identity and rulesAsks for a specific task or answer
How often it changesUsually maintained across a conversation; applications can update itNew in every turn
PriorityHigher than user requests; exact role hierarchy is provider-specific[1]Lower (User level)[1]
Typical useChatbot tone, limits and roleActual work requests and dialogue

Which sources explain System Prompt?

  1. OpenAI — Model Spec (2025-12-18) — https://model-spec.openai.com/2025-12-18.html
  2. Anthropic — System prompts (release notes for claude.ai and the Claude apps) — https://platform.claude.com/docs/en/release-notes/system-prompts/overview
  3. Simon Willison — Highlights from the Claude 4 system prompt (2025-05-25) — https://simonwillison.net/2025/May/25/claude-4-system-prompt/
  4. Toss Tech — Huribot story #2: Five prompts that make AI speak like a person (2024-12-02) — https://toss.tech/article/ai-prompting
  5. Mu et al., arXiv — A Closer Look at System Prompt Robustness (2025-02-15) — https://arxiv.org/abs/2502.12197
  6. Wallace et al. (OpenAI), arXiv — The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions (2024-04-19) — https://arxiv.org/abs/2404.13208
  7. Sharma et al., arXiv — Sysformer: Safeguarding Frozen Large Language Models with Adaptive System Prompts (2025-06-18, v2 2026-03-06) — https://arxiv.org/abs/2506.15751
  8. Anthropic — Prompting best practices: Give Claude a role — https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
  9. OpenAI — Introducing APIs for GPT-3.5 Turbo and Whisper (2023 launch; updated 2024-04-24) — https://openai.com/index/introducing-chatgpt-and-whisper-apis/
  10. OpenAI (openai-python) — Chat Markup Language (ChatML) preview (2023) — https://github.com/openai/openai-python/blob/120d225b91a8453e15240a49fb1c6794d8119326/chatml.md
  11. OpenAI — Custom instructions for ChatGPT (2023-07-20) — https://openai.com/index/custom-instructions-for-chatgpt/
  12. Anthropic — Claude Sonnet 3.5 system prompts (entries from 2024-07-12) — https://platform.claude.com/docs/en/release-notes/system-prompts/claude-sonnet-3-5