number6
Book a training consultation
Behind the Agent

Guardrails and safety: building AI systems your business can trust

This isn't about the existential AI debate. It's about making sure your AI doesn't email a customer something wrong.

· 10 min read
G
Guillaume M. Partner, Houston, TX
A guardrail along a winding road with a clear path ahead

Let’s get one thing out of the way: this article isn’t about whether AI will become sentient and destroy humanity. That’s an interesting philosophical debate, but it’s not what keeps business owners up at night.

What keeps them up at night is simpler. What if our AI customer service bot tells someone the wrong return policy? What if it makes up a product feature that doesn’t exist? What if it sends an email that makes us look incompetent? What if it agrees to a discount we never authorized?

These are real risks. They happen. And they’re entirely preventable if you build your AI systems with the right guardrails from the start.

The trust problem

Here’s the fundamental tension with business AI: the same capability that makes it useful (generating human-like text, making decisions, taking actions) is what makes it risky. A system that can write a helpful, accurate customer email can also write a confident, completely wrong one. The AI doesn’t know the difference.

Trust isn’t binary. It’s a spectrum. Your new human employee starts with limited authority too. They don’t get to approve refunds on day one. They don’t send emails to major clients without someone reviewing them first. They earn more autonomy as they prove they can handle it.

AI systems should work the same way. But most companies either give the AI full autonomy from day one (and get burned) or keep a human reviewing every single output forever (and never get the efficiency gains they were after).

The goal is to move along that spectrum deliberately. Start with tight guardrails. Loosen them as confidence builds. Keep them in place for high-stakes decisions permanently.

Hallucination: the problem you can’t fully solve

If you take one thing from this article, let it be this: AI models will sometimes make things up, and there is currently no way to eliminate this completely.

Hallucination is when an AI generates information that sounds plausible but is factually wrong. It might cite a policy that doesn’t exist, describe a product feature you’ve never offered, or provide a statistic it invented on the spot. It does this confidently, with no indication that it’s making it up.

Why does this happen? Because language models don’t “know” things the way a database does. They predict what text is likely to come next based on patterns in their training data. When the model doesn’t have a confident answer, it generates text that looks like a confident answer anyway.

You can reduce hallucination significantly. You can’t eliminate it entirely. Here’s what actually works:

Give the AI a knowledge base (via RAG) and instruct it to only answer based on information it can find there. This is the single most effective measure. An AI that’s pulling from your actual documentation is much less likely to make things up than one that’s generating answers from scratch.

Tell the model explicitly what to do when it doesn’t know something. “If you can’t find the answer in the provided context, say ‘I don’t have that information, let me connect you with someone who can help.’” This sounds simple. It is simple. And it prevents the majority of harmful hallucinations.

Test aggressively with questions the AI shouldn’t be able to answer. If you’re building a product support bot, ask it about products you don’t sell. Ask it about policies that don’t exist. See what happens. Do this before launch, and keep doing it periodically after.

Content filtering: what your AI should never say

Beyond hallucination, you need rules about what your AI is allowed to discuss and how.

This isn’t censorship. It’s scope. A customer service bot for an accounting firm should not be offering medical advice, political opinions, or commentary on current events, even if the AI is technically capable of it. That’s not its job, and nothing good comes from it wandering off-topic.

Build an explicit topic boundary. Define what the AI should help with and instruct it to politely redirect anything outside that scope. “I’m here to help with questions about your account and our services. For questions about [other topic], I’d recommend [alternative resource].”

Set tone rules. If your brand voice doesn’t include sarcasm, make sure the AI doesn’t use sarcasm. If you never discuss competitors by name, instruct the AI to avoid it. These feel like small details until the AI casually trash-talks a competitor to a customer who turns out to be married to that competitor’s CEO.

Filter output before it reaches the customer. For customer-facing applications, run the AI’s response through a second check before sending. This can be another AI call (cheaper model, faster) that verifies the response stays on topic, doesn’t include prohibited content, and doesn’t make promises outside what the system is authorized to offer. Some teams use regex or keyword filters as a simpler alternative for specific prohibited phrases.

Escalation rules: when to bring in a human

Not every interaction should be handled by AI. Knowing where to draw that line is one of the most important design decisions you’ll make.

We think about this as a set of trigger conditions. If any of these are true, the AI should stop and hand off to a human.

The most obvious trigger is an upset customer. Sentiment detection isn’t perfect, but it’s good enough to catch obvious frustration. An angry customer talking to a bot that doesn’t realize they’re angry is a recipe for disaster. Escalate fast.

Money is another clear line. If someone’s asking for a $500 refund, the AI can probably handle that (depending on your policy). A $50,000 invoice dispute? That needs a human. Set a dollar threshold and stick to it.

Confidence matters too. If the model’s internal confidence is low, or if the RAG system didn’t return relevant results, the AI should say “I’m not sure” and pass it along. Most modern models can express uncertainty if you instruct them to. The problem is that most people don’t instruct them to.

