System prompt
The standing instructions given to an AI model before any user message, setting its role, rules, tone and limits for every conversation it handles from then on.
By Syed Ali · Updated
What a system prompt is
A system prompt is the briefing an AI model gets before it meets anyone. Customers never see it, but it shapes every reply. It says what the AI is for, what it may and may not do, which sources to trust, how to sound and when to stop.
Think of it as the onboarding document and policy handbook for an AI agent, condensed into instructions it reads at the start of every conversation.
System prompt vs user prompt
- System prompt: written by the team deploying the AI. Stays the same across conversations. Sets role, rules and limits.
- User prompt: the customer's message or the agent's request. Changes every time.
- Retrieved context: the help center passages and ticket details added for this specific question.
The model sees all three together inside its context window. It is instructed to treat the system prompt as the higher authority.
What goes into a support system prompt
- Role. "You answer customer questions for an accounting software company."
- Sources. "Answer only from the provided articles and past tickets."
- Rules. Refund limits, topics to escalate, things never to promise.
- Tone. Formal or casual, first names or not, length of replies.
- Unsure behavior. "If the sources do not answer the question, say you are passing it to the team."
- Format. Greeting, structure, sign-off, language rules.
A short example:
You are the support assistant for Acme. Reply in the customer's language. Use only the sources provided. Never confirm a refund; tell the customer the team will review it. If you cannot answer fully, say so and hand off.
Keeping a system prompt safe
- No secrets. Keys, passwords and internal URLs do not belong in it.
- Expect attacks. Prompt injection tries to override the system prompt with instructions hidden in a message or document.
- Do not rely on the prompt alone. Enforce hard limits with permissions and AI guardrails, since a prompt is guidance, not a lock.
- Version and test changes on real conversations, the same way you would test code.
System prompts in practice
Writing a system prompt is prompt engineering at its most important point, because every conversation inherits it. Start short, add rules only when a real conversation shows they are needed, and remove rules that never fire.
Pluno's Product Agent gives each domain a custom prompt for your terminology, preferences and limits, and the agent answers from a linked knowledge hub. For hard limits, rely on the user's permissions in your product. The Product Agent customize docs explain how.
Frequently asked questions
It is the set of instructions an AI model receives before the conversation starts. It tells the model who it is, what it should and should not do, which sources to rely on and how to format answers.
The system prompt is written by the team that deploys the AI and stays the same across conversations. The user prompt is what the customer or agent types each time. The model is told to follow the system prompt when the two conflict.
They should not, but a determined user can sometimes coax a model into revealing it. Never put secrets, keys or private customer data in a system prompt.
As long as needed and no longer. Every rule should earn its place. Long prompts with overlapping rules make behavior less predictable and use up space in the context window.
Related terms
Prompt engineering
Writing and testing the instructions, examples and context given to an AI model so that it produces the output you want reliably, not just on a lucky try.
Context window
The maximum amount of text, measured in tokens, that a language model can consider at once, covering its instructions, the conversation, sources and reply.
AI guardrails
Rules and checks around an AI system that limit what it may say or do, such as which topics it answers, which actions it may take and when it must hand off.
Prompt injection
An attack where text sent to an AI system, such as a customer message or a web page it reads, contains hidden instructions meant to override what it was told.