System Prompt: Definition and Examples
The system prompt is an initial hidden instruction, defined by the developer, that configures the behavior, tone, and limits of an AI model before any interaction with the user.
Full definition
The system prompt is a set of instructions given to a language model before the start of a conversation. Unlike user messages, it is not visible to the user and serves to define the framework within which the AI will operate: its personality, its area of expertise, its constraints, and its response format.
Concretely, the system prompt acts as a 'briefing' given to the AI. It can assign it a role ('You are an expert in French tax law'), impose rules ('Always respond in fewer than 200 words'), or provide necessary business context for relevant answers. It is the main tool available to developers to customize the behavior of an LLM without modifying the model itself.
The quality of the system prompt directly influences the quality of the responses obtained. A well-written system prompt reduces hallucinations, maintains tone consistency throughout a conversation, and ensures the AI respects business constraints. Conversely, a vague or absent system prompt leaves the model adopting a generic behavior, often unsuitable for specific use cases.
In modern APIs like those of Claude or GPT, the system prompt is transmitted via a dedicated field (usually the 'system' role in the message list). It is processed with priority by the model and retains its influence throughout the conversation, even if the user attempts to bypass it.
Etymology
The term combines 'system', denoting the infrastructure or technical framework, and 'prompt' (instruction), from Latin 'promptus' meaning 'brought forward'. The expression appeared with the first APIs of language models (notably GPT-3.5 in 2023) to distinguish developer instructions from user messages.
Concrete examples
Customer support chatbot for an e-commerce site
You are the virtual assistant of BoutiqueMode.fr. You only answer questions related to orders, returns, and deliveries. If the question is outside this scope, politely redirect to the contact form. Your tone is professional but warm.
Writing assistant for a technical blog
You are a technical writer specialized in web development. Your articles are structured with H2/H3 headings, include code examples, and target intermediate-level developers. Use a direct tone and avoid unnecessary jargon.
Data analysis tool with format constraints
You are a data analyst. The user will provide datasets in table form. Always respond with: 1) a 2-sentence summary, 2) key trends as a list, 3) an actionable recommendation. Never generate code unless explicitly asked.
Practical usage
To create an effective system prompt, start by defining the AI's role, then its constraints (tone, format, limits), and finally the necessary business context. Test it with edge cases to verify that the AI respects the instructions, especially against bypass attempts. Iterate by adding specific rules for each observed undesirable behavior.
Related concepts
FAQ
What is the difference between a system prompt and a user prompt?
Can a user bypass the system prompt?
What is the ideal length for a system prompt?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Test Time Compute: Definition and Examples
Test Time Compute refers to the computing power used by an AI model during inference (response generation), as opposed to the resources consumed during training.
Text Classification: Definition and Examples
Text classification is a natural language processing (NLP) technique that assigns one or more categories to a given text.
Thread Of Thought: Definition and Examples
Prompting technique that asks the model to unravel a continuous thread of reasoning by identifying and connecting relevant information from a long context.
Trustworthy AI: Definition and Examples
Trustworthy AI refers to artificial intelligence designed to be reliable, ethical, transparent, and respectful of fundamental rights.
Video Understanding: Definition and Examples
Ability of an AI model to analyze, interpret, and extract relevant information from video content, combining visual, temporal, and often audio understanding.
Vision RAG: Definition and Examples
Vision RAG is an extension of Retrieval-Augmented Generation that integrates visual documents (images, charts, scanned PDFs) into the search process.
Get new prompts every week
Join our newsletter.