custom ai agentai agent safetysmall business aiai customer service

Your AI Agent's Words Are Your Words: Build the Agent That Can't Promise What You Can't Honour

· AgenticLabs India

A chatbot invented a refund policy and the airline paid for it. The advantage of a custom AI agent is not cleverness — it is control: decide in code what your agent may say, commit to, and touch, before it ever talks to a customer.

The refund your AI chatbot invented

In November 2022, a man in Canada asked his airline's website chatbot about bereavement fares. His grandmother had just died; he needed to fly to Toronto. The chatbot told him to buy a full-price ticket and claim the reduced bereavement rate within 90 days. He did exactly that. When he applied for the refund, the airline refused: its policy did not allow bereavement fares to be claimed after travel. The chatbot had invented the policy.

In February 2024, British Columbia's Civil Resolution Tribunal ruled in Moffatt v. Air Canada, 2024 BCCRT 149, that the airline was liable for negligent misrepresentation and ordered it to pay CA$812.02. Air Canada had argued it could not be held liable for information provided by its agents, servants, or representatives — including a chatbot.

The tribunal's answer, in paragraph 27 of the decision, is the sentence this whole post hangs on:

"It should be obvious to Air Canada that it is responsible for all the information on its website. It makes no difference whether the information comes from a static page or a chatbot."

Kaizo quotes the sentence verbatim and gives the CA$812.02 total; the tribunal decision itself is the primary source; Legal500 corroborates the liability holding and the CA$650.88 in damages.

The amount is small. The principle is not. Your customer does not distinguish between your website, your chatbot, and your AI agent. If it speaks in your business's name, its words are your words — including the ones nobody on your team would ever have said. This is a Canadian tribunal decision, not Indian law: no India-specific chatbot-liability ruling was found while researching this post, so nothing here claims an Indian equivalent. But the business logic travels without a court: a customer who acts on your agent's invented price, discount, delivery date, or health claim will come back to you, not to the model.

That is the real question behind buying a custom AI agent. Not "how clever can it be?" but "what can it promise — and who stops it promising the rest?" This post serves the Custom AI Agent Development solution, and its answer is a build order: decide the agent's limits first, enforce them in code, and only then let it talk to a customer.

Why a custom agent is different from a chatbot

A generic chatbot answers from whatever it was given: a product catalogue, a few policy pages, and its own training. It is fast, it is confident, and when it does not know something it fills the gap. That is the whole problem. A custom-built agent is different in one specific way: you own the rules it cannot break. The difference is not the model — the same models sit behind both. The difference is the harness around the model, and the harness is where the business value lives.

Four things change when the agent is yours:

  • You choose its knowledge. It answers only from sources you approved — your price list, your policies, your research library — and says "not covered" when nothing supports an answer, instead of inventing one.
  • You choose its tools. It can look up an order or a subscription, but it has no tool that refunds money, changes a price, or sends a message to a customer on its own.
  • You choose its limits in code, not in a prompt. The rules live in the server and in the permission system, so a determined customer cannot talk the agent out of them.
  • You keep the record. Every answer, with the sources it used and the tools it ran, is stored — so when a customer disputes a promise, you can show exactly what was said, from which policy, by which version of the agent.

None of this is theory. Two small firms built exactly this in the last two months, on the same building blocks, and published what happened. The next section is their deployments; the section after is the build order distilled from them.

What two small firms built with AI agents

The two deployments could hardly be more different — one is an internal team of agents that never talks to a customer, the other is a customer-facing agent for a supplement brand — and they converge on the same design. That convergence is the evidence.

Owlab: five agents, none of which talks to a customer

Owlab, a 15-person agency, runs five AI agents built on Anthropic's Claude Agent SDK, each owning one lane of the business: sales, customer success, finance, operations, and reviews. Each agent wakes up on its own schedule, reads its systems — Pipedrive, Gmail, Google Calendar, Jira, Slack (read-only), Fireflies — and speaks only when there is something worth saying. None of the five has a tool that sends a message to a client. They prepare the text; a person reads it and sends it. Each agent sees only its own tools: finance data is hidden from every other agent, and a lane lock in code stops one agent from closing another agent's tasks. Every tool call passes a permission gate first.

Owlab reports that, from 1 October to 12 November 2026, the agents woke up on their own 2,985 times and wrote to the founder 1,486 times, created 249 follow-up tasks in Pipedrive, and the permission gate blocked 89 tool calls that were not allowed. Those figures are Owlab's own self-report. What is independently verifiable is the mechanism: Anthropic's permissions documentation shows every tool call evaluated through up to six steps — hooks, deny rules, ask rules, permission mode, allow rules, and the canUseTool callback — each able to decide the call, with a hook deny applying even in bypassPermissions mode.

