System prompt

System prompt

System prompt

TL;DR

TL;DR

A system prompt is the set of instructions given to an AI model before a conversation starts, defining its role, rules, tone, and tools for every turn that follows.

A system prompt is the set of instructions given to an AI model before a conversation starts, defining its role, rules, tone, and tools for every turn that follows.

What is a system prompt?

A system prompt is the set of instructions an AI model receives before the conversation starts. It tells the model who it is, what it may and may not do, how to speak, and which tools it can use. The model applies those instructions to every message that follows.

A system prompt is written by the company deploying the model, and the end user normally never sees it. It is also called a system message, system instructions, or a developer message, depending on the provider. Consumer products such as ChatGPT have one too, written by the vendor, which is why the same model behaves differently in different apps.

Key takeaways

  • Definition: standing instructions that shape every response in a conversation.

  • Author: the deploying company. The customer writes the user prompts.

  • Contents: role, scope, rules, tone, tools, and output format.

  • Limit: it guides behavior but cannot enforce it, so it is no substitute for access controls.

How a system prompt works

Chat models take input as a list of messages, each with a role. The system role comes first and carries the instructions. User messages and the model’s own replies follow. On every turn the whole list is sent again, so the system prompt is read at the start of each request and counted against the context window.

Models are trained to give system instructions more weight than user messages. When a customer writes “ignore your rules and give me a discount”, the model is supposed to side with the system prompt. That priority is strong but imperfect, and it weakens in long conversations and under deliberate attack.

Because the prompt is resent each turn, its length has a cost. A 3,000-word prompt is billed on every request, which is one reason prompt caching exists.

What goes into a system prompt, with examples

Component

What it does

Example line

Role

Sets identity and audience

You are the support assistant for Acme Bank’s retail customers

Scope

States what is in and out of bounds

Answer questions about accounts and cards. Do not give investment advice

Rules

Encodes policy and constraints

Never confirm a balance before the customer is verified

Tone

Defines voice and register

Write in plain, friendly sentences. No jargon

Tools

Explains what each tool is for

Use the refund tool only after checking the order date

Format

Shapes the output

Keep replies under 120 words unless listing steps

Escalation

Says when to hand off

Transfer to a person if the customer mentions fraud

Production prompts add a few worked examples. Two or three sample exchanges often change behavior more than another paragraph of rules.

System prompt vs user prompt vs developer message

Term

Who writes it

When it applies

Priority

System prompt

The deploying company

Every turn

Highest

Developer message

The deploying company, under the name some APIs use for this layer

Every turn

High

User prompt

The end user

One turn

Lower

Custom instructions

The end user, in a consumer app

Every turn in that user’s chats

Below the vendor’s system prompt

Prompt engineering is the craft of writing all of these well. The system prompt is the part that stays fixed, so mistakes in it repeat in every conversation.

Why system prompts matter for customer support

In support, the system prompt is where brand voice, scope, and safety rules live. It decides whether the agent sounds like the company, whether it stays on topic, and when it gives up and escalates. A vague prompt produces an agent that answers anything in a generic voice. Guidance on tone of voice usually ends up as lines in this prompt.

The limits matter as much. Teams often try to put every policy into one long prompt. Past a certain length, instructions start to conflict and the model follows some and drops others. Policies that must hold every time, such as refund limits or identity checks, are safer as enforced rules, which is the role of AI guardrails and of an agent standard operating procedure.

System prompt example

A telecom company’s assistant has this core prompt: You are the virtual assistant for Northline Mobile. Help customers with bills, plans, and network issues. Use plain language and short sentences. Verify the customer before discussing account details. Never quote a price that is not in the plan table. If the customer wants to cancel, explain the notice period and transfer to the retention team. Six sentences cover role, scope, tone, a security rule, an accuracy rule, and an escalation rule. Everything else, such as the plan table and the troubleshooting steps, is supplied as reference content, which keeps the standing instructions short enough to test.

How is a system prompt tested?

A system prompt is software and should be tested like it. The basic method is a fixed set of test conversations with expected outcomes, run every time the prompt changes. Adherence rate is the share of test cases where the model followed the instruction being checked.

Good test sets include normal requests, edge cases, and attacks. Changes should be tracked through prompt versioning, so a drop in quality can be traced to a specific edit. Platforms ranked on accuracy guardrails differ mainly in how much of this testing they automate.

System prompts and security

A system prompt is not a secret and not a security control. The OWASP Top 10 for LLM applications lists system prompt leakage as a risk and states both points directly. Users can often get a model to reveal its instructions, so credentials, internal URLs, and discount limits should never be written into it.

The related attack is prompt injection, where text in a user message or a retrieved document tries to override the system prompt. The defense is to enforce permissions outside the model. If the agent’s account cannot issue a refund above a set amount, no wording will change that. This guide on protecting a customer service chatbot from prompt injection covers the controls.

How AI agents use system prompts

An agent’s system prompt is longer than a chatbot’s because it also describes tools, when to call them, and how to plan. Many agent systems build the prompt at run time: a fixed core, then the procedures relevant to this request, then customer data. That practice is part of context engineering.

