Add an AI chatbot to your website
Last checked September 26, 2026
Add an AI chatbot to your website only after wrong answers, prompt injection, and legal ownership of what the bot tells a customer are settled.
A chatbot on your website speaks for the business. Adding one is not a switch that turns support into software. To add an AI chatbot to a website safely, limit it to approved content, assume a visitor can try to override it, and keep a person available. This is not legal advice. The legal example below is one Canadian tribunal decision from 2024. Ask a qualified lawyer what that decision means for your own site and your own country before you publish the bot.
What a modern website chatbot actually is
A language model predicts a likely next word from patterns in its training. It does not look up your refund policy unless you connect it to that policy. The usual way to do that on a business site is retrieval-augmented generation, shortened to RAG. Retrieval means the system searches a set of pages you approved. Generation means the model writes an answer using what that search returned.
RAG is why a bot can sound like it “knows” your shipping rules. It is quoting, or paraphrasing, a document you gave it. If the document is wrong, out of date, or missing, the answer follows that gap. If the search returns nothing useful, the model may still produce a fluent sentence. Fluency is not the same as a source.
This architecture is the one to ask a builder to describe before any work starts. Which pages are in the approved set? What happens when the search finds nothing? Can the bot answer from its general training when your documents are silent? Those are design choices, not a later setting you can ignore.
Wrong answers, and who pays for them
The business owns what the bot tells a customer. That is the lesson of a 2024 decision, not a slogan.
In Moffatt v. Air Canada, 2024 BCCRT 149, decided on February 14, 2024, Air Canada’s website chatbot told a customer that bereavement fares could be claimed retroactively. That was wrong. Air Canada argued it could not be held liable for the chatbot’s information. The Civil Resolution Tribunal called the suggestion that the chatbot was a separate legal entity “a remarkable submission”. It ordered Air Canada to pay CAD 812.02 in total, including CAD 650.88 in damages.
The amounts are the ones in the decision. They are small. The point that travels is the refusal to treat the bot as someone else. The tribunal is in British Columbia, Canada, and other countries may decide differently. Either way, do not publish a bot you are unwilling to stand behind. A lawyer can say how that applies where you operate.
Klarna’s chief executive, as reported by Fortune on May 9, 2025, said it is critical to be clear with customers “that there will be always a human if you want.” That comment came after Klarna’s AI-heavy support approach. The quote is about a human being available. It is not a technical specification.
Prompt injection and data leakage
Prompt injection is an attack, not a bug in one product. A visitor, or a document you retrieved, includes instructions that try to make the model ignore its rules. The bot might be told to reveal a hidden prompt, to ignore the refund policy, or to show data from another user’s session.
OWASP ranks prompt injection as LLM01, the first entry in its 2025 Top 10 for large language model applications. OWASP notes that retrieval-augmented generation and fine-tuning do not fully mitigate prompt injection. Fine-tuning means further training the model on your examples. RAG means searching your documents. Neither one, according to that OWASP entry, closes the hole.
Data leakage is the related harm. A bot that can see order history, inboxes, or internal notes can be pushed to repeat them. If the approved set includes private material, the bot’s search is a path to that material. Keep the approved set to pages and policies you would show a customer on the public site.
Build checklist
OWASP’s prompt-injection guidance supports a short list of practices. They are best practice drawn from that guidance, not statistics about how often each one works.
- Limit answers to approved pages and policies. If the document is silent, the bot should say it does not know, not invent a rule.
- Show a “talk to a person” option, in line with the Klarna chief executive’s statement that a human should be available if the customer wants one.
- Log conversations so a person can review what was said.
- Test against adversarial prompts. Ask the bot to ignore its rules, to reveal its instructions, and to answer from a document that is not in the approved set.
Do this review on a schedule, not once at launch. Policies change. A bot left on last year’s shipping page will state last year’s shipping page with confidence.
A website project can include the page the bot sits on. The bot’s sources, guardrails, and handoff are a separate decision from the visual design, and not every site needs a chatbot at all.
How to measure whether the chatbot is working
There is no reliable published success rate for website chatbots. Measure the behaviors the risks above make important.
Read a sample of the log. Count answers that contradict an approved page. Count answers given when the approved pages did not contain the fact. Count conversations where the person could not reach a human. Those three counts match the Air Canada failure mode, the RAG design, and the human-handoff point. They are not industry benchmarks. They are the questions to put on a review.
If the log shows the bot stating a policy you do not have, stop it until the approved set and the fallback are fixed. A fluent bot that is wrong is the fact pattern in the Air Canada decision.
Key takeaways
- A website chatbot is a language model plus your content, usually through retrieval-augmented generation. Fluency does not mean the answer came from an approved page.
- In a 2024 British Columbia tribunal decision, Air Canada was held to what its chatbot said and was ordered to pay CAD 812.02 in total.
- OWASP lists prompt injection as LLM01 in its 2025 Top 10, and says RAG and fine-tuning do not fully stop it.
- Keep answers on approved pages, offer a person, log the chats, and test prompts that try to override the rules.
Common questions
Is the business liable for what the chatbot says?
In Moffatt v. Air Canada, 2024 BCCRT 149, the tribunal rejected the idea that the chatbot was a separate legal entity and ordered payment of CAD 812.02, including CAD 650.88 in damages. That is one Canadian decision from February 14, 2024. It is not legal advice for every country. Ask a qualified lawyer about your site.
Does retrieval-augmented generation stop prompt injection?
No. OWASP’s 2025 LLM01 entry says techniques such as retrieval-augmented generation and fine-tuning do not fully mitigate prompt injection. RAG limits which documents the model sees. It does not stop a hostile instruction hidden in a question or in a document.
Should customers be able to reach a person?
Yes. Fortune reported on May 9, 2025 that Klarna’s chief executive said customers should be told “that there will be always a human if you want.” Put that option on the bot. Do not make the human path a hidden extra step.
What should we review after launch?
Review the log for answers that contradict an approved page, answers given when no approved page contained the fact, and chats where the person could not reach a human. The sources here do not provide a passing percentage. They do provide the failure modes worth counting.
What to do next
If you want to decide the approved sources, the guardrails, and the handoff to a person before any bot is built, use the contact page or write to hello@jocal.dev. Jocal designs and rebuilds websites. For legal questions about what a bot may say, talk to a lawyer.
Sources
- Civil Resolution Tribunal, February 14, 2024. Moffatt v. Air Canada, 2024 BCCRT 149.
- OWASP GenAI Security Project, 2025 list. LLM01: Prompt Injection.
- Fortune, May 9, 2025. Klarna hiring humans again after an AI-heavy support approach.