Ruby Digital: one agent, answering customers from approved knowledge

Ruby Digital built the customer-facing version for a science-led supplement brand selling on Shopify. The brand's problem was sharper than most: a supplement brand answers for every health claim its agent makes, and a customer who mentions a reaction in a chat window may be making a report the brand is legally obliged to pass on. So the agent was designed around control and proof before anything else. It answers from the brand's own approved knowledge, including a library of peer-reviewed research, and shows numbered sources — about nine in ten of its knowledge answers on the site showed their sources, according to Ruby Digital. Ruby Digital does not state what the remaining answers were. Prices come only from the live store; health claims are checked before an answer leaves; money moves only by a person; anything that sounds like a reaction goes straight to a person with a fixed reply the brand approved. It ran in shadow mode for five days before it was allowed to send a single email.

In its first 12 days of sending its own replies, Ruby Digital reports, it replied to every customer email it received, at a median of about six minutes, at any hour; about four in ten conversations were answered in full, and about one in six needed nobody on the team at all. Those figures are Ruby Digital's own self-report. The before-and-after is the useful part: the old chat app's bot answered 45% of emails within a minute but could not see orders, cite research, or keep to rules; the new agent is slower to full resolution and honest about it — about three in four conversations still went to a person. The gain is an acknowledgement within minutes and a summary for the team, not fewer people.

Owlab — internal agentsRuby Digital — customer-facing agent
Business15-person agencySmall supplement brand on Shopify
AgentsFive, one per laneOne, on chat and email
Talks to customers?Never — a person sends everythingYes — chat and email, from approved knowledge
What the gate blocksCalls that were not allowed (89 in six weeks)Prices not from the live store, health claims, money movement
Human approvalEvery client message drafted, never sentRefunds, reactions, and claims go to a person
RehearsalDeploys run tests on the server, restart only on greenFive days of shadow mode before the first email
Result249 follow-up tasks in six weeksEvery email answered, median ~6 minutes

Read the table as one design, twice: the limits are decided first, enforced by the system rather than by the model's good behaviour, and a person keeps the final yes on anything that costs money or makes a claim. The rest of this post turns that design into a build you can hand to whoever builds your agent.

The four controls for your AI agent, in build order

The order matters. Each control is cheaper to add than the one after it, and each one assumes the previous one exists. Build them in this order; do not skip ahead to the clever part.

Control 1: approved sources only

Write down, in one document, everything the agent is allowed to answer from: the live price list, the product pages, the policies, the research library. Everything else is out of reach. When a customer asks something nothing in the list supports, the agent says the question is not covered and offers a person — it does not fill the gap. Ruby Digital's agent does exactly this, and the discipline is visible in its numbers: about nine in ten of its knowledge answers on the site showed their sources.

This is the control an earlier post on this blog, Grounded AI Answers, covers with a 30-question trust test. This post does not repeat that test; it takes grounding as the first control and adds the three that make it stick.

Control 2: rules enforced in code, not in a prompt

Every AI agent has instructions, and instructions are useful: they explain to the model what the brand wants. But instructions are also what a determined customer tries to talk around, and an email can contain anything, including text written to trick a model. So for anything that matters, the instructions only explain the rule. The server enforces it, after the model has written its answer and before anything reaches the customer. Whatever the agent is talked into, the change must still be impossible.

The Claude Agent SDK gives you the mechanism for this: permissions that decide which tools run automatically and which need approval, hooks that run your code when a tool is called, and deny rules that apply even in bypassPermissions mode, as Anthropic's documentation and the permissions reference describe. Owlab learned the same lesson the hard way: an SDK update silently stopped calling their permission check, so they moved the gate into a pre-tool hook and proved it on the live SDK. The gate is not a setting you trust; it is a check you test.

Control 3: a human yes for money and claims

The agent has no tool that refunds, credits, discounts, or touches payment details. A refund is prepared for a person to approve. A health claim is checked before an answer leaves. A reaction — a customer saying a product made them unwell — goes straight to a person with a fixed reply the brand approved, because that message may be a report the business is obliged to pass on. In Owlab's design the same rule is stricter still: no agent has a tool that sends a message to a client at all.

This control is the one that saves you from the Air Canada sentence. The chatbot's invented refund policy was a promise about money, made by a system with no one checking it. A human yes on money and claims is not a bottleneck; it is the point where your business takes responsibility for its own words.

Control 4: a record of every answer

Keep the seven records Kaizo lists for every AI agent conversation:

  • The full transcript with timestamps and the channel
  • The agent version in force that day
  • The content version it could use
  • The tool calls and what they returned
  • The AI disclosure the customer saw
  • The review record
  • The fix log

