An AI chatbot for your website has two parts. The chat window is the visible one, and the easier one to add. The knowledge layer behind it decides which pages the chatbot may read and what each person may see in an answer. Most of the work of making a chatbot safe to publish sits in that layer, including what happens when a page is withdrawn.

That split matters to a buyer because the two parts can come from different places. An organisation that already runs an assistant, in Microsoft Copilot Studio or elsewhere, can keep it as the channel and put a governed knowledge layer behind it. The same layer can also answer the site search box, a staff knowledge base and the help text inside an online form, so the decision about what is eligible gets made once.

How do you add an AI chatbot to your website?

You add an AI chatbot to a website by placing a chat component on the page and connecting it to a source of answers. Microsoft's Copilot Studio, for example, can publish an agent to a live website for production use such as a customer help agent, and Microsoft says the demo website it creates is not intended for production.

The connection to a source of answers is the part to slow down on. A chatbot that answers from your content retrieves pages when the question arrives and writes a reply from them, so its answers are only as current as the set of pages it is allowed to retrieve from, and which content belongs in that set is the subject of our piece on what a RAG system should never be allowed to read.

When the chat window and the knowledge layer arrive as one product, ask for the knowledge layer to be described on its own. It is the part your information governance lead will be asked to sign off.

Can we keep Copilot Studio and govern what it reads?

An organisation that already uses Microsoft Copilot Studio can keep it as the chat channel and decide separately what content sits behind it. Microsoft's knowledge sources documentation lists five supported types: public websites, documents uploaded to Dataverse, SharePoint, Dataverse, and enterprise data through connectors indexed by Microsoft Search.

Those types handle access differently. Public websites and uploaded documents need no user authentication. SharePoint, Dataverse and connector sources authenticate as the person asking through Microsoft Entra ID, and Microsoft says the agent then surfaces only content that specific user can access.

A public website source works through a search engine. Microsoft's page on adding a public website says the agent sends a query to Bing and relies on Bing's indexed content, and that pages needing authentication or not indexed by Bing are not supported. The chatbot's view of your own site then depends on a search engine's index of it, which you do not control. A separate setting, Use information from the web, searches all public websites indexed by Bing when it is switched on and interleaves those results with your configured public website sources.

Where content is not in a supported source, Microsoft documents a way to provide your own data through Power Automate flows or HTTP requests. That is the documented point at which another knowledge layer can supply the content while Copilot Studio stays the channel.

One knowledge base behind every place people ask

A member of the public types a whole question into the site search box or gets stuck halfway through an application form, and a member of staff asks the intranet how to handle the same case an hour later.

If each of those runs on its own copy of the content, each needs its own rules for withdrawn pages and permissions, and they drift apart. Site search, chat, a staff knowledge base and guidance embedded in a form can all run from one governed knowledge base instead, so a page withdrawn once leaves all four.

A staff knowledge base is where permissions matter most. Staff need internal procedures the public must never see, so the access rules have to apply before content is retrieved rather than as a filter on the finished answer. An internal AI knowledge base also gives staff a sanctioned alternative to pasting work into public tools, which is the response we recommend for shadow AI.

What happens when someone asks a follow-up question?

A chatbot can answer a follow-up question without looking anything up. The model has the earlier turns in front of it, so it can reply from conversation history instead of going back to the source.

Microsoft documents this case in Copilot Studio. Its Allow ungrounded responses setting, when switched off, blocks any response in a turn where the agent used no knowledge source or tool. Microsoft's own example is a customer asking about the returns policy and then asking "Does that apply to sale items too?", which the agent might answer from the previous turn, so that response is blocked. Microsoft also says switching the setting off does not guarantee the agent never uses general knowledge.

For that reason, each turn should either retrieve and cite its source, or say plainly that it is relying on what was said earlier. Grounding and citations reduce invented answers without removing them, which our piece on AI hallucinations in search answers explains.

Do the accessibility rules apply to a website chatbot?

The accessibility rules apply to a chat window as they apply to any other part of a public sector body's website. The Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 cover the websites and apps of public sector bodies, with exceptions that include public service broadcasters, non-governmental organisations unless they provide essential public or disability services, and schools and nurseries outside their essential online administrative functions.

Under regulation 9, a site is presumed to conform to the extent it meets WCAG Level A and AA success criteria. GOV.UK guidance tells public sector bodies to meet WCAG 2.2 AA, and says public sector intranets and extranets need to be accessible too, which brings a staff knowledge base into scope. The same guidance notes that all UK service providers must make reasonable adjustments under the Equality Act 2010, or the Disability Discrimination Act 1995 in Northern Ireland, so a museum run as a charity or a membership body outside the regulations still has a duty.

WCAG 2.2, a W3C Recommendation dated 12 December 2024, has criteria that land directly on a chat panel.

WCAG 2.2 criterion Level What it means for a chat window
3.2.6 Consistent Help A, new in 2.2 Help mechanisms repeated across pages, including "a fully automated contact mechanism", appear in the same relative order. W3C's Understanding document gives a chatbot as the example.
4.1.3 Status Messages AA Messages such as "Searching..." or "No answer found" reach assistive technology without moving focus. W3C's own example treats a list of search results as content rather than a status message.
2.4.11 Focus Not Obscured (Minimum) AA, new in 2.2 A floating chat panel must not entirely hide the page element that has keyboard focus.
2.1.1 Keyboard A Opening, using and closing the chat works from a keyboard alone.

