How to add an AI chatbot to your website

6 min read · updated August 10, 2026

Adding an AI chatbot takes minutes. Making it answer correctly takes preparation. This covers what to check before you install anything, how installation actually works, and the three failure modes that make businesses take chatbots back down.

Check your content before you check vendors

An AI chatbot answers from source material. If your pricing lives in a PDF, your policies are three sentences long, and your product pages are mostly imagery, every chatbot you try will be vague — because there is nothing specific to be accurate about.

Before evaluating tools, read your own site as a stranger. Can you find what a product costs, how returns work, and how to reach a person? If not, fix that first; it improves your conversion rate whether or not you ever install a chatbot.

Decide what it is allowed to do

The single biggest quality decision is scope. A chatbot that answers questions from published content is a well-defined, low-risk system. A chatbot wired into your order system can act on a customer's account, which is a different category of project.

Start with the first. Write down explicitly what is out of scope — account-specific queries, medical or legal advice, anything requiring judgement — and make sure the tool you pick will hand those to a human rather than attempt them.

Install it

Modern chatbots install with a single script tag before the closing body tag. The script should load asynchronously, render inside an iframe or shadow root so it cannot collide with your CSS, and add no meaningful weight to your page.

  1. Train the chatbot on your website by giving it your URL.
  2. Review the answers it gives to your five most common questions.
  3. Copy the embed snippet and paste it before </body> in your site template.
  4. Load a page and confirm the launcher appears and answers correctly.
  5. Configure where it hands over to a human — email, booking link, or phone.

The three ways this goes wrong

It invents answers. If a chatbot will not say "I don't know", it will eventually tell a customer something untrue about your refund policy. Test this deliberately: ask something your site does not cover and see what happens.

It goes stale. Content changes and the chatbot keeps quoting last quarter's pricing. Whatever you install needs a re-crawl you will actually run, ideally on a schedule.

It has no exit. A customer who needs a person and cannot find one is more annoyed than if the chatbot had never existed. The handover route should be one click, always visible.

Questions

How long does it take?
Training on a small site takes a minute or two, and installation is one script tag. The part worth spending time on is reviewing the answers before you make it public.
Will it slow my site down?
It shouldn't. A well-built widget loads asynchronously and defers the chat interface until a visitor opens it, so the launcher is the only thing on the critical path.

Related

tool

Website chatbot readiness check

Before adding a chatbot, check whether your site can actually feed one. This reads your pages and reports whether there is enough substantive, machine-readable content for a chatbot to answer from.

tool

Website chatbot generator

Reads your website and generates a complete chatbot configuration — name, greeting, suggested questions, and sample answers with the pages they came from — so you can see exactly how a chatbot would sound before installing anything.

term

What is a website chatbot?

The term covers two very different things. Older chatbots follow scripts and break the moment a visitor phrases something unexpectedly. Modern ones retrieve from a business's own content and generate an answer, which handles arbitrary phrasing.

use case

FAQ automation that uses your real pages

A static FAQ page ages badly and never quite matches how people phrase things. Reading your whole site instead means the answer to a question can come from wherever it genuinely lives — a policy page, a product spec, a help article.

industry

AI customer support for ecommerce stores

Most ecommerce support is four questions wearing different hats: where is it, when will it arrive, can I return it, and will it fit. RubyRep reads your product pages and policies and answers them at the moment of hesitation, which is the moment the sale is won or lost.

term

What is a website chatbot?

The term covers two very different things. Older chatbots follow scripts and break the moment a visitor phrases something unexpectedly. Modern ones retrieve from a business's own content and generate an answer, which handles arbitrary phrasing.

Want to skip to the working version?

RubyRep does everything in this guide from a single URL — reads your site, builds the knowledge, and gives you one line of code to install.

Train My RubyRep