Definition
System prompt
Also called: system message, system instructions, developer message
What System prompt means in practice
In an API request, text is labelled by role: system (or developer), user and assistant. The system prompt sits at the top, and models are generally built to give it more weight than ordinary user messages.
You meet the term when building with AI APIs, in custom assistant builders, and when people share the “leaked” system prompts of popular chatbots. Consumer chat apps run their own system prompts behind the scenes.
One nuance: a system prompt is guidance, not a security boundary. Users can sometimes override or reveal it through prompt injection, so sensitive data and permissions should be protected elsewhere.
Example
A support bot’s system prompt: “You are a support agent for Acme. Answer only from the help center articles provided, and hand billing questions to a human.”
Used in a sentence: Put the tone guidelines in the system prompt so you don’t have to repeat them in every message.
Often confused with
- User prompt
- The user prompt is what the person types each turn. The system prompt is set in advance and frames every turn.
- Fine-tuning
- A system prompt shapes behaviour with text that can be edited instantly. Fine-tuning changes the model’s weights through extra training.
- Context engineering
- The system prompt is one input. Context engineering is the wider practice of deciding everything the model sees, including retrieved documents, tool results and history.
Full guide
What is a system prompt? →
How it works, examples, and common questions, explained in plain English.
Common questions
Is a system prompt the same as a developer message?
Largely, yes. OpenAI’s APIs accept the app builder’s top-level instructions as a system or developer message, while Anthropic’s API uses a dedicated system parameter. Both play the same role: instructions from the app builder that frame the user’s messages.
Does a system prompt use up the context window?
Yes. The system prompt is sent with every request, so its tokens count toward the context window and, through an API, toward input token costs. A long system prompt leaves less room for documents and conversation.
Sources and further reading
- Prompting best practices (give Claude a role) — Anthropic
- LLM01:2025 Prompt Injection — OWASP Gen AI Security Project
Read more
- Prompt vs context engineering
Prompt engineering is the craft of wording instructions so a model understands the task. Context engineering is the wider job of deciding everything the model sees on each call: system prompt, retrieved documents, tool definitions and results, memory, examples, and conversation history, all within a limited context window. Prompt engineering is one part of context engineering.
- What is fine-tuning?
Fine-tuning is the process of taking an AI model that has already been trained on broad data and training it further on a smaller, focused set of examples, so it gets better at a specific task, format, or style. It changes the model’s internal weights, unlike prompting, which only changes the instructions you give it.