The reason is the Air Canada case itself: the customer filed a screenshot of the chatbot's answer, and the airline had no evidence of its own — it had not filed the tariff it relied on, and it offered no evidence of the real bereavement fare, so the tribunal used the customer's figure. When a customer disputes an AI promise, the side with the transcript, the policy version, and the agent version in force that day has the stronger position.

The build: a supplement store's chat-and-email agent

The build below is modelled directly on Ruby Digital's deployment: an online supplement store's support agent answering chat and email. The store is the shape of the build, not a real business — the example values are labelled as examples, and you replace them with your own products, prices, and policies. There is no WhatsApp step and no ayurvedic claim in this build, because neither appears in the sources it is modelled on. Work through the five steps in order; each one states the action and the expected result.

Step 1: write the approved-knowledge list

Open a document and call it Approved knowledge — LIVE. Four sections, nothing else: what the agent may quote, what it may look up, what it must never say, and what goes to a person. The example below is the shape; your rows are your own products and policies.

text
APPROVED KNOWLEDGE — LIVE (example rows, replace with your own)
Last reviewed: 25 November 2026

MAY QUOTE (with a numbered source shown to the customer)
- Product pages and the research library behind them
- Delivery and returns policies, as written on the store
- Prices — only the figure the live store returns at that moment

MAY LOOK UP (for a verified customer only)
- Order status and delivery tracking
- Subscription details and next delivery date

MUST NEVER SAY
- Any health claim ("will help with", "cures", "safe with your medicine")
- Any price not returned by the live store, including per-day or per-bottle workings
- Any price that is not public

GOES TO A PERSON, ALWAYS
- Anything that sounds like a reaction to a product
- Refunds, credits, discounts, cancellations
- Any question nothing in this list covers

Expected result: one document, one owner, one review date. If a question arrives that the list does not cover, the agent's answer is "not covered — let me get a person", and that is a correct answer.

Step 2: write the agent's starter prompt

This is the actual prompt to paste into your agent's instructions. It is short on purpose: the prompt explains the rules; the code in step 3 enforces them. Replace the bracketed values with your own.

text
You are the support agent for [your store name], an online supplement
store. You answer customer questions on the website chat and by email.

RULES
1. Answer ONLY from the Approved Knowledge document. Show a numbered
   source for every point you make from it.
2. If nothing in Approved Knowledge supports an answer, say the question
   is not covered and offer a person. Never fill the gap.
3. Prices come ONLY from the live store. Quote the figure it returns,
   exactly. Never work out per-day or per-bottle prices. Never quote a
   price that is not public.
4. NEVER make a health claim. Do not say a product will help with a
   condition, is safe with a medicine, or cures anything.
5. If a customer mentions a reaction to a product, reply ONLY with the
   approved fixed reply: "Thank you for telling us. I am passing this
   to our team now, and someone will contact you directly." Then hand
   the conversation to a person.
6. You cannot refund, credit, discount, or cancel anything. Prepare the
   details for a person to approve.
7. Be brief. One question, one answer, sources shown.

Expected result: a prompt any builder can paste in as-is. Notice what it does not contain: no pricing, no promises, no claims — only boundaries.

Step 3: hand your builder the lock-down, then try to break it

This is the step a generic chatbot cannot do, and it is the one step you do not do yourself — you hand it to whoever builds your agent, with the snippet below and the test at the end. The snippet is the locked-down pairing from Anthropic's permissions documentation: an allow-list of read-only tools plus dontAsk mode, so anything not on the list is denied rather than approved. It goes in the agent's configuration, where the agent is created — your builder will know the file; your job is to insist the pairing is in it, and to see the test pass.

typescript
// Locked-down agent: read-only tools, everything else denied.
// From Anthropic's Claude Agent SDK permissions documentation.
// Your builder replaces Read/Glob/Grep with your own read tools:
// look up an order, read the live store price, search approved knowledge.
const options = {
  allowedTools: ["Read", "Glob", "Grep"],
  permissionMode: "dontAsk",
};

Tell your builder the rest in plain words: the allow-list is your own read tools only, and the deny-list is everything else — no refund tool, no payment tool, no send-to-customer tool. Ask for a pre-tool hook as well: a check that runs on every tool call before it executes, the way Owlab added one after an SDK update silently stopped calling their permission check. The hook is the gate, and you prove it works by trying to break it before launch, not by trusting the setting.

Expected result: sit with your builder and try to get the agent to refund, discount, or quote an unlisted price. Every attempt is denied by the system, not by the model's politeness. If any attempt succeeds, the agent does not go live.

