# System Prompts and Roles

> What a system prompt is, the three message roles, and the custom instructions you save yourself. What a role changes, and what it never adds.

**Course:** [Prompt Engineering](https://learn.benibix.com/learn/ai-working-with-ai)  
**Time:** 12 min

**After this lesson you can:**

- Write a short system prompt for an app
- Name the three message roles
- Say what role prompting changes and what it cannot

## What a system prompt does, and what a role adds

A system prompt is a set of standing rules sent before the chat starts. It sets the model's job, tone and limits for all that comes after. Each message in a chat has one of three roles. System holds those rules, user is the person, and assistant is the model's own reply.

Apps write the system prompt, and users rarely see it. A bike shop's helper might say: answer only about our bikes, keep replies under 80 words, never promise a refund. Put the same model under a new system prompt and you get a new product. One model can run a tutor, a help desk and a recipe app.

Custom instructions are the same idea for you as a user. You save a few lines once in the app's settings, such as use short words or keep answers brief. The app adds them to the start of every new chat. Keep them short. Ten rules that clash work worse than three that do not.

Role prompting tells the model to act as a kind of person: a patient tutor, a strict editor, a travel agent. The role changes the tone, the words it picks and what it notices. It works best with details about the reader. A tutor for a 10-year-old says far more than a tutor.

A role does not add knowledge. Telling a model it is a top doctor does not make its facts better. It mostly changes the style. If you need better facts, give the model the facts, or check its answer against a source you trust.

The system prompt gets extra weight, but it is still only text. A user can sometimes talk a model out of its rules. So never put a password or a secret in a system prompt, and never treat it as a lock. Limit what the app can do, not just what it is told.

Put the rules that never change in the system prompt, and the request of the day in the user message. Rules that apply to every chat go in once. The question goes below them. Mixing the two makes the rules harder to find and harder to test.

```text
You are the help desk for Lucy's Bikes, a shop in London.
Answer only questions about our bikes, repairs and opening hours.
Keep every reply under 80 words.
If you do not know, say so and give the shop's phone number.
Never promise a refund. Say a person will reply within one day.
```
Five lines of system prompt. Every customer chat starts with them, and no customer ever sees them.

![A chat drawn as a stack of messages. A hidden system prompt box runs across the top of the whole chat, and below it user and assistant messages take turns.](https://learn.benibix.com/diagrams/pr-system-prompt.svg)

### Example: Emma sets up a homework helper

Emma's son is 11 and uses an AI chat app for homework. She saves three custom instructions: explain with short words, give a hint, never give the final answer.

His next maths question gets a hint and a question back, not the answer. He finds the answer himself in two more messages.

**Words in this lesson:** [System Prompt](https://learn.benibix.com/term/ai/system-prompt), [Message Roles](https://learn.benibix.com/term/ai/message-roles), [Custom Instructions](https://learn.benibix.com/term/ai/custom-instructions), [Role Prompting](https://learn.benibix.com/term/ai/role-prompting)

**Question:** Does telling a model it is a top expert make its facts more true?

**Answer:** No, a role mostly changes the style, not the facts. A role changes tone, words and focus. It adds no new knowledge. Giving the model the facts it needs does far more for accuracy.

---

Source: https://learn.benibix.com/learn/ai-working-with-ai/system-prompts-and-roles
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
