Website chatbot

An AI chatbot for your website, added with one line of code

CustomerBot is an AI chatbot for websites. You train it on your own pages, PDFs, notes and Q&A pairs, and it answers visitors’ questions from that content in a chat widget on your site. Adding the widget works the same way on every platform: one script tag.

Last reviewed

How the widget is added

html
<script src="https://customerbot.co/script.js" data-bot-id="YOUR_BOT_ID"></script>

When you create an assistant, the dashboard gives you this tag with your own bot ID in place of YOUR_BOT_ID. Paste it into the part of your site that loads on every page, which is usually a site-wide footer or custom-code setting, just before the closing body tag. The chat runs in its own frame, so your site’s styles and scripts do not interfere with it, and removing it means deleting one line.

Three settings control where it appears. Allowed domains limit which sites can load your assistant, so nobody can copy the tag onto theirs. Blocked paths keep it off pages where it would get in the way, such as checkout or an account area. And you can switch it off below a screen width you choose, if a chat launcher crowds your mobile layout. Colours, position, size, the welcome message and suggested questions are set in the dashboard rather than in the code, so changing them never means editing your site again.

Train it before you install it. The assistant is only as good as the content behind it, so start with how to train a chatbot on your website and, if your answers live in documents, the PDF chatbot guide. If you are still deciding whether an AI assistant is right for your support at all, read our guide to AI chatbots for customer support first.

Step-by-step guides by platform

Each guide shows exactly where the tag goes, what to train on and what to check if the widget does not appear.

The guide to AI chatbots for customer support

How retrieval-based assistants work, what to automate and what to hand to a person, a 30-day rollout, the metrics worth tracking and how pricing works.

Read the guide

Train it on your site, then paste one line

The Free plan is enough to crawl your pages, test the answers and put the widget on your site before you pay anything.

Ask CustomerBotAnswers from our product docs