What is a common use of the system prompt in a chat model API?

Setting a role that shapes the model's behavior and tone.

Start playing free

  1. Storing the user's password
  2. Retraining the model overnight
  3. Giving the model a role and ground rules ✔

Why: The system prompt sits above the conversation and sets the stage, for example "You are a helpful coding assistant." Anthropic's docs say even a single sentence of role makes a difference.

Huh, didn't know that: Anthropic's docs suggest 3 to 5 well-chosen examples when you use few-shot prompting.

The dad joke
I gave my dog a system prompt: you are a calm, quiet dog. It ignored it, so it's definitely not a language model.
Like this card?
Play the game

References

Answer: Giving the model a role and ground rules. The system prompt sits above the conversation and sets the stage, for example "You are a helpful coding assistant." Anthropic's docs say even a single sentence of role makes a difference.

  1. Claude API Docs: Prompting best practices platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
    Setting a role in the system prompt focuses Claude's behavior and tone for your use case. Even a single sentence makes a difference
    Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game