A system prompt is the set of instructions written by whoever runs an AI app, given to the model before the conversation. It sets the role, the rules and the tone for every answer. Visitors do not see it, but it shapes everything they read, and it outranks what a user types and anything the model reads on a web page.
What is a system prompt? #
Every chat with a generative AI model has layers. The person types a prompt. Above it sits the system prompt, written by the company or developer that runs the app. Mistral says it “is provided at the beginning of the conversation”, sets the general context and instructions for the model’s behaviour and is typically managed by the developer. The model reads it first, every time, before the person’s question.
What do the AI companies call it? #
| Company | Name in the docs | How it is set |
|---|---|---|
| Anthropic (Claude) | System prompt | A system field before the messages |
| OpenAI | Instructions, or developer messages | The instructions parameter, or a message with the developer role |
| Google (Gemini) | System instructions | A system_instruction parameter |
| Mistral | System prompt | A system message at the start of the conversation |
Google’s own example is one line: “You are a cat. Your name is Neko.” Short, but it changes every reply that follows.
Who wins when instructions clash? #
The system prompt, usually. OpenAI says developer messages are “prioritized ahead of user messages”, and that its instructions parameter takes priority over user messages too. OpenAI’s Model Spec sets out a chain of command, from its own rules at the top, through system and developer messages, down to the user. Quoted text, files and tool outputs sit outside that chain: the Model Spec says they “have no authority by default”, and that instructions inside them must be treated as information. It adds that “a random web page should not be trusted at all.”
Why does it matter for your website? #
When an AI assistant reads your page, your words arrive as information, not as orders. The system prompt of that assistant decides how it uses them. Anthropic says the Claude apps use a system prompt at the start of every conversation that, among other things, encourages discussing topics factually and objectively. So clear, checkable facts suit the job the model has been given. Hidden text that tries to give orders to the model is prompt injection, and the system prompt is the first line of defence against it. See AI guardrails.
Why does it matter for AI answers? #
Most AI answers come from an app with a system prompt you cannot see: ChatGPT, Perplexity, Microsoft Copilot and the rest. Anthropic is unusual: it publishes the core system prompt of its Claude apps. It says those updates do not apply to the Claude API, and that it publishes one version, used in some chats with web search turned off. You cannot change another company’s system prompt. You can make your page the easiest thing for any of them to quote. See answer engine optimisation and citation.
Why does it matter if you run a chatbot? #
If you put a chatbot on your website, the system prompt is where you tell it who it works for, what it may talk about and how to sound. Anthropic’s guide says setting a role in the system prompt focuses the model’s behaviour and tone, and that even a single sentence makes a difference. A weak one lets the bot wander off topic or answer questions it should pass to a person. The same goes for an AI agent that can take actions: its system prompt says which tools it may call and when. See AI assistant and tool use.
A worked example #
A bike shop’s first attempt:
You are a helpful assistant. Do not talk about other shops. NEVER guess prices.
A stronger version for the same shop:
You are the website assistant for Example Cycles, a bike shop in York.
Answer questions about our bikes, servicing, delivery and opening hours,
using only the shop pages provided below.
If the answer is not in those pages, say you do not know and give the
shop's phone number, because a wrong price or booking time sends a
customer on a wasted trip.
Keep answers short and friendly, in British English.
The second one follows three pieces of Anthropic’s guidance. It sets a clear role. It gives the reason behind a rule: Anthropic’s guide shows that “NEVER use ellipses” works less well than explaining that the reply will be read aloud by a text-to-speech engine. And it says what to do instead of only what not to do; the guide’s own example swaps “Do not use markdown” for a request for flowing prose paragraphs.
What makes a good system prompt? #
- A role and a task. Mistral suggests the shape “You are a <role>, your task is to <task>.”
- Context a newcomer would need. Anthropic says to think of the model as a brilliant but new employee who lacks context on your norms. Its test: show the prompt to a colleague with little context. If they would be confused, the model will be too.
- Exact words. Mistral warns against “blurry” words such as “too long” or “many”. Say “under 80 words”.
- Structure. Mistral says Markdown or XML-style tags are ideal, because the model can read and parse them.
- Sources first. Anthropic says to put long documents near the top, above the instructions, and to ask for relevant quotes first on long-document tasks. See grounding.
Does a system prompt cost anything? #
Yes. It is sent with every request, so it counts as input tokens every time and takes room in the context window. A 2,000-word system prompt on a chatbot that answers 500 questions a day is sent 500 times a day. Keep it as long as it needs to be, and no longer. See AI inference.
Common mistakes #
- Typing prices or opening hours into the prompt itself, where they go stale and the bot repeats an old fact as if it were true. Point it at your live pages instead. See AI hallucination.
- A list of bans with no reasons, so the bot cannot tell what you meant in a case you did not foresee.
- Contradictions. Mistral says slight contradictions creep in as a system prompt grows, and suggests a decision tree for rules that conflict.
- Putting anything in it you would mind a visitor reading. People do try to make chatbots repeat their instructions.
- Never testing it again. Mistral says different models, and even a simple update, can change how the model behaves.
- Trusting page text as instructions. A bot that obeys words found on a web page can be steered by anyone who can write on one, for example through user-generated content such as reviews.
How to check it #
- Find the field. In your chatbot’s settings it may be called system prompt, instructions or persona.
- Draft it with a structure. Use the prompt builder to set the role, the task, the limits and the output, then tighten the wording with the prompt improver.
- Make sure it names your business, the topics it may cover, what you do not offer, and what to do when it does not know: say so, and point to a page or a person. Saying what you do not do is a claim boundary.
- Tell it where its facts come from, such as your own pages fetched at answer time, which is retrieval-augmented generation. Check those pages say the same thing everywhere with the AI Consistency Checker: page, schema, llms.txt and feeds.
- Check the facts it will read. The Proof Checker tells you whether exact words are on a page right now. The Last-Modified Checker shows whether update dates match real changes.
- Check the structured facts with the Schema Markup Checker, and on product pages with the Product Page Checker. See schema markup and product structured data.
- Scan for planted instructions. Run each page your bot reads through the Prompt Injection Checker, which looks for hidden text or planted AI instructions.
- Make the source pages plain. The Readability and Plain English Checker runs in your browser. Plain pages are easier for a bot to quote correctly.
- Give bots a clean copy. Check your Markdown versions with the Markdown Version Checker and your llms.txt with the llms.txt Checker.
- Check outside AI can read you too. The AI Readiness Checker gives a score and fixes; AI Agent Readiness checks OpenAPI, .well-known files and MCP.
- Test it with awkward questions, including ones that try to make it ignore its rules or repeat its instructions. Review it whenever your prices, hours or policies change.
Single checks on each tool page: free, no account (2 a day). The full audit: a free account (sign in with an emailed code), 1 a day. In URSY Pro, opening in stages: the prompt injection guard, live facts and the stale facts finder.
What URSY.com counts #
We never see the system prompt of an AI app, and we do not guess it. We count what the app’s bots do on your site: each request from an AI crawler is sorted into training, search or fetch-for-a-person, and checked against the company’s published IP list as real, fake or unknown. Requests for secrets or injection patterns are counted as attacks, never as people. The rules are on our methodology page.
Questions #
Can visitors see my chatbot’s system prompt? #
Not directly, but people do try to make bots repeat it. Write it as if it could be read, and keep anything private out of it.
Is the system prompt the same as a prompt? #
No. A prompt is what the person asks. The system prompt is the standing brief from the app’s owner, read before every question.
Can text on my website change an AI’s system prompt? #
No. OpenAI’s Model Spec says instructions found in tool outputs and files are information, not orders. Hidden instructions on a page are still a risk for weaker bots, so remove them.
How long should a system prompt be? #
As short as does the job. Anthropic says even a single sentence setting a role makes a difference. Add rules only with their reasons.
Related words #
- Prompt
- Prompt injection: what it means for your website and chatbot
- AI guardrails
- Large language model (LLM)
- Context window
- Reasoning models
- Fine-tuning
- Grounding
Sources #
- Claude Docs: Prompting best practices, checked 24 November 2026
- Claude Docs: System prompts (release notes), checked 24 November 2026
- OpenAI API docs: Text generation, checked 24 November 2026
- OpenAI: Model Spec (29 October 2026), checked 24 November 2026
- Google AI for developers: Text generation, checked 24 November 2026
- Mistral Docs: Prompting, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: System prompt. URSY. Updated 26 November 2026. https://ursy.com/wiki/system-prompt/ · Section links
Tools for this
- LivePrompt Injection Checkerhidden text or planted AI instructions on a pageRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProPrompt trackerYour chosen questions asked to AI every day; are you in the answer?In URSY Pro →
- ProAI share of voiceYou vs rivals across all tracked promptsIn URSY Pro →
- ProAI citation trackerWhich of your pages AI links to, per promptIn URSY Pro →