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
<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.
Shopify
One line in theme.liquid covers every page of the store, with no app to install and no permissions to grant. It answers shoppers from your product, shipping and returns pages.
Read the guideWordPress
Three ways to install without another plugin: a footer script field, a functions.php snippet, or a single page. Trained on your own posts, pages and PDFs.
Read the guideWebflow
One line of site-wide footer custom code, then a widget you colour-match to your style guide. It answers from your pages and CMS content.
Read the guideWix
Paste the tag into Settings → Custom Code, applied to all pages. How it differs from Wix’s own chat tools, and what to check when the widget does not appear.
Read the guideSquarespace
One line in Code Injection, which needs a Business plan or higher, with a per-page Code Block alternative if you are on a Personal plan.
Read the guideReact and Next.js
One script tag, or a fifteen-line component when loading depends on a route or a signed-in user. Nothing is added to your bundle, and it is safe in Strict Mode and the App Router.
Read the guideFree plan
1 assistant, 50 conversations a month, 5 MB of training and 7-day history, with no credit card. The limits are written out before you sign up.
Read the guideSomething else?
Hand-written HTML and any site builder that lets you add custom code to every page work the same way: paste the tag before the closing body tag and publish.
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.
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.