tbdb.ai — Think Big, Do Big
All posts
automationcustomer-experienceai-strategy

Guardrails for Your Customer-Facing Chatbot (So It Never Quotes a Price It Shouldn't)

tbdb.ai studio7 min read

Three controls, roughly half a day of work, and your support bot stops making promises you'd have to honor.

If you've put a chat widget on your site, or you're about to, the expensive failure is a bot that's too helpful. It invents a 20% discount, waives a restocking fee, agrees to a same-day install you can't staff, or confidently quotes last year's price. Customers screenshot that. Then you're negotiating from behind.

Your bot's words are treated as your words

In February 2024, British Columbia's Civil Resolution Tribunal ruled against Air Canada after its website chatbot told a customer he could apply for a bereavement discount retroactively, which contradicted the airline's actual policy. Air Canada argued, among other things, that the chatbot was a separate legal entity responsible for its own actions. The tribunal rejected that and ordered the airline to pay the customer damages and fees totalling roughly C$812, as the BBC reported at the time.

C$812 is nothing to an airline. What matters is that "the bot said it, not us" was tested in front of a tribunal and lost. For a small business the equivalent is rarely a lawsuit. It's a customer standing at your counter with a screenshot, and you deciding in three seconds whether to eat the discount or the review.

A better prompt won't fix this, because prompts are instructions and a language model can drift from them. You want a layer of dumb, deterministic checks around the model. n8n's guide to LLM guardrails describes the same split we use in practice: checks that run on the way in (before the model sees the message) and on the way out (before the customer sees the reply), covering things like keyword and regex filters, topical alignment, PII, and jailbreak attempts (n8n's guardrails guide). Which ones to reach for is an engineering judgement, and here is ours, stated as opinion rather than benchmark. Keyword and regex checks are the cheap ones, because they run in your own code instead of costing an extra model call on every message. Using a second model as a judge is more flexible, but you pay for it in latency and API calls. For an SMB support bot, three cheap controls cover most of the risk.

Control 1: an allowed-topic list, not a banned-topic list

The instinct is to list what the bot mustn't discuss. That list never ends, so invert it.

Write down the five to eight things your bot is allowed to handle. For a typical service business that's hours and location, booking or rescheduling an appointment, order or job status, what's included in a named service, return and warranty policy as written on your policy page, and how to reach a human.

Everything else is out of scope by default and goes to a human: pricing beyond your published list, custom quotes, discounts, complaints, anything that amounts to "can you make an exception". This is a topical-alignment check, and you can implement the first pass with keywords before the model ever runs. If the inbound message contains discount, deal, price match, cheaper, refund, compensation, lawyer, complaint, manager, cancel my contract, the bot doesn't answer it. It acknowledges the message and hands off.

One more rule does a lot of work: the bot may only state a price it retrieved from your price list, never one it composed. If your prices live in a spreadsheet or your booking system, the bot looks them up and quotes them verbatim. No lookup result, no number.

Control 2: a price-and-promise blocklist on the way out

The input filter catches the obvious asks. The output filter catches the rest, including the polite customer who never said "discount" and got offered one anyway.

Before any reply is shown, scan it for these patterns.

  • Money: any currency symbol, any number followed by "%", and the words free, no charge, waive, waived, credit, refund, comp, on the house.
  • Promises: guarantee, guaranteed, we'll honor, we can make an exception, I'll ask them to, same day, by tomorrow, no problem, definitely.
  • Invented policy: our policy is, you're entitled to, within 90 days, or any other policy statement that isn't a verbatim quote from your policy page.

If a reply trips a pattern and the number didn't come from a verified lookup, the reply never ships. The customer gets one canned line instead: "I don't want to give you the wrong number on that, so let me get a person. What's the best email or phone for you?" Then it becomes a ticket.

That swap is the whole trick. A blocked reply turns into a lead with contact details attached.

Control 3: a handoff trigger that fires before the customer asks for one

If your bot only hands off when the customer types "agent," it fires too late, because by then they're annoyed. Fire earlier, on any of these:

  1. The output filter blocked a reply (control 2).
  2. Two consecutive turns where the knowledge lookup returned nothing useful, which means the bot is now guessing.
  3. The customer repeats the same question in different words.
  4. Any message containing complaint, legal, safety, injury, or chargeback language.
  5. Any message about an active job or invoice above a threshold you pick, say $2,000, where the cost of a wrong answer is real.

Handoff needs a destination that exists at 9pm. If nobody's watching chat, the bot collects a name, contact details and a one-line summary, writes them to your inbox or CRM with a clear subject, and tells the customer when someone will reply. Then make sure someone does.

A worked example (illustrative, our own arithmetic, not a client)

Take a hypothetical six-van plumbing company. Every number below is invented to show the shape of the math, and none of it is measured from a customer.

Say the site chat handles 500 conversations a month. About 8% of them drift into pricing, policy, or "can you do better on that", call it 40. If the bot invents something wrong in 2% of those, that's just under one bad promise a month, or about ten a year.

Each one costs, generously, $150 in honored discount or unbillable work, plus 20 minutes of the owner's time smoothing it over. That's about $1,500 and three and a half hours a year, before you count the one that turns into a public review. The three controls above are static lists and pattern checks. On an existing bot we'd budget about half a day of build time (price that against your own developer's day rate), and there's no ongoing per-message model cost, because keyword and regex checks run in your code instead of through an API.

It pays for itself with the first incident it prevents, which is why we'd build it before launch rather than after your first screenshot.

The 15 minutes a week that keeps it honest

Log every conversation, every blocked reply, and every handoff. Once a week, read ten transcripts. Pick the longest ones, since that's where things go wrong, and check two things: what got blocked that shouldn't have (add it to your allowed topics), and what slipped through that should have been blocked (add the phrase to the blocklist).

Re-check your price lookup any time you change prices. A guardrail that quotes verbatim from a stale spreadsheet will be confidently and precisely wrong.

None of this is sophisticated: a whitelist, a pattern scan, and a routing rule. Together they keep your bot from promising things you'd then have to pay for.


Want a second pair of eyes on your chatbot before it says something expensive? Book a strategy call. Bring your bot's current instructions and a handful of real transcripts, and we'll tell you which of the three controls you're missing and what it would take to add them.

Get weekly AI wins for small businesses

One useful email a week — practical AI wins, no fluff. Unsubscribe anytime.