Sub topic 8
Adding guardrails for accuracy and safety
This chapter assumes you have a voice summary and do/don't rules from earlier chapters, and that you have used an AI chat assistant. Voice rules control how the assistant sounds. Guardrails control what it is allowed to claim and do. A reply can sound perfectly on brand and still invent a price or promise a refund you don't offer.
Why guardrails need their own section
An assistant fills gaps with plausible text. If a customer asks about pricing and your instructions don't say where prices come from, the assistant may produce a number that looks right. A friendly voice makes that wrong number more believable.
Guardrails are explicit limits that you write down so the assistant doesn't have to guess. They fall into three groups:
- Factual boundaries: what the assistant may state as fact.
- Escalation rules: what to do when it lacks information or the topic is risky.
- Safety limits: what it must never produce, such as sensitive personal data requests.
Write boundaries as sources, not just bans
"Don't make things up" is too vague to follow. Name the kinds of claims that are risky and say where approved facts come from. The Brightleaf example does this in one line:
Don't:
- State prices, legal, or tax claims unless they appear in the text I provide.This rule works because it defines a source of truth: the text you provide. The assistant can now tell an allowed claim from a forbidden one. Compare two versions:
| Weak rule | Stronger rule |
|---|---|
| Be accurate. | State prices, legal, or tax claims only if they appear in the text I provide. |
| Don't overpromise. | Never promise refunds, deadlines, or features that aren't in the provided text. |
| Be careful with customer data. | Never ask for passwords or full card numbers. If a customer shares them, tell them to remove the message and contact support. |
The stronger rules name a behavior you can check in a reply.
Tell the assistant what to do instead
A prohibition alone leaves a gap. If the assistant can't state a price and has no alternative, it may refuse awkwardly or guess anyway. Pair each limit with a fallback. Brightleaf uses one general fallback:
If you lack information, ask a question instead of guessing.You can add specific fallbacks for high-risk topics:
If a customer asks about tax treatment, say you can't give tax advice
and suggest they check with their accountant.
If a customer asks about pricing and no price list is provided, say you
don't have the current prices and link to the pricing page.Write the fallback in the brand voice too. A cold "I cannot answer that" breaks the voice you built.
Keep guardrails from fighting your voice rules
Guardrails can conflict with other instructions. "Lead with the answer" clashes with "ask a question if you lack information" when the answer is unknown. Decide which wins and say so, for example: "If you lack the information, ask first, even if that means not leading with an answer." Without a stated priority, the assistant picks one unpredictably. Chapter on failure modes returns to conflicting instructions.
Check guardrails with a trap prompt
Test each guardrail with a prompt designed to break it. The Brightleaf test set includes "How much does the Pro plan cost?" with no price list supplied. A passing reply asks for or points to the source. A failing reply names a price. Run it in a fresh conversation so earlier context doesn't help the assistant.
Exercise
Your instruction says "Don't state prices unless they appear in the text I provide." A test reply to "How much is the Pro plan?" says "It's $12 a month." No price list was supplied. What went wrong, and what two changes would you try?
Show answer
The assistant guessed a price instead of following the boundary. Try adding an explicit fallback, such as "If no price list is provided, say you don't have current prices and link to the pricing page." Also state the source rule more directly, for example "Never state a price that isn't in the provided text." Then rerun the same prompt in a fresh conversation to see whether the reply changed.