A support bot that guesses, rambles and answers three questions at once is rarely a model problem. It is an instruction problem. Behind every chatbot sits a system prompt: the standing instruction given to the model before the conversation starts, which sets its identity, expertise, rules and answer format for every reply that follows. Customers never see it, but every answer they get is shaped by it.

This guide shows how to write one for a customer support bot, using the free System Prompt Generator on Ovatly. The generator is template assembly, not writing help: you supply the persona, expertise, rules and output rules, and it arranges them in a consistent structure, in plain text, Markdown or JSON, with correct escaping handled for you in the JSON format. Every rule in the output is a line you typed. It also covers the honest limit: a system prompt guides a model, it cannot guarantee behaviour, so testing is part of the job.

Contents

  • Quick answer
  • The five building blocks
  • Why support bots need rules more than personality
  • How to build the system prompt, step by step
  • Worked example: a support agent for home Wi-Fi routers
  • Choosing plain, Markdown or JSON
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

To write a system prompt for a customer support bot: define the persona in one phrase, name the area of expertise, write the always-follow rules one per line, add output rules for length, language and structure, and optionally include an example exchange. Assemble it with the System Prompt Generator, copy it into your chatbot setup, then test it with real customer questions before relying on it. Keep the rule set short and consistent; conflicting rules are resolved unpredictably.

The five building blocks

A system prompt built with the generator has five parts. The persona is who the assistant is, stated in one phrase: not a paragraph of backstory, just the role the model should speak from. Expertise is the area the bot is allowed to be confident about, the product or topic its answers cover. The always-follow rules are the behavioural lines it must never cross, written one per line so each one stays distinct. Output rules govern the shape of answers: length, language and structure. Finally, an optional example exchange shows one question and the kind of answer expected, demonstrating the behaviour instead of only describing it. Filled in carefully, these five parts cover nearly everything a support bot needs to behave consistently across thousands of separate conversations.

Why support bots need rules more than personality

Support conversations are unforgiving in specific ways. A customer with a broken connection does not need charm; they need the bot to stay inside what it knows, avoid inventing facts about their account or product, and ask one clarifying question instead of firing off five. Those are rules, not personality traits, and they belong in the always-follow list where the model sees them before every reply. The persona still matters, because it sets tone in a phrase, but the rules do the real work. That is also why the rules deserve the most care: a rule that contradicts another rule, or one written so vaguely that two readings are possible, will surface as strange behaviour in front of a customer.

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 setup.

Worked example: a support agent for home Wi-Fi routers

The generator's own worked example is a support agent, and it shows how little material a good system prompt needs. The fields are: 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, the output 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

Notice what each line earns. "Never guess a password" closes off the most dangerous support failure, an invented credential, in four words. "Ask one question at a time" turns troubleshooting into a dialogue the customer can actually follow. The output rules keep replies short and readable, which matters when the reader is stressed and standing next to a router. Nothing in the output was invented by the tool: it numbered and arranged the lines exactly as they were typed. To adapt the pattern, swap the expertise for your own product, rewrite the rules around your own failure cases, and keep the set just as short.

Choosing plain, Markdown or JSON

Plain text suits most chat tools and is the right default. Markdown helps long rule sets stay readable, with headings keeping the sections apart when the prompt grows. JSON suits API integrations that pass the prompt as structured data: 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. The content does not change between formats, only the packaging, so choose by where the prompt will live rather than by preference.

Limitations and alternatives

The central limitation is behavioural: a system prompt guides a model; it cannot guarantee behaviour. A bot can still drift, misread a rule or answer outside its expertise, which is why the workflow ends with testing the result with real questions before relying on it. The generator also invents nothing: it arranges your fields and never writes rules you did not write, so a thin rule set produces a thin prompt. And no system prompt can supply knowledge the model does not have; expertise names a topic, it does not teach it. If your bot needs product facts it cannot reliably know, that is a separate problem, solved with reference material in the wider setup rather than with a cleverer prompt.

Common mistakes

  • Writing a persona paragraph. One phrase is the format; a page of character description crowds out the rules that matter.
  • Conflicting rules. "Answer in detail" and "Keep answers under 120 words" cannot both win. Read the set as a whole before copying.
  • Rules in a paragraph. One rule per line keeps each instruction separate and countable; buried rules get merged or skipped.
  • Skipping the example exchange. When tone matters, one shown exchange teaches it faster than three adjectives.
  • Deploying untested. The prompt is a draft until real questions have been run through 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.

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

How many rules should I add? Fewer, clearer rules work better than a long list. If two rules conflict, models resolve the conflict unpredictably, so read the set as a whole before copying.

Does the generator write rules for me? No. Every rule in the output is a line you typed; the tool only numbers and arranges them.

Why does my support bot still go off script? A system prompt guides a model; it cannot guarantee behaviour. Tighten the rules that conflict, then test with real customer questions and adjust before relying on it.

Conclusion

A good support system prompt is short, specific and testable: a persona in one phrase, a named expertise, rules that close off your real failure cases, and output rules that keep answers readable. Build it with the System Prompt Generator, then spend as long testing it as you spent writing it. The companion worked example, Fixing a Distorted Portrait With Negative Prompts Only, applies the same assemble-and-test discipline to image prompts, and the full set lives in the AI and Prompt Tools guides.