System Prompt

A system prompt is the set of standing instructions that tells an AI agent its role, tone, rules and limits before any customer message arrives.

What is a system prompt?

A system prompt is the set of standing instructions given to a large language model before any customer message arrives. It defines the AI agent's role, tone, rules and limits. The model reads it on every turn, so it shapes each answer without the customer ever seeing it.

In customer support, the system prompt is the job description of the AI agent. It says which company the agent works for and what it may answer. It also says when the agent must pass a conversation to a person.

How a system prompt works

A system prompt works by sitting at the top of everything the model reads. The model receives the system prompt, then the conversation history, then the newest customer message. It writes a reply that fits all three.

A typical system prompt for a support AI agent contains these parts:

  • Role: who the agent is, and which company and product it supports.
  • Scope: the topics it answers, such as billing, orders and account access, and the topics it declines.
  • Sources: an instruction to answer only from the knowledge base passages supplied with the question.
  • Tone: formal or casual, short or detailed.
  • Rules: what never to promise, for example a refund outside the policy or a delivery date.
  • Escalation: the situations that trigger an AI agent handoff, such as a legal threat or a request for a human.

The system prompt takes up space in the model's context window on every turn. A longer prompt costs more to run and leaves less room for the conversation. Instructions that contradict each other make the agent behave unpredictably.

Why a system prompt matters in customer support

A system prompt matters in customer support because it sets the behaviour of every AI conversation at once. One changed sentence alters every reply that follows. That makes it the fastest control a support leader has, and the easiest to break.

Quality depends on the system prompt. A clear one keeps a password reset answer short and a refund status answer tied to the policy. A vague one lets the agent guess. Guessing leads to an AI hallucination about a plan change or an invoice copy.

Risk depends on the system prompt too. It carries the rules that stop the agent from offering discounts, giving legal advice or discussing other customers. It is one layer of AI guardrails, and it should never be the only layer. A customer can try to talk the agent out of its instructions. Sensitive actions need checks outside the prompt.

System prompt vs prompt engineering

A system prompt is a piece of text, while prompt engineering is the practice of writing and testing that text.

  • System prompt: the standing instructions an AI agent receives before the conversation starts.
  • Prompt engineering: the work of drafting, testing and revising instructions until the agent behaves as intended.

A system prompt also differs from a user prompt. The user prompt is the customer's message, and it changes every turn. The system prompt is written by the company and stays the same across conversations.

Models are built to give the system prompt more weight than the customer's message. That priority is strong but not absolute. This is why prompt injection remains a risk for any AI agent.

How to set up a system prompt

Set up a system prompt by writing down role, scope, rules and handoff triggers, then testing them on real tickets.

  1. Start with the role and the scope. Name the company, the product and the topics the agent covers. State what it must decline.
  2. Write rules as plain, positive instructions. "Answer only from the provided articles" works better than a long list of forbidden phrases.
  3. Define the handoff triggers. List the cases that go to a person: billing disputes, complaints, and anything the knowledge base does not cover.
  4. Keep policy out of the prompt. Refund rules and plan details belong in the knowledge base, where the team can update them. The prompt says how to behave, not what the facts are.
  5. Test against real tickets. Run a fixed set of past conversations after each change. Compare the answers before and after.
  6. Version every change. Record who changed the prompt, when and why. A drop in quality can then be traced and reversed.

How Customerly handles a system prompt

Customerly gives support teams brand voice controls for Aura AI, its AI customer support agent. The controls cover formality, tone of voice, rich media, and links to the source articles in its answers. Aura AI is trained on the Help Center, canned responses and uploaded documents. It hands the conversation to a human when needed. To see these controls on your own content, book a demo.

FAQ

Can customers see the system prompt?

No, customers do not see the system prompt in normal use. It is sent to the model behind the scenes. A determined user can sometimes get a model to repeat it. Never put passwords, API keys or confidential rules in a system prompt.

How long should a system prompt be?

A system prompt should be as short as possible while still covering role, scope, tone, rules and handoff. Extra length adds cost and delay to every reply. If the prompt keeps growing with product facts, move those facts to the knowledge base.

Does changing the system prompt retrain the AI agent?

No, changing the system prompt does not retrain the model. It changes the instructions the model reads at the start of each conversation. The effect is immediate and can be reversed. Changing the model itself is a different process called fine-tuning.

Is a system prompt enough to keep an AI agent safe?

No, a system prompt alone is not enough to keep an AI agent safe. Instructions can be ignored or overridden by a cleverly written message. Add checks outside the model, such as permission limits on actions and a human review step for refunds.

Related Terms

Prompt Engineering

Prompt engineering is the practice of writing and refining the instructions given to a large language model so its answers are accurate and consistent.

Prompt Injection

Prompt injection is an attack where someone hides instructions in the text an AI model reads, so the model follows them instead of its own rules.

AI Guardrails

AI guardrails are the rules and checks that limit what an AI agent may say and do. Learn how they work in customer support and how to set them.

Large Language Model (LLM)

A large language model (LLM) is an AI model trained on vast amounts of text to understand and write language. See its role in customer support.

Context Window

A context window is the maximum amount of text, measured in tokens, that a large language model can read and write in a single request.

Brand-Safe AI

Brand-safe AI is an AI agent set up to answer customers only with approved facts, in the company's tone, and within its policies and legal limits.

Some of the businesses that choose Customerly

AI Support That Sets You Apart.
Start Leading Today.

AI Support Software