Somebody spoke first
In many chat applications, the product supplies instructions before your visible message. Some are carried in a system prompt or other structured instruction messages. Their length, contents and priority depend on the application and model; you cannot infer the whole request from the visible chat.
Examples of what the product may supply include:
- A name or role, such as an assistant for a bank.
- A date or time supplied by software or a tool; the language model’s weights are not a live clock.
- Tone, formatting and language instructions.
- Behavioural boundaries, including when to refuse or escalate.
- Tool descriptions and conditions for using them.
- Company information such as a current policy, if the application includes it.
Two products using the same base model can behave differently because of these instructions, but also because of post-training, retrieved data, tools, permissions and interface design. The hidden text is one component, not necessarily the only difference.
Some developers publish examples of their instruction prompts or describe their instruction hierarchy. Reading such examples can demystify the product. They are usually ordinary language, but role metadata and model training can assign different priorities to different messages.
Instructions have roles, but are not a security boundary
Instruction text is processed by a model, often with role markers that distinguish developer instructions, user requests and external material. Those distinctions matter. Research has shown that training an explicit instruction hierarchy can improve resistance to lower-priority instructions, without establishing a perfect guarantee.
Following that hierarchy is still learned behaviour rather than a substitute for authorisation checks. Three practical risks follow:
Instruction text may leak. Prompt-extraction attacks can expose material a developer intended to hide. Do not use a secret inside a prompt as the sole barrier protecting data or actions; keep credentials and unnecessary private information outside the model’s input.
Untrusted content may redirect behaviour. A document can contain an instruction such as “ignore the developer’s rules”. This is a prompt-injection risk. Role hierarchy and other defences can reduce it, but a developer must test the system and restrict what an injected instruction could cause.
Instructions need context management and testing. Conflicting rules, selected history and long inputs can affect behaviour. A failure alone does not tell you whether a prompt was removed, missed or overridden. Inspect what the application supplied where possible.
A hard limit must be enforced by software with the relevant authority. For example, a refund service can check the amount, the user’s permissions and any manager approval before issuing money. The model may propose an action, but its instructions must not be the only control. Output validation, restricted tools and data-access checks serve different parts of that protection.
Using it deliberately, which most people do not
Standing instructions can be useful when the product supports them. They are one lever among several, and the product determines how they are stored, selected and prioritised.
Personalisation settings, project instructions and API system messages are not automatically equivalent roles. Consult the product’s documentation for the feature you actually use. This lesson does not assume that a saved preference becomes the provider’s highest-priority instruction.
What belongs there is the standing context you would otherwise retype daily:
- Who you are and what you do. “I am a nurse in Kerala writing patient information leaflets.”
- The audience. “Readers have limited English and no medical background.”
- Standing preferences. “Use British spelling. No bullet lists unless asked. Say when you are unsure rather than guessing.”
- Standing prohibitions. “Never invent a citation. If you do not know, say so.”
Saved instructions can reduce retyping when the product includes them in later requests. They do not guarantee consistent compliance, and an ordinary later message does not have a universal one-turn expiry. Test the requirements that matter.
Two warnings
Minimise sensitive information. Do not place passwords or API keys in an instruction prompt. Only provide private information when the intended workflow, access rules and service arrangements allow it. Hosted services and locally run models have different data paths; check the actual one rather than assuming every request goes to a provider.
Keep instructions clear and testable. Contradictory rules can cause problems; length alone does not determine quality. Use enough detail for the task, identify priorities and test examples where rules conflict. A two-hundred-word prompt is not inherently better than a three-thousand-word prompt.
Check your understanding
A company puts “never issue a refund over £50 without a manager” in its support bot’s system prompt and treats the limit as enforced. Why is that unsafe?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meenal, your AI tutor