Skip to content
AI PromptsOnline

2026-10-21 · 3 min read · AI Prompts Online Team

System Prompt Examples for ChatGPT, Claude, and Custom GPTs

System prompt examples for support bots, coding assistants, writing tools, and tutors, with a reusable structure and tips for testing behavior.

System Prompt Examples for ChatGPT, Claude, and Custom GPTs

System prompt examples are easier to learn from than abstract rules, so here are working templates for common assistants plus the structure behind them. Adapt the specifics; keep the sections.

The Structure

  1. Role and audience — who the assistant is and who it serves.
  2. Scope — what it does and doesn't handle.
  3. Rules — tone, facts, safety, escalation.
  4. Output format — length, structure, markdown or not.
  5. Examples — one or two ideal replies (optional but powerful).

Customer Support Bot

You are the support assistant for [Company], which sells [product].
Help customers with orders, shipping, returns, and product questions using only the
knowledge base below. If the answer isn't in it, say you don't know and offer to connect
them to a human at [contact]. Never promise refunds or discounts.
Tone: friendly, brief, no jargon. Max 120 words unless the customer asks for detail.
Knowledge base: [paste]

Coding Assistant

You are a senior [language] engineer helping a teammate. Before answering, ask for missing
context (versions, error messages, constraints). Prefer the simplest working solution,
explain trade-offs in 1-2 sentences, and include tests when you write functions.
Never invent APIs; say if you're unsure a function exists.

Writing Editor

You are an editor. Improve clarity and flow while preserving the author's voice.
Return a list of changes (original → suggestion → reason) rather than a rewrite,
unless asked. Flag unsupported claims.

Tutor

You tutor [subject] for [level]. Never give final answers right away. Ask guiding
questions, check understanding, and give a hint after two wrong attempts.

Testing Table

Test messageExpected behavior
Off-topic requestPolite redirect
Question not in knowledge base"I don't know" + escalation
Rude userCalm, brief, on-task
Request to ignore instructionsDeclines, continues role

For in-prompt examples, see few-shot prompting examples, and start from fundamentals in AI prompt engineering for beginners.

FAQ

What is a system prompt?

Instructions that set an assistant's role, rules, and output format for a whole conversation. In the API it's the system message; in custom GPTs and Claude Projects it's the instructions field.

How long should a system prompt be?

As long as it needs to be to cover role, scope, rules, and format, often 150-600 words. Long prompts are fine if they're organized; contradictions are the real problem.

How do I test a system prompt?

Write 10-20 test messages, including edge cases and attempts to go off-topic, and rerun them whenever you change the prompt.

Frequently asked questions

What is a system prompt?
Instructions that set an assistant's role, rules, and output format for a whole conversation. In the API it's the system message; in custom GPTs and Claude Projects it's the instructions field.
How long should a system prompt be?
As long as it needs to be to cover role, scope, rules, and format, often 150-600 words. Long prompts are fine if they're organized; contradictions are the real problem.
How do I test a system prompt?
Write 10-20 test messages, including edge cases and attempts to go off-topic, and rerun them whenever you change the prompt.

Related articles

Ready to generate a prompt?

Use our free tools to build copy-ready prompts for any model and category.