# System prompt

> A system prompt is the standing instruction block an app sends with a model request. Where it goes in Claude and OpenAI APIs, what to put in it, and a quick test.

Canonical: https://scaplet.com/glossary/system-prompt

Glossary Glossary · AI search

A system prompt is the standing instruction block an app sends with a model request. Where it goes in Claude and OpenAI APIs, what to put in it, and a quick test.

3 min

read

3

sources

Oct 30, 2026

updated

Scaplet Editorial Team

author

In one line

A system prompt is the standing instruction block an application sends with a model request to set the role, tone, rules and output format, apart from the user's own messages. In Anthropic's Messages API it is the `system` field. OpenAI's Responses API has the `instructions` parameter and `developer` messages for the same job.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsystem-prompt%20(%22System%20prompt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsystem-prompt%20(%22System%20prompt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsystem-prompt%20(%22System%20prompt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsystem-prompt%20(%22System%20prompt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

system

Anthropic field

instructions, developer message

OpenAI equivalents

The application, not the end user

Set by

Only if you send it again (OpenAI instructions are per request)

Persists

_01_At a glance

## Where the system prompt sits

The system prompt is one of the inputs the application controls. Anthropic's [prompting](/glossary/prompt-engineering) guide says that setting a role in the system prompt focuses [Claude](/ai-search/anthropic/ads)'s behavior and [tone](/glossary/tone-of-voice) for your use case, and that even one sentence makes a difference. [OpenAI](/ai-search/chatgpt/how-it-finds-sources) splits the same idea across three message types and one parameter, each with a different priority.

Vendor and field

### Anthropic `system`

What it carries

Role, rules, tone, format guidance

Priority and lifetime

Sent as its own field next to `messages`

Vendor and field

### OpenAI `instructions`

What it carries

High-level behavior: tone, goals, examples

Priority and lifetime

Takes priority over `input`, but applies only to the current request

Vendor and field

### OpenAI `developer` message

What it carries

Application-defined rules and logic

Priority and lifetime

Prioritized above user input

Vendor and field

### OpenAI `user` message

What it carries

The end user's input and configuration

Priority and lifetime

Lower than developer rules

OpenAI compares a developer message to a function definition and a user message to the arguments passed into it. That picture works for any vendor: the system prompt defines how the task is done, and the user turn supplies what to do it on.

_02_At a glance

## Anatomy of a request with a system prompt

Field

### `system`

What it does here

The standing instruction. A single sentence that sets a role is a valid system prompt.

Field

### `messages`

What it does here

The conversation turns. The user's question lives here, not in `system`.

Field

### `max_tokens`

What it does here

Caps the length of the reply.

Field

### `model`

What it does here

Which model reads the prompt. Prompts tuned for one model can behave differently on another.

A minimal Claude request, from Anthropic's prompting guide

```
{ "model": "claude-opus-5-5", "max_tokens": 1024, "system": "You are a helpful coding assistant specializing in Python.", "messages": [ {"role": "user", "content": "How do I sort a list of dictionaries by key?"} ] }
```

Anthropic's prompt caching docs list the cached prefix order as `tools`, then `system`, then `messages`. A system prompt that stays identical between requests therefore sits in a cacheable [position](/glossary/average-position). See [prompt caching](/glossary/prompt-caching).

_03_At a glance

## What belongs in it

OpenAI's guide describes a typical developer message as four parts, noting that the best order varies by model. Anthropic recommends wrapping each kind of content in its own XML tag when a prompt mixes instructions, context, examples and variable input.

Part

### Identity

Contents

The assistant's purpose, style and goals

Placement note

Usually first

Part

### Instructions

Contents

Rules, dos and don'ts, tool-use guidance

Placement note

After identity

Part

### Examples

Contents

Sample inputs with the output you want

Placement note

Pick diverse inputs

Part

### Context

Contents

Supporting data such as retrieved documents

Placement note

Usually near the end

**Shouting in a system prompt can backfire**Anthropic's guide says Claude Opus 4.5 and 4.6 follow the system prompt more closely than earlier models. Prompts written to force tool use with emphatic language such as capital letters and MUST can now overtrigger. Its fix is plain wording: say when to use the tool, without the shouting.

_04_How it works

## Check it in 2 minutes

1. 01

### Send the same user turn twice

Once with the `system` field and once without. If the two replies are indistinguishable, the system prompt is not doing the work you think it is.
2. 02

### Test instructions you removed

Delete one rule at a time and rerun. A rule whose removal changes nothing can go, which also shortens every request.
3. 03

### Resend OpenAI instructions on chained calls

OpenAI says `instructions` applies only to the current request and is not carried into later turns when you use `previous_response_id`. Pass it again each time.
4. 04

### Re-run after a model change

OpenAI advises pinning model snapshots and building evals, then re-running them when you change prompts or upgrade models.

Questions

## Asked a lot.

1 questions people ask next, answered from the sources on this page.

_01_ Is OpenAI's instructions parameter the same as a system prompt?

It plays the same role: high-level behavior set by the application. OpenAI documents one difference that matters, which is that `instructions` applies only to the current request and is not carried forward when you chain turns with `previous_response_id`.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- claude.com
- openai.com

1. 01 [Prompting best practices (Claude docs)](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices) platform.claude.com · checked 2026-11-01
2. 02 [Prompt engineering (OpenAI developer docs)](https://developers.openai.com/api/docs/guides/prompt-engineering) developers.openai.com · checked 2026-11-01
3. 03 [Prompt caching (Claude docs)](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) platform.claude.com · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn Structured outputs AI search](/glossary/structured-outputs) [Related Context window AI search](/glossary/context-window) [Read next Prompt caching AI search](/glossary/prompt-caching) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[SVG](/glossary/svg) [Synthetic monitoring](/glossary/synthetic-monitoring) [TAM, SAM, SOM](/glossary/tam-sam-som) [Technical SEO](/glossary/technical-seo)

More in AI search
[Grounding](/glossary/grounding) [Knowledge cutoff](/glossary/knowledge-cutoff) [Large Language Model](/glossary/large-language-model) [Model Context Protocol](/glossary/model-context-protocol) [Multimodal AI](/glossary/multimodal-ai) [Prompt caching](/glossary/prompt-caching) [Prompt engineering](/glossary/prompt-engineering) [Prompt tracking](/glossary/prompt-tracking) [Reranking](/glossary/reranking) [Retrieval-Augmented Generation](/glossary/retrieval-augmented-generation) [Semantic Search](/glossary/semantic-search) [Structured outputs](/glossary/structured-outputs) [System prompt](/glossary/system-prompt) [Temperature](/glossary/temperature) [Tokenization](/glossary/tokenization) [Tool use](/glossary/tool-use) [Vector search](/glossary/vector-search) [AI Agents](/glossary/ai-agents) [AI citations](/glossary/ai-citations) [AI detection](/glossary/ai-detection) [AI Hallucination](/glossary/ai-hallucination) [AI Mode](/glossary/ai-mode) [AI Overviews](/glossary/ai-overviews) [AI search](/glossary/ai-search)

Terms on this page
[Prompt engineering](/glossary/prompt-engineering) [Tone of voice](/glossary/tone-of-voice) [Prompt caching](/glossary/prompt-caching) [Average position](/glossary/average-position)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
