When a chatbot answers well, two different writers deserve the credit, and they never meet. One wrote a block of standing instructions before the conversation began. The other is typing messages into the chat window right now. Mixing up which instructions belong to which writer is the most common reason a chatbot setup feels muddled: rules get buried in chat messages where they expire after one reply, or one-off requests get frozen into the standing instructions where they distort every answer.

This guide separates the two. It explains what a system prompt is, what a user prompt is, what belongs in each, and how to build the system side with the free System Prompt Generator on Ovatly.

Contents

  • Quick answer
  • The system prompt: instructions that stand behind every reply
  • The user prompt: one message, one job
  • What belongs where
  • How to build the system prompt, step by step
  • Worked example: one support agent, two kinds of prompt
  • Limitations
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

The system prompt is the standing instruction given to a model before the conversation starts. It sets identity, expertise, rules and answer format for every reply that follows, and it is written by whoever configures the assistant. A user prompt is a single message inside the conversation: the question or request being answered at that moment, written by the person chatting. Put anything that should be true of every reply in the system prompt. Put anything that is only about this one answer in the user prompt. The System Prompt Generator assembles the system side from five fields: persona, expertise, always-follow rules, output rules and an optional example exchange.

The system prompt: instructions that stand behind every reply

A system prompt is written once and applied many times. It answers questions the user never asks out loud: Who is this assistant? What does it know about? What must it always do, and never do? How should its answers look? Because it is in force before the first message arrives, it shapes replies the user has not written yet.

The generator breaks it into five building blocks. The persona is who the assistant is, in one phrase. The expertise names its area. The always-follow rules are the standing orders, written one per line. The output rules cover length, language and structure. An optional example exchange shows the expected behaviour instead of only describing it.

Two properties follow from this design. First, the system prompt is invisible to the person chatting; they see only its effects. Second, it is persistent: a mistake in it does not spoil one answer, it spoils every answer until someone fixes the block.

The user prompt: one message, one job

A user prompt is the message the assistant is answering right now. It is written during the conversation, by the person chatting, and its job is narrow: ask for this thing, about this situation, with these details. When the next message arrives, the new user prompt takes over the immediate job, while the system prompt stays exactly where it was.

This division is why a well set up assistant can handle unpredictable questions without anyone rewriting its instructions. The user supplies the variety. The system prompt supplies the consistency. If an answer comes out in the wrong format, the fix usually belongs on the system side, in the output rules, not in a user prompt that pleads for the right format one more time.

What belongs where

A simple test sorts most instructions: should this still be true in a completely different conversation tomorrow? If yes, it is system material. If it only makes sense for this exchange, it is user material.

  • System prompt: the persona, the area of expertise, rules that always apply (such as never guessing a password), and output rules for length, language and structure.
  • User prompt: the specific question, the details of this case, the document or text to work on, and any one-off preference for this answer only.

Instructions placed on the wrong side fail in predictable ways. A rule typed into a chat message holds for that reply and quietly stops holding later. A one-off detail frozen into the system prompt, such as one customer name, leaks into unrelated conversations where it makes no sense.

How to build the system prompt, step by step

  1. Open the System Prompt Generator and write the persona: who the assistant is, in one phrase.
  2. Add its area of expertise and its always-follow rules, one per line.
  3. Add output rules (length, language, structure) and optionally an example exchange.
  4. Pick plain, Markdown or JSON and copy the generated system prompt into your chatbot or API setup.

The generator is template assembly. It arranges your fields in a consistent structure with correct formatting and, for JSON, correct escaping handled for you. It never invents rules you did not write. In JSON format the fields become an object under a system role, with quotes and newlines escaped by JSON.stringify, so it is safe to paste into an API payload.

Worked example: one support agent, two kinds of prompt

The generator's own example builds a support agent. Persona: "a concise technical support agent". Expertise: "home Wi-Fi routers". Rules: "Never guess a password" and "Ask one question at a time". Output rules: "Answer in plain English" and "Keep answers under 120 words". Assembled in plain format, it reads:

You are a concise technical support agent.
Your area of expertise is home Wi-Fi routers.

Rules you always follow:
1. Never guess a password
2. Ask one question at a time

How you format your answers:
1. Answer in plain English
2. Keep answers under 120 words

That whole block is system material: it was written before any conversation and it governs all of them. A user prompt in one of those conversations might be a single line such as "My router light is red, what do I check first?" Notice what the user did not have to say: who the assistant is, that it should answer in plain English, or that it should ask one question at a time. The system prompt already said all of that, once, for every conversation.

Limitations

A system prompt guides a model; it cannot guarantee behaviour. The generator assembles the text, and the text steers the assistant, but steering is not a lock. That is why testing is part of the workflow: after assembling a system prompt, run real questions through the assistant and read whether the replies actually follow the persona, the rules and the output rules. Where a reply breaks a rule, the usual fix is a clearer rule, not a longer one. Fewer, clearer rules work better than a long list, and if two rules conflict, models resolve the conflict unpredictably, so read the set as a whole before copying.

The division itself has a limit too. The system prompt can only contain what its author thought of in advance. New situations arrive as user prompts, and some of them will expose gaps that only a revised system prompt can close.

Common mistakes

  • Writing rules into chat messages. A rule in a user prompt governs one reply. Standing rules belong in the system prompt.
  • Putting one-off details in the system prompt. A detail from a single case does not belong in instructions that govern every conversation.
  • Asking the user prompt to fix a format problem. If every answer is too long, the output rules on the system side are the fix, not repeated pleading in each message.
  • Expecting the generator to write the rules. Every rule in the output is a line you typed; the tool only numbers and arranges them.
  • Skipping the test. An untested system prompt is a draft. Run real questions through it before relying on it.

FAQs

What is a system prompt? It is the standing instruction given to a model before the conversation starts. It sets identity, expertise, rules and answer format for every reply that follows.

What is a user prompt? It is a message sent during the conversation: the question or request the assistant is answering right now. Each user prompt asks for one thing, while the system prompt stays in force behind all of them.

Who writes each one? The system prompt is written by whoever configures the assistant, before anyone chats with it. User prompts are written by the person chatting, one message at a time.

Which format should a system prompt use? Plain text suits most chat tools. Markdown helps long rule sets stay readable. JSON suits API integrations that pass the prompt as structured data.

Can a system prompt guarantee how the assistant behaves? No. A system prompt guides a model; it cannot guarantee behaviour. Test the result with real questions before relying on it.

Conclusion

System prompt and user prompt are two different jobs. The system prompt is written once, by the person configuring the assistant, and it holds the identity, expertise, rules and answer format steady across every conversation. User prompts arrive one at a time and carry the variety. Keep each kind of instruction on its own side and both halves get easier to write and easier to fix. When you are ready to go deeper on the rules themselves, read the companion guide on how to set rules and guardrails in a system prompt. For more guides like this, see the AI and Prompt Tools guides.