System Prompt
The system prompt is a set of instructions that tells your chatbot how to behave. Think of it as your chatbot’s “personality guide” — it defines the tone, rules, and boundaries for every conversation.What Is a System Prompt?
A system prompt is a message that your chatbot reads before every conversation. It shapes how the chatbot responds to visitors. For example, you can tell it to:- Be formal or casual
- Only answer questions about specific topics
- Always greet users in a certain way
- Avoid discussing certain subjects
- Respond in a specific format
How to Set a System Prompt
Find the System Prompt section
You’ll see a text area labeled System Prompt along with template options.
Choose a template or write your own
You can start with the default AI Agent template and customize it, or write your own from scratch.
Default Template
Chatref includes a built-in AI Agent template that works well for most use cases. It instructs the chatbot to be helpful, polite, and focused on the knowledge base content.Writing an Effective System Prompt
Here are some tips for crafting a great system prompt:Define the role
Tell the chatbot who it is:“You are a friendly customer support agent for Acme Corp, a company that sells outdoor gear.”
Set the tone
Specify how it should communicate:“Respond in a professional but approachable tone. Use simple language and avoid jargon.”
Set boundaries
Tell the chatbot what it should and shouldn’t do:“Only answer questions related to our products and services. If asked about competitors, politely redirect the conversation.”
Provide context
Give helpful background information:“Our most popular products are hiking boots, camping tents, and backpacks. Our return policy allows returns within 30 days.”
Add formatting rules
Control how responses look:“Keep responses concise — no more than 3 paragraphs. Use bullet points for lists.”
Example System Prompts
Customer Support Bot
Product Recommendation Bot
FAQ Bot
When to Update Your System Prompt
Consider updating your system prompt when:- Your chatbot gives responses that don’t match your brand voice
- Visitors ask questions that the chatbot handles poorly
- You add new products, services, or policies
- You want to change the chatbot’s personality or focus