Chatbot for WordPress: How to Add an AI Chatbot to Your Site (UK Guide)

By the Porter team · Updated 5 November 2026 · 9 min read

The short answer

  • There are two ways to add a chatbot to WordPress: install a chat plugin, or paste the provider's one-line script into your site header.
  • A plugin is easiest if one exists for your chatbot. A script works with any provider and adds nothing to your WordPress database.
  • On WordPress.com, plugins and custom JavaScript need a paid plan. Self-hosted WordPress sites can use either method.
  • Pick a bot that answers from your own pages, emails you leads, and loads after the page so it does not slow your site down.

WordPress runs about 4 in 10 websites. W3Techs puts it at 39.5% of all websites in November 2026, so if you run a small business site, there is a good chance it is built on WordPress.

This guide explains the two ways to add a chatbot to a WordPress site, step by step, plus the things most plugin lists skip: WordPress.com plan limits, site speed, UK cookie rules, and what a chatbot needs to do to actually win you enquiries.

What is a WordPress chatbot?

A WordPress chatbot is a chat window on your WordPress site that replies to visitors automatically. People use three names for things that work quite differently:

  • Live chat plugin. A chat box that a person in your team answers. When nobody is online, it usually becomes a contact form.
  • Rule-based chatbot. Replies from a decision tree of buttons and preset answers that you build.
  • AI chatbot. Understands questions in plain English and answers from information about your business, such as your website pages. It can also collect contact details when someone wants a quote or a call back.

For a small business, an AI chatbot trained on your own pages is usually the most useful, because it answers at 10pm without anyone writing a decision tree. Our guide to AI receptionists explains how they work in more detail. Not on WordPress? See how to add an AI chatbot to any website, including Wix, Squarespace, and Shopify.

Plugin or code snippet: which is better?

Both methods put the same chat window on your site. The difference is how it gets there.

Chat pluginScript snippet
How it worksInstall from the WordPress plugin directoryPaste one line of code into your site header or footer
Works withOnly providers that publish a pluginAlmost any chatbot provider
UpdatesYou update the plugin in WordPressThe provider updates it for you
Effect on your siteAdds a plugin to maintainNothing stored in WordPress
Best forPeople who never want to touch codeAnyone comfortable copying and pasting

If your provider offers both, the script is usually the lighter choice. Fewer plugins means fewer updates and fewer things that can clash with your theme.

How do I add a chatbot to WordPress?

Method 1: install a chat plugin

  1. Log in to your WordPress dashboard and open Plugins, then choose the option to add a new plugin.
  2. Search for your chatbot provider by name. Check the last updated date, the active installs, and the reviews before you install.
  3. Click Install, then Activate.
  4. Open the plugin's settings and connect it to your account, usually by pasting a key from the provider.
  5. Open your site in a private browser window and test the chat on a phone and a desktop.

Method 2: paste the script into your site

  1. Copy the one-line script from your chatbot provider. It usually starts with "<script src=".
  2. Install a header and footer code plugin, such as WPCode, if your theme does not have a box for custom code.
  3. Paste the script into the footer section (or header, if your provider says so) and save.
  4. Clear any caching plugin so visitors get the new version of the page.
  5. Test the chat in a private browser window on a phone and a desktop.

Only paste code from a provider you trust. A script on your site can read what visitors type into it, so treat it like giving someone a key.

For the wider setup, such as what to train the bot on and who gets the leads, see our guide to setting up an AI receptionist in a small business.

Can I add a chatbot to a WordPress.com site?

Yes, on a paid plan. WordPress.com is the hosted version of WordPress, and it has different rules from a self-hosted WordPress site.

  • Plugins are available on every paid WordPress.com plan, starting with Personal, according to the WordPress.com plugin guide. Free sites cannot install plugins.
  • Custom JavaScript, such as a chatbot script, is allowed on plugin-enabled plans once hosting features are activated. Free sites have limits on the code you can add, as explained in the WordPress.com code guide.

If you are on the free plan, you will need to upgrade before any chatbot can go on the site.

Will a chatbot slow down my WordPress site?

It should not, if it loads properly. A well-built chat widget loads after the rest of the page, so your content appears first and the chat button arrives a moment later.

To check, run your homepage through Google's PageSpeed Insights before and after you add the chatbot. If the score drops sharply, ask the provider whether their script loads asynchronously, or try the script method instead of a heavy plugin.

What should a good WordPress chatbot do?

Most "best WordPress chatbot" lists compare features. For a small business, these are the things that decide whether it wins you customers:

  • Answers from your own pages, so prices, hours, and areas covered match your site.
  • Says when it does not know, instead of guessing. Our AI customer service guide shows why this matters.
  • Captures leads and emails them to you straight away with the visitor's question.
  • Works well on phones, where most small business visitors browse.
  • Lets you approve answers before it goes live.
  • Has clear UK data terms, including where conversations are stored.

Free chatbot plugins exist and are fine for testing whether visitors use chat. The trade-off is that you write and maintain every answer. Our chatbot for business guide compares building your own with a done-for-you service. Our guide to free AI for small business covers when free is enough.

Where Porter fits

Porter is a website AI receptionist for UK businesses, and it works on WordPress with one line of code. We train it on your website, you approve the answers, and we can add it to your WordPress site for you, usually within about 48 hours.

When a visitor wants a quote, a booking, or a call back, you get an email with their details, their question, and the page they were on. It does not answer phone calls. If your phone is the bigger gap, compare options in our guide to virtual receptionists.

See who it is for, pricing, and the live demo, or send us your website. Leave your name and email, and Donna will reach out to arrange a chat. You can also go back to the Porter homepage.

Frequently asked questions

How do I add a chatbot to WordPress?

Either install your provider's chat plugin from the WordPress dashboard and connect your account, or paste the provider's one-line script into your site footer using a header and footer code plugin. Then test it on a phone and a desktop.

What is the best chatbot for WordPress?

For a small business, the best WordPress chatbot answers from your own pages, says when it does not know, emails you leads straight away, works well on phones, and has clear UK data terms.

Is there a free chatbot for WordPress?

Yes, several chat plugins have free plans. They usually limit chats or features, and you write and maintain the answers yourself, so they suit testing more than running your enquiries.

Can I add a chatbot to a free WordPress.com site?

No. WordPress.com allows plugins on every paid plan from Personal upwards, and custom JavaScript once hosting features are activated. Free sites need to upgrade first.

Will a chatbot slow down my WordPress website?

A well-built chatbot loads after your page content, so it should not. Test your homepage in Google PageSpeed Insights before and after adding it.

Does a WordPress chatbot need cookie consent in the UK?

It depends what it stores and why. Storage that is strictly necessary for a chat the visitor asked for can be exempt, but tracking or marketing storage needs consent. Check with your provider and update your cookie policy.

Sources

Related guides

See it on your own site

Leave your name and email in the form. Donna will reach out to arrange a chat. You can also email contact@ukaireceptionist.com.