Watch for conversations that drag on. If the AI and a customer have been going back and forth for more than five or six exchanges without resolution, something is off. Escalate before frustration compounds. And anything touching legal questions, compliance, HR complaints, or personal health information should go to a human regardless of whether the AI could technically handle it.

The key is making escalation smooth. The human who picks up should see the full conversation history and any relevant context the AI was working with. Nothing is more frustrating than being transferred and having to start over.

Human-in-the-loop: the patterns that work

“Human-in-the-loop” is the general term for keeping humans involved in AI workflows. In practice, it takes different forms depending on the stakes.

For internal summaries, first-draft documents, and data classification, reviewing a random sample is usually enough. Check 10% of the AI’s outputs each week. Look for error patterns. Adjust the prompts or knowledge base when you find them.

Customer-facing content needs more scrutiny. Review everything before it goes out, at least initially. Once accuracy is consistently above 95%, you can shift to spot-checking. But keep the ability to review any individual output at any time.

Financial recommendations, legal summaries, medical triage? Always require human approval. Always. The AI can draft, summarize, and recommend. The human decides and sends. This isn’t a failure of the AI system. It’s the design working correctly.

The common mistake is treating human-in-the-loop as temporary. “We’ll review everything at first, then automate it fully once it’s working.” For some tasks, sure. For others, the human review step is a permanent part of the system. A lawyer should always review AI-drafted contract language. A doctor should always review AI-generated patient summaries. The AI makes them faster. It doesn’t replace their judgment.

Testing non-deterministic systems

Testing AI is different from testing regular software. Run the same input through a traditional program twice and you get the same output. Run the same prompt through an AI model twice and you might get different answers. This makes quality assurance harder, but not impossible.

Build a test suite of representative inputs with known-good outputs. Run it regularly (weekly, or after any prompt changes). You’re not looking for exact matches. You’re looking for outputs that are correct, on-topic, and within your guidelines. Flag anything that falls outside.

Include adversarial tests. Try to make the AI break. Ask it to ignore its instructions. Ask it questions designed to trigger hallucination. Ask it to do things outside its scope. If you can break it in testing, a customer will break it in production.

Test with real data, not just clean examples. Your test suite should include the messy, ambiguous, poorly-worded questions that actual users ask. The AI that handles “What is your return policy?” perfectly but falls apart on “so like can I return this thing I bought if I don’t want it anymore or whatever” isn’t ready for production.

Track accuracy over time. AI quality can drift as models update and data changes. A monthly accuracy review catches degradation before your customers do.

Building confidence gradually

I think the biggest mistake companies make with AI safety isn’t having too few guardrails. It’s treating guardrails as an obstacle to be removed rather than a system to be tuned.

Here’s the approach that works:

Start with maximum oversight. Every AI output gets reviewed by a human. This is slow, but it builds your understanding of what the AI gets right and wrong. You’re collecting data about failure modes.

After a few weeks, categorize the outputs. Which types of responses are consistently accurate? Which ones need frequent correction? This gives you a map of where the AI is trustworthy and where it isn’t.

Automate the trustworthy categories first. If the AI handles “business hours” questions correctly 100% of the time, stop reviewing those. Keep reviewing the categories where it makes mistakes.

Expand automation gradually. Every month, review the data. Are error rates going down? Can you move another category from “human review” to “automated with spot-checking”?

Some categories may never be fully automated. That’s fine. The goal isn’t zero human involvement. The goal is human involvement where it actually matters.

The catch (because there’s always a catch)

Guardrails have a cost. Every check you add to the pipeline makes the response slower, adds another API call to the bill, and creates one more thing that can break.

A response that goes through content filtering, hallucination detection, and tone checking before reaching the customer might take 3-5 seconds instead of 1. For a chatbot, that matters. For an email draft that gets queued for review, it doesn’t.

The art is finding the right balance for each use case. Customer-facing, real-time applications need fast, lightweight guardrails. Batch processing or internal tools can afford heavier checking. High-stakes decisions justify the added latency and cost. Low-stakes outputs might not need any guardrails beyond the basic prompt instructions.

What to do this week

If you’re running AI in your business today, or planning to, start with an honest assessment of risk.

What’s the worst thing your AI could do? Send a wrong email? Approve a bad refund? Give incorrect medical advice? The severity of the worst case determines how tight your guardrails need to be.

For most business applications, the answer is: make sure there’s a human reviewing customer-facing outputs (at least initially), build a clear escalation path for situations the AI can’t handle, and test regularly with realistic scenarios.

That’s not glamorous. It won’t make your AI feel less like magic. But it’s what separates an AI system that your team actually trusts from one that everyone’s quietly afraid of.

Keep reading

NEWSLETTER

Get the AI
Reality Check.

Our monthly newsletter. One email with the most useful things we've learned, built, or thought about in AI this month. Zero filler. Unsubscribe anytime.

We respect your inbox. One email per month, no spam, no selling your data.

Move from reading to practice

Want to talk about this?

Bring one leadership challenge. We will shape the training around the work your team actually carries.

Book a training consultation