Adding a chatbot to your website with Chatbu comes down to pasting a single line of embed code into your site: you copy the code and add it to the theme or code injection area in WordPress, the Custom Code section in Wix, or right before the closing body tag in your theme file in Shopify. Adding the code takes a few minutes; training the bot on your own content takes a bit more time. Below, you'll find the steps for all three platforms and a post-setup checklist.
If you're new to chatbots, start with our post on what a chatbot is and how it works.
Why add a chatbot to your website?
The question on a website visitor's mind is often answered somewhere on the page, but they don't have the patience to find it. A visitor looking for pricing, delivery times, or business hours who can't find them will simply close the site. A website chatbot catches that moment:
- It answers the visitor's question instantly using information from your site. It works 24/7, including outside business hours. It collects contact details in the chat from visitors who want a quote or an appointment. Through chat history, it shows you what visitors can't find on your site.
We cover these benefits in detail in our guide to the benefits of a website chatbot.
Is 5 minutes realistic?
For adding the code to your site, yes. Copying the embed code and pasting it into the right spot takes just a few minutes if you know your way around your site's dashboard. But what makes a chatbot genuinely useful to your customers is its content. According to Chatbu's How It Works page, most teams complete the initial setup and data import in under 45 minutes. The same page recommends a flow of setup and data import on day one, branding and conversation settings on day two, and going live and fine-tuning on day three. In other words, you can add the code today and refine the bot over the next few days.
A practical tip: finish basic training before adding the bot to your site. The first bot a visitor encounters shouldn't be a window that can't answer a single question.
Prep before you start
- Chatbu account: Start the 14-day free trial at chatbu.io; no payment details required.
- Basic training: Before going live, add at least your main pages and frequently asked questions to the bot.
- Embed code: Copy the embed code generated for your bot in the Chatbu dashboard.
- Site access: Make sure you can log in to your site's admin panel with an account that has permission to add code.
- Backup: If you'll be touching the theme file, back up your site or theme first.
Adding a chatbot to your website with Chatbu: steps by platform
According to Chatbu's features and FAQ pages, the embed code works with WordPress, Webflow, Shopify, or hand-coded HTML sites; the bot can also be used as a full-page chat interface. You can also see the overall flow on the setup steps page. To make the code appear on every page, it's generally recommended to add it at the end of the page, right before the closing body tag.
WordPress chatbot setup
There are two common ways to add the code in WordPress:
- With a code injection plugin: Install a plugin that lets you add code to your site's header and footer, paste the Chatbu embed code into the footer area, and save. Because it isn't affected by theme updates, this is the safest route for most users.
- With the theme file: If you use a child theme, add the code in the footer file before the closing body tag. If you edit the parent theme's file directly, the code may be wiped out by a theme update.
On sites hosted on WordPress.com, permission to install plugins and add code may vary depending on your plan; check this beforehand. The phrase "WordPress chatbot plugin," which comes up often in searches, doesn't refer to a separate chatbot plugin here; it simply means any method that lets you add the embed code.
Wix chatbot setup
Chatbu's pages don't mention Wix specifically, but the custom code feature described in Wix's own help documentation is what's used to add this kind of embed code. According to Wix's help page:
- Your site must be published and have a connected domain.
- In your site dashboard, go to Settings and open Custom Code under Development and integrations.
- Add new code and paste the Chatbu embed code.
- Apply the code to "All pages" and select "Body - end" as the placement.
- Save and check your site at its live address.
Because the Wix interface changes from time to time, menu names may look different. If you run into trouble during setup, we recommend reaching out to the Chatbu team.
Shopify chatbot setup
- In the Shopify admin, go to Online Store, then Themes.
- Before changing any code, make a copy of your active theme (Duplicate). If something goes wrong, you can revert to this copy.
- Open Edit code for the active theme.
- Find the theme.liquid file in the Layout folder.
- Find the closing body tag at the end of the file and paste the Chatbu embed code right before it.
- Save and test your store on different pages.
If you change your theme later, you'll need to add the code to the new theme as well.
Webflow and custom HTML sites
The logic is the same for Webflow or hand-coded sites: add the code to a shared area that loads on every page, before the closing body tag, and republish the site.
Quick summary by platform
Platform | Where to add the code | Watch out for |
|---|---|---|
WordPress | Footer area of a code injection plugin or the child theme's footer file | The parent theme file may be reset by updates |
Wix | Settings, Custom Code, All pages, Body - end | Requires a published site and a connected domain |
Shopify | theme.liquid, before the closing body tag | Make a copy of the theme first |
Webflow and HTML | Shared area on all pages, end of body | Republish after making changes |
Two small warnings when adding the code
Add the code only once. If you paste the same code into both a plugin and the theme file, two chat windows may appear on the page, or one may not work. Second, always copy the embed code directly from your own Chatbu dashboard; characters can get corrupted in code forwarded by email or message. If an agency or freelancer is doing the setup, ask them to note which area the code was added to once they're done. That note will make things easier if you change themes later.
After setup: training and testing
Adding the code brings the bot to your site, but content is what makes it useful. Add your product and service pages, your price list, and your frequently asked questions, and exclude outdated pages. We cover this process in detail in our guide to training the bot on your website. Then:
- Set your brand voice: Adapt the bot's message language, behavior, and design to match your site's look.
- Turn on lead capture: Collect details in the chat from visitors who want a quote or an appointment.
- Test it: Visit your site from both a computer and a phone and ask the bot the questions it gets most often.
- Monitor it: Watch live chats from the mobile app and read the chat history regularly.
What if the bot doesn't show up?
- Make sure you've republished your site. If you have a caching plugin or server cache, clear it. Check that the code was copied in full and sits inside the body tag. In Wix, confirm the code is applied to "All pages"; in Shopify, confirm the theme you edited is the active theme.
Frequently Asked Questions
Do I need to know how to code to add a chatbot to my website?
No. You just copy the code Chatbu generates and paste it into the right area of your site. If you'd rather not touch the theme file, a code injection plugin in WordPress or the Custom Code area in Wix will do the job.
Do I need a separate chatbot plugin for WordPress?
No. Chatbu works with an embed code. In WordPress, you just need a way to add that code.
Can I add a chatbot to Wix?
Wix allows you to add custom code, and embed codes are added this way. Since Chatbu's pages don't mention Wix specifically, we recommend checking with the Chatbu team before setup.
Will the bot disappear if I change my Shopify theme?
Because the code is added to the theme file, you'll need to add it to the new theme as well when you switch.
How is this different from adding WhatsApp live support to your website?
A WhatsApp button sends the visitor to WhatsApp and waits for a human to reply. A chatbot answers the visitor's question right on your site, instantly and 24/7. With Chatbu, you can also connect your WhatsApp line to the same bot if you like.
Add a smart assistant to your website today. Try Chatbu free for 14 days, no payment details required. To get started, visit chatbu.io.





