When a business deploys an AI assistant, users only see their own messages and the replies. Behind the scenes, every conversation starts with a hidden block of instructions written by the builder: the system prompt. It tells the model who it is acting for, what it is allowed to discuss, how to format answers and what to do when it cannot help. For a buyer, the system prompt is where much of the assistant's policy lives, so it deserves the same review as any customer-facing script.
How it works
Chat-style model APIs accept messages with roles, typically system, user and assistant. The system message is placed first and treated as higher-priority guidance than what follows. Some providers call it a developer message or put it in a separate parameter, but the idea is the same.
A support assistant's system prompt might cover:
- The company and products it represents, and that it must not discuss competitors' pricing.
- How to answer: short paragraphs, plain language, links to help articles where relevant.
- What to do when unsure: say so and offer to pass the conversation to a person.
- Hard limits: never promise refunds, never ask for card numbers.
The system prompt is sent with every request, alongside retrieved documents and the conversation history, and it counts towards the context window and token usage each time.
It is guidance, not enforcement. Users can try to talk the model out of its instructions (prompt injection), and models occasionally drift from long or conflicting rules. Anything that must never happen should also be blocked in code or by separate guardrails.
What it means for cost
Writing a good system prompt is part of prompt engineering: drafting rules, testing them on realistic conversations including hostile ones, and revising. It is usually a modest share of a chatbot build, but skipping the testing shows up later as embarrassing replies.
Because the system prompt is repeated on every call, its length has a direct running cost. A very long system prompt multiplied by thousands of conversations becomes noticeable. Prompt caching, offered by several providers, can reduce the cost of a fixed opening block. Ask a builder to show you the system prompt, explain each rule, and say which rules are also enforced outside the model.
Common questions
Can users see the system prompt?
Not normally, but it should not be treated as secret. Determined users can sometimes coax a model into revealing its instructions, so nothing confidential, such as passwords or private pricing logic, belongs in it.
Should the business be able to edit the system prompt?
It helps. Policies, product names and tone change over time, and a build that stores the system prompt as editable configuration avoids a developer change for each update. Edits should still be tested before going live.
Is a system prompt enough to keep an assistant safe?
No. It sets intended behaviour, but models can be manipulated or make mistakes. Sensitive actions and data need checks in the surrounding software, not only instructions to the model.