Ask for keyboard and screen reader testing on the chat component itself, because a panel injected by script after the page loads is easy to miss in a page-level audit.

Who pays when the chatbot is abused?

The cost of abuse on a website chatbot falls on whoever pays for each request the model answers. A public chat endpoint accepts free text from anyone, including automated traffic, and OWASP's LLM10:2025 Unbounded Consumption describes attackers using high volumes of requests to exploit the cost-per-use model of cloud AI services, which it calls denial of wallet. Our piece on what bot traffic costs you sets out the controls.

Prompt injection is the other risk on a public endpoint. OWASP lists it as LLM01:2025 Prompt Injection, where user prompts alter a model's output in unintended ways. It separates direct injection, typed into the chat box, from indirect injection carried in external content such as websites or files, which matters for a chatbot that reads web pages. OWASP says retrieval augmented generation does not fully mitigate prompt injection, and that it is unclear whether fool-proof prevention exists.

OWASP's own example is an attacker telling a customer support chatbot to ignore its previous guidelines, query private data stores and send emails. Least privilege is among OWASP's listed mitigations, and for a website chatbot it is the one we would put first: a chatbot that can read only approved content and cannot take actions has less to give away when it is manipulated.

The pricing model decides who carries the cost of abuse that gets through. With per-token or per-request pricing, a flood of long prompts lands on your invoice. A fixed fee with an agreed usage envelope moves the question to what happens when traffic reaches the edge of that envelope, and who is told.

What to ask a supplier about an AI chatbot for your website

Ask for written answers to these. Where the model runs, and who can reach the prompts, is a separate set of questions covered in our piece on sovereign AI.

Ask A strong answer A weak answer
What may the chatbot read, and who decides? A named list of sources and document types, an owner in your organisation who approves additions, and archived or withdrawn content excluded at indexing "It learns from your whole website"
How do staff permissions differ from public ones? Access rules applied before retrieval, shown by asking as a public user for a staff-only document "Answers are filtered before they are shown"
How long does a withdrawn page take to leave answers? A stated time, covering search, chat and the staff knowledge base "At the next scheduled reindex"
How are follow-up questions grounded? Each turn retrieves and cites, or says it is relying on earlier turns "The model remembers the conversation"
How was the chat interface tested for accessibility? Keyboard and screen reader testing of the chat component against WCAG 2.2 AA, with results shared "Our widget is accessible", with no test evidence
Who pays for abuse? Bot filtering before requests reach a model, rate limits, a usage ceiling, and a worst case you know in advance Per-token pricing with no cap and nobody named who can switch it off
What do we keep if we leave? Content, configuration and stored questions and answers returned in a named open format, with deletion confirmed "Exports are available on request"

How Axistwelve Semantic Search sits behind a chatbot

Axistwelve Semantic Search is one governed knowledge base with four ways in: the site search box, a conversational assistant, a staff knowledge base with its own permissions, and guidance embedded in an existing service, form or portal. Where an organisation already has an assistant, such as one built in Microsoft Copilot Studio, it can sit behind it as the layer that decides what the assistant may read. Permissions resolve before retrieval, so staff can see material the public cannot, and withdrawing a page reaches generated answers and the staff knowledge base within minutes. Content gets in by feed, API or crawl, whichever CMS produced it. The interface is built to WCAG 2.2 AA and tested with a screen reader before handover, with the generated answer in a labelled region that can be skipped. It runs within an agreed usage envelope with bot filtering at the edge before requests reach a model, priced as a fixed managed service fee set by content estate size and expected volume rather than per token or per seat.

Before you choose an AI chatbot for your website

Write down the content the chatbot may read and name the person who approves changes to that list. Then decide who can switch the chatbot off, and check before launch that they actually can. If you are a council, our piece on what needs to be in place before using AI for citizen services covers readiness more broadly.

To see how your own content would behave behind an AI chatbot for your website or a search box, send us a web address. We index a sample and return a searchable link within five working days, with no call required, and delete the sample index within 30 days unless you ask us to keep it. Our architecture and security pack is available on request through our contact page.

Frequently asked questions

An AI chatbot does not have to replace site search, and the two are easier to govern on the same knowledge base. A reader looking for a specific form or document is often better served by a list of results than by a conversation. Our piece on semantic search covers the search side.

Is a chatbot bought from a supplier exempt as third-party content?

A chatbot a public sector body has paid for, developed or controls does not meet the third-party content exemption as written. Regulation 4(2)(e) exempts third-party content only where it is neither funded nor developed by, nor under the control of, the public sector body, and GOV.UK's example is social media "like" buttons. The regulations do not mention chatbots, so this is an application of that test rather than a stated rule.

Does WCAG require a chatbot to hand over to a person?

WCAG 2.2 has no success criterion requiring a chatbot to hand over to a human. W3C's Understanding document for Consistent Help suggests chatbots can work for many people, particularly people with cognitive disabilities, if they recognise misspelled words, give human contact details after three unsuccessful attempts, and can be dismissed with one interaction and recalled with a link or button. The guidance is advisory, and it makes a sensible acceptance test.