All terms

System Prompt

Instructions that set an LLM's role, rules, and behavior for a session — usually higher priority than user messages.

Prompt Engineering1 min read

Definition

A system prompt defines persona, tone, tools, and constraints before the user speaks. Many APIs treat it as a distinct message role with stronger behavioral influence.

Good system prompts are specific, testable, and version-controlled like code.

In simple terms

An employee handbook handed out before the shift — it shapes how every customer conversation should go.

Where you see it

  • "You are a Somali–English tutor; correct gently; never invent grammar rules."
  • Safety policies and tool-use rules for agents.

How it works

  1. 1.Write role and rules

    What to do, what to refuse, output format.

  2. 2.Place as system message

    API role=system or equivalent.

  3. 3.Iterate with evals

    Test edge cases and refine.

Why it matters

  • System prompts are the cheapest alignment layer in productized LLM apps.

Often confused

  • System prompts are unbreakable security.

    Users can often jailbreak or confuse models — treat prompts as soft controls, not hard guarantees.