- What it isBackground instructions that guide a model for a whole session.
- Who sets itThe developer or team building the AI tool or assistant.
- What it controlsRole, tone, format, scope and rules the model should follow.
- How it is checkedTest with normal, off-topic and adversarial questions.
- Common mistakeTreating it as a lock that cannot be bypassed.
What does a system prompt do?
When you use an AI assistant, there are usually two layers of instruction. The user types a question. Behind it, the system prompt tells the model who it is, how to speak and what to avoid. The user often never sees it.
For a marketing team, this is where brand voice and ground rules live. A support assistant might be told to answer only from approved help pages, to keep replies short and to hand off to a person for pricing questions.
What should a good system prompt include?
Clear, specific instructions work better than long, vague ones. Say what the assistant is for, what it must not do and what to do when it does not know. Keep each rule testable so you can tell whether it is being followed.
| Element | Example instruction |
|---|---|
| Role | You answer questions about our SEO services for prospective clients |
| Tone | Plain, direct and free of hype |
| Scope | Only answer from the supplied pages; otherwise say you are unsure |
| Format | Keep answers under 120 words and end with a next step |
| Handoff | For pricing or contracts, offer to connect a person |
How do you test a system prompt?
Writing it is the easy part. The value comes from testing it against the questions real people will ask, including awkward ones.
- Build a question setCollect typical questions from sales calls, support and search queries.
- Add hard casesInclude off-topic requests, requests for private data and attempts to override the rules.
- Score the answersCheck tone, accuracy, scope and handoff against a simple rubric.
- Change one thing at a timeEdit one rule per round so you know what caused any change.
- Re-test after updatesRun the set again whenever the model or tool is upgraded.
What are common mistakes?
Teams often assume the model will always obey. Models can be steered off course by user input, a risk covered under prompt injection, so never put secrets, passwords or private pricing in a system prompt. Assume someone may eventually read it.
Another mistake is piling on contradictory rules. If one line says to be brief and another says to explain everything, results will be uneven. Keep the list short and ordered by importance.
Need help with System prompt on your site?
Tell us what is not working. We will check where this affects your search results and what to fix first.
Book a meetingAEO servicesQuestions people ask
Can users see the system prompt?
Usually not by default, but you should not rely on it staying hidden. Determined users can sometimes coax a model into revealing its instructions. Write it as if it could become public.
Is a system prompt the same as a regular prompt?
They are both text instructions, but they play different roles. A regular prompt is the user's request in the moment. A system prompt is the standing guidance set by the builder that applies across requests.
Does a system prompt stop hallucination?
It can reduce it, for example by telling the model to answer only from supplied sources and to say when it is unsure. It cannot remove it. Supplying real source material and reviewing answers still matter.