Free auditStart free
GlossaryGlossary · AI search

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.

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 withChatGPTClaudePerplexityGoogleAI Mode

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
01At a glance

Where the system prompt sits

The system prompt is one of the inputs the application controls. Anthropic's prompting guide says that setting a role in the system prompt focuses Claude's behavior and tone for your use case, and that even one sentence makes a difference. OpenAI 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.

03At 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
04How 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.

01Is 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. 01Prompting best practices (Claude docs)platform.claude.com · checked 2026-11-01
  2. 02Prompt engineering (OpenAI developer docs)developers.openai.com · checked 2026-11-01
  3. 03Prompt caching (Claude docs)platform.claude.com · checked 2026-11-01
Free · 2 minutes

Know the term. Now check your site.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly