Skip to content
2C2CCallApp

Prompt engineering

ChatGPT System Prompts: The Complete Guide to Roles and Personas

Learn what a system prompt is and how to write one that works for ChatGPT, Claude and Gemini, with a structure, a worked example and a testing routine.

Updated Nov 18, 2026 · 9 min read

If you have ever wished an AI assistant would stop asking the same clarifying questions, keep to a certain tone, or refuse to wander outside its job, the tool you want is a system prompt. It is the standing instruction that sits behind a conversation and shapes every answer. Writing a good one is less about clever wording and more about clear thinking: who is this assistant, what is it for, and what should it never do?

What a system prompt is, and why it matters

A normal message tells a model what to do now. A system prompt, which appears as custom instructions in ChatGPT, project instructions in Claude and a Gem in Gemini, tells it who to be across the whole conversation. The model reads it first and gives it more weight than later messages, so it is the right place for identity, goals, tone, formatting and boundaries. If you find yourself pasting the same preamble at the start of every chat, that preamble belongs in a system prompt.

The structure of a strong system prompt

  1. Role. One or two sentences stating who the assistant is and who it serves.
  2. Goals. What success looks like, in order of priority.
  3. Audience and tone. Who it is talking to and how it should sound.
  4. Process. How it should work, such as asking one question at a time or showing steps.
  5. Output format. Length, structure and any templates.
  6. Boundaries. What it must not do, and what it should do when it reaches the edge of its role.

Write in the second person, as in “You are…”, and use plain, direct sentences. Models follow clear instructions more reliably than clever ones.

A real-world example: a support assistant for a bike repair shop

Consider a bike repair shop that wants an assistant to answer common customer questions on its website. The owner starts with you are a helpful bike shop assistant. In testing, the assistant promises same-day repairs it cannot deliver, diagnoses problems from a one-line description and gives long, chatty answers to people on their phones.

She rewrites it with the structure above:

You are the customer support assistant for Northside Cycles, a neighbourhood bike repair shop. Your goal is to help customers understand repair options, typical timeframes and how to book a service. Be friendly, plain-spoken and brief: two to four short sentences unless the customer asks for detail. Ask one question at a time. Never diagnose a fault from a description alone; explain that a mechanic needs to inspect the bike. Never promise a price or a completion date; say that the shop confirms both after inspection. If you are unsure, or the customer is upset, offer to pass the conversation to a team member and ask for their contact details.

Each sentence fixes a specific failure from testing. The brevity rule solves the mobile problem. The no-diagnosis rule prevents risky advice. The no-promises rule protects the shop. The hand-off rule gives the assistant somewhere to go when it reaches its limit, which is the part most people forget. The result is not smarter, only more reliably on-brand, and that is what a system prompt is for.

Mistakes that weaken a system prompt

  • Contradictions. “Be concise” and “explain everything in detail” leave the model to choose at random.
  • Vague adjectives. “Be professional” means different things to different people. Describe the behaviour instead.
  • Only saying what not to do. Pair every prohibition with what to do instead.
  • Cramming everything in. A long prompt full of rules hides the important ones. Keep the essentials and cut the rest.
  • Treating it as security. A system prompt guides behaviour but is not a guaranteed barrier. Do not put secrets in it, and do not rely on it alone to protect sensitive actions.

Test it like a product

Write ten realistic conversations, including awkward ones: a customer who is angry, a request outside the assistant’s scope, a question with missing information, and an attempt to make it ignore its instructions. Run them, note each failure, and tighten the rule that should have prevented it. Two or three rounds of this will do more than any amount of polishing in the abstract.

Frequently asked questions

What is the difference between a system prompt and a normal prompt?+

A normal prompt asks for something now. A system prompt sets the role, tone and rules for the whole conversation, and the model gives it priority over later messages.

How long should a system prompt be?+

As long as it needs to be and no longer. Many effective prompts are 150 to 400 words. If a rule does not change behaviour in testing, remove it.

Will a system prompt stop the AI from ever breaking the rules?+

No. It strongly shapes behaviour but is not a guarantee. Keep real safeguards, such as permissions and human review, outside the prompt.

Where do I paste a system prompt?+

Use custom instructions in ChatGPT, project instructions in Claude, a Gem in Gemini, or the system message field when you build with an API.

Ready to put this into practice?

Generate a complete system prompt for your assistant

Enter the role, purpose, tone and rules, and get a structured system prompt with boundaries and an opening message, ready to paste.

🚀 Try the Tool Live Now

Opens the ChatGPT System Role & Persona Prompt Maker · free to use, no sign-up needed to get started