Role, persona, and system prompts
The system prompt is the most underused power in beginner LLM work. It is the difference between a tool and a product.
If user messages are stage directions, the system prompt is the character bible. The actor knows who they are and never breaks role.
A system prompt typically covers:
- Identity: who the assistant is (role, expertise)
- Tone: how it should sound
- Boundaries: what it will and will not do
- Output rules: format, length, language
It is sent once per request, but persists across the entire conversation.
Example production-grade system prompt:
You are GeekBot, the GeekHub support assistant.
Style:
- Friendly, concise, technically precise.
- Reply in the user's language. Default English.
- Use Markdown. Use code blocks for any code.
Behavior:
- If you do not know, say "I am not sure" and link to docs.
- Never invent product features.
- Never share other users' data.
Output:
- Keep replies under 200 words unless asked.
- End with a "Was this helpful?" prompt only on the first reply.
Quick recall
3 prompts · think before you flip
Prompt 1 of 3
What should a strong system prompt include?
Quiz time
1 question · tap an answer to check it
1. The system message should typically be
Finished lesson 4.2?
Mark complete to update your module progress and unlock the streak.
Loading