The Alternatives Issue For tool owners Sign in

System message

A system message is the highest-priority instruction message in a chat-style API call — used to set role, constraints, and behaviour for the entire conversation.

In more detail

What it means

Most chat APIs in 2026 (OpenAI, Anthropic, Google, Mistral) accept a separate system message that the model treats as higher-trust than user turns. The system message sets persona, constraints, format rules, refusal policy, and tool guidance. It is the most cost-effective behaviour-steering surface in production LLM apps — typically more impactful than fine-tuning for the same effort. Best practices in 2026: keep it concise (under 2,000 tokens to maximise prompt caching), declarative (always / never rules), example-light (examples go in user turns), and version-controlled.

Part 1 of 2

When to use it, and when not

Use it for

  • Any production chat or agent feature.
  • Locking output format across many user inputs.
  • Enforcing safety rules.

Part 2 of 2

Common mistakes

  • Cramming examples into the system message — they belong in user turns.
  • Variable content (timestamps, user ID) in the system prefix — breaks prompt caching.

FAQ

Questions readers ask.

What is system message?

A system message is the highest-priority instruction message in a chat-style API call — used to set role, constraints, and behaviour for the entire conversation.

When should you use system message?

Any production chat or agent feature. Locking output format across many user inputs. Enforcing safety rules.

What are the common mistakes with system message?

Cramming examples into the system message — they belong in user turns. Variable content (timestamps, user ID) in the system prefix — breaks prompt caching.

Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/system-message.md. Found a mistake? Tell us.