What Is a System Prompt? Definition, Examples, Tips
A system prompt is a block of instructions the model reads before every conversation. It tells the model who it is, how to speak and what to avoid. In chat apps it may be called custom instructions, a persona or a system message.
What a system prompt controls
- Role: “You are a blunt editor”, “You are the narrator of a noir story”.
- Tone and format: short replies, no bullet points, British spelling.
- Boundaries: topics to avoid, or things never to do, such as speaking for the user’s character.
- Context: facts about you or the project that should shape every answer.
Tips
Keep it short, between about 50 and 300 words. Use direct, imperative sentences. Put the most important rule first. Test it with a few tricky messages and adjust.
Build one in a minute with the system prompt builder, or read how to write a system prompt for uncensored AI.
Related
More terms: Alignment · Content filter · Context window · Guardrails · Hallucination · Jailbreak · Full glossary