How to add a chatbot to your website

Adding a chat assistant takes about five minutes. You paste one line of code into your site, and a chat button appears in the corner. Here is how, step by step.

Step 1: Create your chatbot

Sign up for a free Bubble5 account, upload the information you want it to answer from (prices, hours, policies, FAQs), choose a colour and name, and try a test chat. When you are happy, open the Install tab and copy your one line of code. It looks like this, with your own key:

<script src="https://bubble5.mlgcostello.workers.dev/assets/widget.js" data-key="YOUR_KEY" defer></script>

Step 2: Paste it into your website

WordPress

Install a free "header and footer scripts" plugin, open its settings, and paste the code in the footer box. Save. Alternatively, in your theme editor add it just before the closing </body> tag.

Wix

Go to Settings, then Custom Code, add new code, paste it, choose "Body - end", apply to all pages and save. Custom code needs a paid Wix plan with a connected domain.

Squarespace

Go to Settings, Advanced, Code Injection, and paste the code into the Footer box. Save. Code injection needs a paid Squarespace plan.

Shopify

Go to Online Store, Themes, Edit code, open theme.liquid, and paste the code just above the closing </body> tag. Save.

Webflow

Open Project Settings, Custom Code, paste the code into the Footer code box, save and publish.

Any other site

Paste the line just before the closing </body> tag on every page where you want the chat, or into any "footer code" setting your builder offers.

Step 3: Check it works

Open your website in a new tab and refresh. A chat button should appear in the corner. Ask it a question. If it does not appear, check that you saved and published your site, and try a private window.

Prefer not to do it yourself?

On every Bubble5 plan, including the free trial, we will install it on your website for you at no charge. Press "Ask us to do it" in your dashboard, tell us which website builder you use, and invite our support address as an admin. No passwords needed.

Common questions

Do I need to know how to code?

No. It is one line to paste, and we will do it for you for free if you prefer.

Will it slow my site down?

The chat loads after your page, in the background, so it does not hold up your page from showing.

Try it on your own information, free.
No card needed. Set up in minutes.
Try Bubble5 free
More guides