ThinkWithPrompt by SynotticThinkWithPrompt

What is a system prompt? How to write one, with examples

What a system prompt is, how it differs from a user prompt, what to put in one, and system prompt examples for ChatGPT, Claude, Gemini and custom AI assistants.

By the ThinkWithPrompt editorial team at Synottic · Updated 16 October 2026

A system prompt is a set of standing instructions given to an AI model before the conversation starts, telling it who it is, what it should do, how it should respond and what it must never do. The user’s messages then arrive on top of it. Every AI chat product has one, and every custom assistant you build in ChatGPT, Claude or Gemini starts with one, so writing a good system prompt is the single biggest lever on how an assistant behaves.

How is a system prompt different from a user prompt?

A user prompt is the message you type for one task: “summarise this report”. A system prompt sits underneath every message in the conversation and sets the ground rules: “You are a support assistant for an accounting app. Answer only from the help-centre articles provided. If you are not sure, say so and offer to connect the user with a person.” Models are trained to give system instructions more weight than ordinary messages, which is why they are the place for role, scope, tone and safety rules.

System promptUser prompt
Written byThe person or team building the assistantWhoever is chatting
Applies toThe whole conversationOne turn
ContainsRole, audience, scope, rules, tone, output format, toolsThe task and its details
Where you set itCustom Instructions, GPTs, Claude Projects, Gems, the API “system” fieldThe message box

What should a system prompt include?

  1. Role and purpose. Who the assistant is and the one job it exists to do. “You help new employees at Acme find answers about HR policies.”
  2. Audience. Who it is talking to and what they already know. This sets vocabulary and depth.
  3. Scope. What it should and should not handle, and what to do with out-of-scope requests (“politely say this isn’t something you can help with and suggest who to contact”).
  4. Knowledge and sources. What to rely on: uploaded documents, a pasted policy, only the context provided. Say what to do when the answer isn’t there.
  5. Behaviour rules. Ask a clarifying question when the request is ambiguous; never guess figures; cite the section it used.
  6. Tone and format. Plain English, short paragraphs, bullet lists for steps, a fixed structure if answers feed another system.
  7. Hard limits. Things it must never do, stated plainly: give legal advice, share personal data, make commitments on the company’s behalf.

A system prompt example

You are the internal IT help assistant for a 200-person company. Audience: employees who are not technical. Use plain language and numbered steps. Scope: password resets, VPN, email, printers, laptop setup and our approved software list (below). For anything else, say you can't help with it and give the IT desk address: [IT EMAIL]. Rules: - Answer only from the IT guide pasted below. If the answer isn't there, say so; never guess. - Ask one clarifying question if the request could mean two different things. - Never ask for or repeat passwords or MFA codes. - If a request involves a security incident (a suspicious email, a lost laptop), tell the user to contact IT immediately and stop. Format: a one-line answer first, then steps if needed. Under 150 words unless the user asks for more. IT guide: [PASTE GUIDE]

How do you write a better system prompt?

For a structured way to write the core of a system prompt, the RCTF framework (Role, Context, Task, Format) maps neatly onto role, audience and scope, the job, and the output format.

Frequently asked questions

Where do I put a system prompt in ChatGPT, Claude or Gemini?

In the chat apps you don’t see the real system prompt, but you control something very close to it: Custom Instructions and custom GPTs in ChatGPT, Project instructions in Claude, and Gems in Gemini. In the APIs, the system prompt is a separate field (or “system” message) sent with every request.

How long should a system prompt be?

As long as it needs to be to remove guesswork, and no longer. Simple assistants work well with 150–300 words. Assistants with many rules, tools or a large knowledge base often need more, but every line should change behaviour; delete anything the model would do anyway.

Can users see or override my system prompt?

Assume a determined user can get a model to reveal its system prompt, and that clever inputs can sometimes push it off its instructions. Never put passwords, keys or private data in a system prompt, and enforce anything security-critical in your own code, not just in the prompt.

What is the difference between a system prompt and a prompt template?

A system prompt is standing instructions that apply to the whole conversation. A prompt template is a reusable message with blanks that you fill in and send for a specific task. Many assistants use both: a system prompt for role and rules, templates for repeat tasks.

Prompts that help you write system prompts and instructions

More guides