What is a system prompt? Plain-English guide
Hidden instructions a developer gives a model to set its role, rules and style before the user starts chatting.
Last reviewedIn plain English
A system prompt is a set of instructions given to an AI before the conversation starts, usually by the developer who built the app. It sets the role, the rules and the style the AI should follow. You normally cannot see it. Your own message, the prompt, comes after it.
A simple example
A bank builds a helper with a system prompt like this:
prompt
You are a friendly assistant for a retail bank. Answer questions about opening hours, branch locations and card services in short, plain language. If a question is about a customer's personal account, tell them to log in or call the helpline. Never ask for passwords.
When a customer types "What time do you open?", the AI answers in that style and within those limits, without the customer ever seeing the instructions.
Where you meet them
- Company chatbots that stay on topic and speak in the brand's voice
- Custom assistants and projects that let you save your own standing instructions
- Apps built on an API, where the developer sets the system prompt in code. See API.
If your chat tool has a place for custom instructions, you are writing a kind of system prompt for yourself.
What makes a good one
- A clear role, such as who the assistant is and who it helps
- Boundaries, such as topics to avoid and when to hand over to a person
- Style, such as tone, length and format
- Facts it must use, such as opening hours or policies
Limits
- It is not a security lock. People can sometimes get a model to ignore or reveal its instructions, a problem often called prompt injection. Do not put secrets in a system prompt.
- It uses up space. A long system prompt counts toward the context window on every request.
- It guides, it does not guarantee. The AI may still make mistakes, so important rules need a second safeguard.
Common mix-ups
- A system prompt is not the AI's training. It is text supplied at the start of each conversation.
- It is not always hidden. Some tools let you view or edit it.
Related terms
- PromptThe instructions or question you give an AI.
- ChatbotA program you talk to in normal language. Modern chatbots like ChatGPT, Claude and Gemini are powered by large language models.
- Agent (AI agent)An AI system that can plan steps and use tools (like search, email or code) to complete a goal, not just answer one message.
Keep reading
- GuidesWhat is prompt engineering? A beginner's guide5 min read