What is a system prompt? A guide for online stores
A system prompt is the standing instruction an AI assistant follows before it reads a message. See what it does and what a store chatbot’s must cover.
- Published
- Last updated
A system prompt is a standing instruction that tells an AI assistant how to behave before it handles a conversation. For a store chatbot, it sets the job, the sources the assistant can use and when a member of staff needs to take over.
What a system prompt is
A system prompt applies each time the assistant starts a conversation. A retailer might tell its assistant to answer product questions from the catalogue and use the store’s delivery policy for shipping questions. The customer can then ask about a specific product without restating those instructions.
The vendor can set rules that apply across its service. The store can add its own instructions if the product lets it, or write them directly if it builds the assistant. When both contribute, the vendor’s rules still apply.
System prompt vs user prompt
A user prompt is the message a shopper or staff member enters for a particular task. “Can I get these boots delivered to Hobart?” is a user prompt. The standing instruction to use the store’s delivery policy tells the assistant where to look before it answers.
When the two conflict, the assistant is meant to follow the higher-priority instruction. For example, it must follow the store’s direction to refer refund requests to staff even when a shopper asks it to approve one in the chat. OpenAI’s guide to message roles describes this priority for instructions supplied by an app.
What a store assistant’s system prompt must cover
Write the instructions so the assistant has a clear decision for each kind of question it receives.
- Give it a role. A storefront assistant might help customers choose products and explain delivery or returns.
- Name the policies it must follow. Point to the current policy for each topic so that staff can update the rule in one place.
- Set the tone in words you could check in a reply. Ask for short answers in Australian English and plain descriptions of charges and delivery times.
- Define which questions it can answer and where its authority ends. Explaining how to request a refund is different from approving the refund.
- Set the handover triggers. Include requests for a person, conflicting information and cases that need a staff decision.
- Name the source for each kind of fact. Product specifications come from the catalogue. For current prices and quantities, use the live product record.
A system prompt example for a store chatbot
This example gives a chatbot at Wattle & Tide, a fictional homewares store in Perth, instructions for product and policy questions.
Role: You are the Wattle & Tide storefront assistant. Help shoppers choose homewares and explain delivery and returns.
Policies: Apply the current Delivery and Returns documents. Confirm a delivery estimate only when the delivery checker has a result for the shopper’s postcode.
Tone: Use plain Australian English. Give the answer first and ask one follow-up question when you need a detail.
Scope: Answer questions about materials, dimensions, stock, prices and store policies. Leave refund approvals and changes to orders to staff.
Handover: Send the conversation to customer service when a shopper asks for a person or wants a refund approved. Hand over when a required source is missing or two sources disagree.
Sources: Use the catalogue for product details and the live product record for stock and prices. Use the delivery checker for postcode estimates and the current policy documents for delivery and returns rules. Leave unconfirmed details out of the reply.Where each assistant keeps its system prompt
Saved assistants give you a place to write standing instructions for a particular job. The settings below apply to the assistant or project you configure. The provider’s own rules still apply.
| Assistant | Saved format | Where to write the instructions |
|---|---|---|
| ChatGPT | Custom GPT | Use Instructions in the configuration view of an editable GPT. Availability depends on account and workspace permissions. Creating and editing GPTs |
| Claude | Project | Select Set project instructions. The saved instructions apply to chats in that project. Creating and managing Claude Projects |
| Gemini | Gem | Use the Instructions box when creating or editing a Gem in the Gemini web app. Creating a custom Gem |
| Microsoft 365 Copilot | Agent in Agent Builder | Use the Instructions field on the Configure tab. Building agents in Agent Builder |
For personal preferences across ordinary ChatGPT conversations, see ChatGPT custom instructions.
What a system prompt cannot do
A system prompt guides the assistant’s replies. The systems that hold your data or carry out actions must enforce the rules. Make the returns workflow check eligibility and refund limits before issuing money. Read current prices and stock from the store system at the point where a shopper needs them.
A shopper can try to talk the assistant into ignoring the store’s instructions. Those requests are a form of prompt injection, where someone tries to steer the assistant away from its assigned job. Use AI guardrails outside the prompt to control access and decide which actions the assistant can take.
Testing and changing a system prompt
Run the same shopper questions before and after each edit so you can see what the change fixes and what it breaks.
- Save questions for common cases and exceptions. Try “How wide is the Acacia tray?”, “Can you deliver to my postcode?” and “Can you approve my refund?”
- Write the expected result beside each question. For the tray, expect the width in the catalogue. For delivery, expect a request for the postcode if it’s missing. For a refund approval, expect a handover to staff.
- Run the questions against the current instructions in fresh chats. Save the replies beside the expected results.
- Edit one instruction, then rerun the questions in fresh chats with the same product and policy data.
- Compare both sets of replies with the expected results. If the edit fixes a delivery answer but starts promising refunds, revise the edit and repeat the check before you publish it.
Give your store its own shopping agent
Customers ask in their own words. Your agent finds, compares and checks out from your catalogue, right on your site.