In this guide
A system prompt is a set of standing instructions that tells an AI model how to behave across a whole conversation, such as its purpose, tone and limits. Role prompting is the practice of asking the model to adopt a particular perspective, like an editor or a support agent. Used well, both make output more consistent. Used badly, they add noise without improving anything.
What a system prompt is
Most AI chat products and applications place a hidden block of instructions ahead of your messages. Developers use it to define what the assistant is for, what it should avoid and how it should respond. In some products, you can write your own version, often called custom instructions or a similar name, though the naming and the features differ by tool, so check the current documentation.
You can think of it as the difference between a job brief and a single task. The system prompt is the brief: who you are, how you work, what is off limits. Your message is the task of the moment. For background on how chat products are put together, see how AI chatbots work.
What role prompting is
Role prompting means telling the model to take on a viewpoint. Examples include "act as a careful copy editor" or "answer as a patient maths tutor for a 12-year-old". The role steers vocabulary, level of detail and priorities.
It works best when it is specific and tied to a task. "You are a helpful assistant" adds almost nothing, because that is the default. "You are a technical editor who removes jargon and keeps sentences under 20 words" tells the model exactly what to do.
Weak role versus strong role
Weak:
You are the world's best marketing genius. Write me something amazing.Stronger:
You are a copy editor for a B2B software company. Your readers are operations managers. Edit the text I provide for clarity and concision. Keep the author's meaning, remove filler, and flag any claim that needs a source.The second version defines the audience, the job and the boundaries. Flattering titles like "world-class expert" rarely improve accuracy, so spend those words on instructions instead.
What a good system prompt contains
- Purpose: what the assistant is for.
- Audience: who it is helping and what they know.
- Tone and style: formal, friendly, brief, plain.
- Boundaries: what to refuse, avoid or escalate.
- Handling uncertainty: what to do when it does not know.
- Format: how answers should be structured.
Here is a realistic example for an internal help assistant:
You are an assistant that answers staff questions about our expenses policy.
Use only the policy text provided below. If the answer is not in the text, say "I can't find that in the policy" and suggest contacting the finance team. Do not guess.
Keep answers under 100 words. Start with a direct answer, then give the relevant rule. Use plain English.
Do not give legal or tax advice.
Policy text:
"""
[policy text here]
"""Notice that the "do not guess" rule and the fallback phrase are doing as much work as the purpose statement.
Tips for writing better system prompts
- Be positive and specific. "Answer in two short paragraphs" is clearer than "do not write too much".
- Explain why when it matters. "Avoid medical advice because users may rely on it" helps the model apply the rule sensibly.
- Keep it short enough to maintain. A long, tangled prompt is hard to debug.
- Test with awkward inputs. Try off-topic questions, vague requests and attempts to push past the rules.
- Version your prompts. Keep a record of what changed, so you can see which edit helped.
For the general method behind instructions, read how to write good AI prompts, and see common prompt mistakes and fixes when results disappoint.
Limits and risks
A system prompt guides the model, but it is not a lock. Models do not follow every instruction perfectly, and a determined user may be able to talk an assistant out of its rules. Content from outside, such as a web page or an email the assistant reads, can also contain instructions that try to override yours. This is explained in what prompt injection is.
Because of this, do not put secrets such as passwords or private keys in a system prompt, and do not rely on it alone for safety-critical rules. Important limits should also be enforced outside the model, for example through permissions and human approval.
Using these ideas in everyday work
In any chat tool, you can paste a short role and rules block at the start of a conversation and reuse it. QAM.AI's lessons cover roles and standing instructions with text exercises, and the programme page shows the structure.
Key takeaways
- A system prompt is a standing set of instructions that frames the whole conversation; role prompting assigns a perspective for a task.
- Specific roles tied to a job, audience and boundaries work better than flattering titles.
- Good system prompts cover purpose, audience, tone, boundaries, uncertainty handling and format.
- System prompts guide behaviour but cannot guarantee it, so test them and enforce critical rules elsewhere.
- Never place secrets in a system prompt.
Frequently asked questions
What is the difference between a system prompt and a user prompt?
A system prompt sets the standing rules and purpose for the assistant, usually written by the developer or set in your tool's settings. A user prompt is the specific request you send in each message. Both are read together by the model.
Does telling the model to act as an expert make it more accurate?
Not reliably. A role can change tone and focus, but it does not give the model knowledge it lacks. Accuracy comes from clear tasks, good source material and your own checking.
Can I see the system prompt in the tools I use?
Often not. Many products keep it hidden, and what you can customise differs between tools and changes over time. Check the tool's current documentation for what settings are available.
This guide is general educational information and is reviewed periodically. AI tools change quickly, so check each vendor's current documentation before relying on specific features or limits.