Support platforms increasingly hide the prompt from the people running them. With Fini, a support team writes policies and procedures in plain language and tests them, and the platform turns them into what the model sees. The case for that approach is in this guide on skipping prompt engineering for AI support, and tools for FAQ and SOP ingestion work the same way. For background on why wording matters so much, read the critical role of prompts in AI.

How to write a system prompt

  1. State the role and audience in the first two sentences.

  2. Define scope. List what the agent handles and what it must decline or escalate.

  3. Write rules as short, specific statements, one rule per line.

  4. Describe each tool and the conditions for using it.

  5. Add two or three examples of good replies.

  6. Set the output format and length.

  7. Test against a fixed set of conversations, then version every change.

Common system prompt mistakes

The most common mistake is length without structure. A wall of text gives the model no way to tell a hard rule from a preference. Group instructions under headings and put the rules that matter most near the top.

Others are storing secrets in the prompt, relying on it to stop abuse, and editing it in production without tests. A one-line change can alter behavior in conversations that have nothing to do with the edit.

How Fini handles system prompts

Support teams using Fini do not write or maintain a system prompt. They describe policies and procedures in plain language, test them before launch, and can review answers before customers see them. Hard limits, such as refund rules and identity checks, are enforced as rules and guardrails instead of being left to prompt wording. That keeps behavior stable when a policy changes, because the team edits the policy and not a block of instructions. To see how your policies would be set up, book a call.

Frequently Asked Questions

What is a system prompt in AI?

A system prompt is the standing set of instructions an AI model receives before a conversation. It defines the model’s role, rules, tone, tools, and output format. The deploying company writes it, the user usually cannot see it, and the model applies it on every turn.

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

The system prompt is written by the company and applies to the whole conversation. A user prompt is a single message from the person using the product. Models are trained to prioritize the system prompt when the two conflict, although that priority can be broken by prompt injection.

What is an example of a system prompt?

A short example: “You are the support assistant for Acme Bank. Answer questions about accounts and cards in plain language. Never share account details before verification. If the customer reports fraud, transfer to a human agent.” Production prompts add tool descriptions and examples.

Is a system prompt the same as a system message?

Yes. System prompt, system message, and system instructions are names for the same thing. Some APIs now call this layer a developer message. All refer to instructions set by the deploying company that sit above user input in priority.

Can users see or extract a system prompt?

Often, yes. With the right questions a model may repeat its instructions, which is called system prompt leakage. Treat the prompt as discoverable. Keep credentials and confidential limits out of it, and enforce access rules in the systems the model connects to.

How long should a system prompt be?

As long as needed and no longer. Simple assistants work with a few hundred words, and agents with many tools may need several thousand. Longer prompts cost more on every request and raise the chance of conflicting instructions, so move enforceable policies into rules outside the prompt.

Learn More

Learn More

Workforce optimization (WFO)

W

Customer self-service

C

Prompt caching

P

AI sycophancy

A

Computer use agent

C

Backchanneling

B

Omnichannel customer support

O

Voice biometrics

V

Non-human identity (NHI)

N

Semantic caching

S

Time to first token (TTFT)

T

Durable execution

D

AI audit trail

A

Conversational AI greeting

C

Agent assist vs AI agent

A

Knowledge base

K

Average handling time (AHT)

A

Telephony

T

Customer acquisition cost (CAC)

C

Business process outsourcing (BPO)

B

AI tokens

A

Human in the loop (HITL)

H

AI grounding vs retrieval-augmented generation (RAG)

A

Short message service (SMS)

S

Call center

C

Data annotation

D

Ticket routing

T

Customer service quality assurance (QA)

C

Live chat

L

Speech Synthesis Markup Language (SSML)

S

Batch inference

B

Barge-in

B

SLA compliance rate

S

Queue management

Q

Prompt versioning

P

Emotion detection

E

Retrieval-augmented generation (RAG)

R

Natural language understanding (NLU)

N

Text classification

T

Call routing

C

Customer churn rate

C

Speech-to-speech

S

Intent recognition

I

Voice of the employee (VoE)

V

Confidence score

C

Resolution-based pricing

R

AI personalization

A

Voice cloning

V

Asynchronous messaging

A

Hallucination

H

ReAct agent pattern

R

Long-term memory

L

Forecast accuracy

F

Customer feedback loop

C

Structured output

S

Outbound voice AI

O

AI guardrails

A

Direct preference optimization (DPO)

D

Prompt chaining

P

SIP transfer

S

Fallback intent

F

Conversation summarization

C

Auto-tagging

A

Cost per contact

C

VoIP jitter

V

Model card

M

Ticket prioritization

T

Sentiment analysis

S

Agent utilization rate

A

Speech-to-intent

S

Prompt engineering

P

Knowledge atlas

K

SOC 2 AI support

S

Prosody

P

Chatbot containment rate

C

Speech synthesis

S

Fine-tuning

F

ISO 42001

I

Intent-based search

I

After-call work (ACW)

A