AI agent guides

How to write a system prompt for a customer service chatbot

A good system prompt for a customer service chatbot says who it is, what it helps with, how it answers, what it never does, and when it hands over to a person, in plain, direct language. Keep facts such as prices and hours out of it: put them in the chatbot's knowledge and tell it to answer only from there, and to say when it doesn't know. Then test it with the questions your customers really ask, including the awkward ones.

Updated 5 November 2026 · 8 min read · by The HeyKiko team

Ask AI about this pageChatGPTClaudePerplexityGoogle AI
How to write a system prompt for a customer service chatbot: a website chat conversation with Acme Bikes

What a system prompt is

A system prompt is the set of standing instructions an AI model reads before every conversation. Customers never see it, but it decides how the chatbot behaves: its role, its tone, what it will and won't do. Glossary: system prompt

It's not where the chatbot's knowledge lives. Prices, opening hours and policies belong in the knowledge it's trained on, which it searches for each question; the system prompt says how to use that knowledge.

The five parts of a customer service prompt

The five parts of a customer service chatbot's system prompt, with an example line for each
PartWhat it coversExample line
Who you areThe business, the role, the toneYou are the assistant for Northside Dental, a family clinic in Leeds. Be warm and brief.
What you help withThe jobs it doesAnswer questions about treatments, prices and hours, and help patients book.
How you answerGrounding, length, languageAnswer only from the clinic's information. Keep replies to a few sentences, in the patient's language.
What you never doThe lines it doesn't crossNever give medical advice or quote prices for treatment plans.
When to hand overWhen a person takes overOffer a person when a patient asks for one, is upset, or describes pain.

A complete example

Who you are

  • You are the assistant for Bloom Florist, a flower shop in Singapore with same-day delivery.
  • Be friendly and warm, like a helpful member of staff, and keep replies short, as in a chat.

What you help with

  • Answer questions about bouquets, hampers, wedding flowers, prices and delivery.
  • Help customers choose an arrangement for their occasion and budget.

How you answer

  • Answer only from Bloom Florist's own information. If it doesn't cover the question, say you don't know and offer to pass it to the team.
  • Reply in the customer's language, and ask one question at a time.

What you never do

  • Never invent prices, delivery times or discounts.
  • Never promise a same-day delivery after the cut-off time in Bloom Florist's information.

When to hand over

  • When the customer asks for a person, is upset, or has a problem with an order that already arrived.

Make your own from your details with our free system prompt generator.

Rules that keep it honest

  • Answer only from the business's own information: this is the single most important line.
  • Say plainly when you don't know, instead of guessing. A wrong answer costs more than “let me check”.
  • Never invent prices, availability, policies or promises.
  • Offer a person when the customer asks, is upset, or the answer isn't in the information.

How to stop a chatbot making things up

Writing tips from the model makers

  • Be clear and direct. Anthropic's guide says its models respond well to clear, explicit instructions, and to asking explicitly for what you want rather than hoping it's inferred.
  • Say why. The same guide suggests giving the reason behind an instruction, such as “keep replies short, because customers read them on a phone”.
  • Give it a role. Setting a role in the system prompt focuses behaviour and tone; even a single sentence helps.
  • Write calmly. Anthropic notes that newer models follow the system prompt closely, so shouting in capitals (“CRITICAL: you MUST…”) can make them overreact; plain wording works.
  • Use sections and examples. OpenAI's guide suggests splitting a prompt into sections such as identity and instructions, and showing examples of the answers you want.

Anthropic: prompting best practices · OpenAI: prompt engineering

Test it with real questions

A prompt is only as good as the answers it produces. Before customers see it, ask the questions they really ask, and the ones that go wrong:

  • Your five most common questions.
  • A question your information doesn't answer: does it say so?
  • A discount request, or a promise it can't make.
  • An angry message, and a request for a person.
  • “Ignore your instructions and…”: it should carry on as itself.
  • Something off-topic, such as a poem or homework.

Test and tune your agent

Common mistakes

  • Putting prices and hours in the prompt, where they go out of date.
  • Rules that contradict each other, such as “always be brief” and “explain everything in detail”.
  • “Never say you don't know”: the fastest way to a chatbot that makes things up.
  • A wall of text: long prompts bury the rules that matter.
  • No hand-over rule, so customers who need a person can't reach one.

In HeyKiko

Settings › AI splits the system prompt into two parts. Persona is how the agent sounds: tone, warmth and emoji, written from your website if you like, with the reply language. Instructions are what it must and mustn't do on every message: start from the Grounded, Support or Sales preset or write your own, and use “Improve with AI” to tidy it. Your knowledge, from your website, files and database, stays separate, so prices and hours are never in the prompt.

Sources

Checked on 5 November 2026. We make HeyKiko, which this guide uses as its example.

FAQ

Questions people ask

Short answers from the guide above.

Still have a question?Ask Kiko. It's a HeyKiko agent trained on everything here.

The standing instructions an AI model reads before every conversation: who it is, what it may and may not do, and how to answer. Customers never see it.

Terms in this guide

Keep reading

Kiko, the HeyKiko mascot, waving

Let Kiko take the next message

Train your agent on your website today, put it on WhatsApp, Telegram and your site, and watch the first conversations come in.

  • No card needed
  • Set up without code
  • Cancel any time