Step 4: run five days of shadow mode

Before the agent sends a single email, run it in shadow mode for five days — the same length Ruby Digital used. Every incoming message gets two replies drafted: the agent's, and a person's. The person sends theirs; the agent's is filed for review. At the end of each day, score the agent's drafts against the four controls: did it answer only from approved knowledge, did it show sources, did it refuse what it should refuse, did it hand over what it should hand over?

Ruby Digital's shadow week caught the difference between a refusal and a failure: all five holds were right, including a price the agent refused to repeat because the store had not supplied it. The first test of the shadow setup did find a real defect, though: in a test conversation describing a reaction, the agent's chat reply was missing the approved safety advice, because words written before a tool call were being dropped. Ruby Digital fixed the order in its instructions and added a code guard that inserts the safety paragraph whenever a reaction is flagged and the reply lacks it.

Expected result: five days of scored drafts, and a written list of every failure found and fixed. If the agent fails a control in shadow mode, it does not go live — the shadow week is the launch gate, not a formality.

Step 5: switch on chat and email, and keep the record

Switch the agent on for the website chat and the support mailbox, from one queue, the way Ruby Digital did: chat and email arrive together, sorted into what needs a person, what the agent answered, and what is done. Anyone on the team can take a conversation over, and taking over stops the agent replying in it. Every answer the agent gives is stored with the sources it used and the tools it ran, and every answer can be marked good, corrected, or flagged — a correction becomes a team answer the agent uses on the very next question.

Expected result: the first fortnight looks like Ruby Digital's first 12 days — every message answered quickly, most of them still needing a person, and the team spending its time on the conversations that matter instead of the ones the agent already handled.

What your AI agent still hands to a person — and the record that proves it

The build above does not remove people from customer service. It moves them to the conversations where a person is the product. Four kinds of conversation always go to a person, and the record exists so you can prove what happened in each one:

  • Reactions: a customer who says a product made them unwell gets the fixed approved reply and a person, immediately. The record shows the message arrived, the fixed reply went out, and the handover happened.
  • Money: refunds, credits, discounts, cancellations. The agent prepares; a person approves. The record shows who approved, and when.
  • Claims: any health claim, any promise about what a product will do. The agent never makes one; if a customer asks, a person answers from the research library. The record shows the claim was checked before the answer left.
  • Anything uncovered: a question nothing in the approved knowledge supports is not a failure — it is the agent working correctly. The record shows it was handed over, not invented around.

And when something does go wrong — because something eventually will — the operating rule from Kaizo is three words:

Honor, correct, review.

Honor the promise when a customer reasonably relied on it and the cost is proportionate. Correct it with every other customer who got the same answer, before they act. Review the cause and confirm the fix on new conversations. Fighting a single small claim usually costs more than it saves — Air Canada learned that for CA$812.02, and the lesson was cheap at the price.

The handover checklist for your AI agent

If you hire someone to build your agent, hand them this list. It is the whole post in one page — the four controls, in build order, with the evidence behind each one.

  1. Approved sources only. One document, one owner, one review date. The agent answers from it and says "not covered" for everything else.
  2. Rules in code. Permissions, hooks, and deny rules enforce the limits; the prompt only explains them. Prove the gate works by trying to break it before launch.
  3. A human yes for money and claims. No refund tool, no payment tool, no send-to-customer tool. Refunds are prepared for a person; reactions get the fixed reply and a person.
  4. A record of every answer. Transcript, agent version, content version, tool calls, review record. If a customer disputes a promise, you can show exactly what was said.
  5. Five days of shadow mode. Drafts scored against the four controls before the first live email. Failures found in shadow mode are fixed, not shipped.
  6. One lane per agent. If you add a second agent, it gets its own tools and its own lane — Owlab's five agents each see only their own systems, and a lane lock in code stops one closing another's tasks.

A chatbot that can say anything is a liability you have not priced. A custom agent that can only say what you approved is a worker you can stand behind. The difference between them is not the model. It is the four controls above, built in order, before the agent ever talks to a customer.

Questions, answered

In the one decided case most people cite — Moffatt v. Air Canada, 2024 BCCRT 149 — yes: the tribunal treated the chatbot as part of the airline's website and held the airline liable for negligent misrepresentation. But that is a Canadian small-claims tribunal decision; it binds no court elsewhere, and no India-specific chatbot-liability ruling was found while researching this post. Treat the case as the reasoning, not the law: a business answers for the information its channels give customers, whichever system gives it. For your own market and contracts, ask a lawyer.

Ready to leave the mundane work to AI?

Book a free consultation. We'll show you which of your workflows AI can take over first.