Skip to content
Guides

How to add the chat widget to your website in five minutes

One line of code, pasted once. Step-by-step instructions for adding the chat bubble to WordPress, Wix, Squarespace or any other site, with a preview first.

The short version
  • Copy one line and paste it before the closing body tag.
  • Site builders have a custom code box that does the same job.
  • Preview the chat before you add it, then reload your site to check.

What you need

You need to be able to log in to your website, or know the person who can. That is all. There is no plugin to buy and nothing to install on a server. The whole job is copying one line from your Lead Capture AI account and pasting it into your site once. After that, any changes to how the chat looks or what it says are made in your account.

Copy the line

In your account, go to the chat widget screen. You will see a one-line script for the floating chat bubble. Copy it. Before you do anything else, use the preview button on the same screen. It shows the chat exactly as visitors will see it, with your colours and greeting, so you can try a few questions and check the answers.

Paste it into your site

The line goes just before the closing body tag of your pages. In practice, you won't edit code by hand. WordPress, Wix, Squarespace, Shopify and most other builders have a setting called custom code, footer code or code injection. Paste the line there and save. It then appears on every page. If someone else manages your site, send them the line with that one sentence.

Check it works

Open your website in a new tab and reload. The chat bubble should be in the corner. Click it, ask a question a customer would ask, and give a made-up name and your own number. Then look at your pipeline, where a new lead should have appeared with the conversation attached. If the bubble isn't there, the usual cause is that the code was saved to one page and not the whole site.

Embedded instead of floating

If you would like the chat inside a page, such as your contact page, and not as a bubble on every page, the same screen has a second snippet for that. Paste it where you want the chat panel to appear. Some businesses use both: the embedded panel on the contact page, and the bubble elsewhere. Both feed the same pipeline.

Changing it later

The bubble's corner, its colour and its messages are set under appearance on the widget screen. When you save a change there, your live site updates. You never need to paste the code again. If you redesign your website, remember to carry the line across to the new one, which is the one moment the widget tends to go missing.

Questions people ask

Where do I paste the chat widget code?

Just before the closing body tag, or in your site builder's custom code or footer code box so it loads on every page.

Do I need a developer to add the widget?

Usually not. Most site builders have a box for custom code. If someone manages your site, send them the one line.

Do I have to re-paste the code when I change the colours?

No. Appearance changes are saved in your account and apply to your live site automatically.

This is what Lead Capture AI does for you

She answers the calls you can’t, knows your business, and texts you the details in seconds. Your number is live the day you sign up, and the first 7 days are free with no card.