To add a chatbot to WordPress, either install a chatbot plugin from the WordPress dashboard, paste your chatbot’s embed code into your site, or build a custom one through an AI provider’s API. Most small businesses should choose a plugin or embed code, as neither needs coding and both can be live within an hour.

At a glance

  • There are three main routes: a WordPress plugin, a pasted embed script, or a custom build using an API such as OpenAI’s, as Elfsight’s guide sets out.
  • ChatLab’s help guide describes two methods: a WordPress plugin (recommended) or a manual installation of the embed code, followed by a check that it is installed.
  • Tidio’s roundup compares 8 WordPress chatbot plugins, including AI Engine, HubSpot, Tidio, Chatway, WPBot, Jotform AI Chatbot, MxChat and Robofy.
  • Tidio’s WordPress.org listing offers a free basic option with AI chatbot and live chat.
  • Chati’s team has been developing apps since 2009, and Chati is trained on the customer’s own website data.

How do you add a chatbot to a WordPress website?

There are three routes: install a plugin, paste an embed code, or build your own chatbot using an AI provider’s API. For most small businesses, a plugin or an embed code is the sensible choice, because neither needs a developer.

Route one: a plugin

This is the easiest way in. You install the plugin from your dashboard, connect it to your chatbot account and manage settings without leaving WordPress. It feels like adding any other plugin, which is a comfort if you are not technical.

Route two: embed code

Your chatbot provider gives you a short script. You paste it into your site and the chat widget appears. There is no plugin to maintain and it works on almost any theme, so it suits people who want to keep the site light.

Route three: a custom API build

Here you connect your site to an AI provider yourself. You get the most control, but you need a developer, and you are responsible for security, cost and accuracy. We cover this in more detail further down.

WordPress.org or WordPress.com?

These steps assume a self-hosted WordPress.org site, where you can install plugins and add scripts freely. Sites on WordPress.com can be more restricted, depending on the plan. Plugin installation and custom scripts may not be available on lower plans, so check your plan before you start.

Which method should you choose: plugin, embed code or custom build?

Plugins suit beginners, embed codes suit people who want a lighter site, and custom builds suit those who have a developer and a specific need that ready-made tools cannot meet.

Sunny garden path splitting three ways past a red toolbox, a coiled yellow hose and a green plant pot, towards a pink speech
Three routes lead to the same chatbot, much like choosing between a plugin, an embed code or a custom build for your WordPress site.
Method Effort Coding needed Typical cost Maintenance Best for
Plugin Low None Free basic tiers exist; paid plans vary Keep the plugin updated Beginners who want to manage everything in the dashboard
Embed code Low Copy and paste only Set by your chatbot provider Very little once live Owners who want a lighter site and fewer plugins
Custom API build High Yes Developer time plus usage costs from the AI provider Ongoing Businesses with a developer and a specific need

Plugin updates versus script-only simplicity

A plugin is one more piece of software that needs updating, and it can occasionally clash with your theme or another plugin. An embed script has fewer moving parts. The trade-off is that you manage the placement yourself, which is a small job once you know where the script goes.

Hosting and speed

Any chatbot adds some weight to a page, because the widget loads extra files. Some plugins add their own files on top. An embed code usually loads from the provider’s servers, so it asks little of your hosting. A custom build runs on your own server. Your hosting plan matters much more there. Whichever route you pick, check your page speed before and after, as we explain below.

What do you need before you add a chatbot?

You need admin access to WordPress, an account with your chosen chatbot provider, good content for the bot to learn from and a decision about who takes over chats when the bot cannot help.

  • Back up your site first. Most hosts offer one-click backups, and a backup plugin works too. It takes minutes and saves worry if something clashes.
  • Gather your content. Collect your FAQs, service pages, opening hours and pricing pages. A chatbot is only as good as the material it learns from, so tidy out-of-date pages first.
  • Decide on handover. Choose who receives chats and what happens out of hours. Will the bot take a name and email, or offer a booking?
  • Check your cookie banner and privacy policy. You will want to update both. We cover what to look for in the UK section below.

How do you add a chatbot to WordPress with a plugin?

Install the plugin, activate it, connect your account or API key, train it on your content, choose where it appears and test it. Here is the route in order.

  1. Log in to your WordPress dashboard and go to Plugins, then Add New.
  2. Search for the chatbot plugin by name, then select Install Now.
  3. Select Activate once it has installed.
  4. Connect your chatbot account or paste in your API key. The plugin will tell you where to find it.
  5. Train the bot on your website pages and any extra documents the plugin accepts.
  6. Choose which pages show the chat widget and check the mobile display.
  7. Test it thoroughly before telling anyone it is live.

Examples of plugins

Plenty of plugins are listed on WordPress.org, and you can browse the chatbot category to compare them. Tidio is one example, and its WordPress.org listing mentions a free basic option with AI chatbot and live chat. AI Engine is another. It is a more advanced option that needs API keys. Pricing and features change often, so check the current details on each listing before you commit.

How do you add a chatbot to WordPress without a plugin?

Copy the chatbot’s script and paste it just before the closing body tag, or use a header and footer tool to add it across the site. It takes a few minutes.

Hand holding a yellow and blue wooden block above a matching slot in a green wooden frame, like a piece fitting into a page
Adding a chatbot script is like slotting a block into place, as it fits into the page’s footer without changing the rest of the site.
  1. Sign in to your chatbot dashboard and copy the embed script.
  2. Decide where it goes. For every page, use a theme setting for custom scripts or a code snippet plugin. Do not edit WordPress core files, as updates will wipe your changes.
  3. Paste the script into the footer area, or just before the closing body tag if your tool lets you.
  4. Save your changes.
  5. Clear your site cache and any caching plugin, then reload the page in a private window to see the widget.

Keeping it safe through updates

If you edit theme files directly, a theme update can remove your script. Use a child theme or a snippet tool so the code survives updates.

Adding it to one page only

To show the chatbot on a single page, such as a contact or booking page, add a Custom HTML block on that page and paste the script inside it. Save, then clear the cache and check the page.

Can you build your own AI chatbot for WordPress?

Yes, through an AI provider’s API, but it needs development work, ongoing costs and careful attention to security and accuracy. Our team has been developing apps since 2009, so we know how much goes into a build like this, and why many businesses prefer a ready-made tool.

What a custom build involves

  • An API key from your AI provider.
  • Server code that sends questions and returns answers.
  • A way to pull in your own content so answers reflect your business.
  • Hosting that can cope with the traffic.

The risks

Without careful setup, an AI can produce made-up answers. Providers usually charge per message, so costs rise as use grows. Your API key must be kept secret, because anyone who finds it can run up charges on your account.

When is it worth it?

A custom build can make sense if you have a developer on hand and a need that ready-made tools do not meet. For a typical small business that wants answers on the website, handover to staff and lead capture, a ready-made tool is quicker and carries less risk.

How do you check the chatbot works and looks right?

Test on desktop and mobile, in a private browser window, using real customer questions, and confirm the widget appears only where you intended.

A simple installation checklist

  • Does the widget show on the pages you chose, and not on the ones you did not?
  • Does it look right on a phone, and does it avoid covering buttons or cookie banners?
  • Does the branding match your site?
  • Do links inside answers open the right pages?

Try to break it

Ask questions that are awkward, vague or outside your services. Ask something the bot should not answer. Then check that handover works: does a chat reach your team, and does the customer know what happens next?

Check page speed

Run a speed test on a key page before you install the chatbot and again after. If the difference is large, try loading the widget later in the page or choose a lighter route.

Troubleshooting

  • Widget missing: clear your caching plugin, your host’s cache and your browser cache.
  • Plugin clash: deactivate other plugins one at a time to find the conflict.
  • Script blocked: a security plugin, ad blocker or cookie tool may be stopping it from loading.

What should a UK business check on a WordPress chatbot?

Check GDPR, cookie consent and how data is handled, and confirm the bot hands over to a human when it is unsure. These points matter for customer trust.

Brass key on a blue paper speech bubble beside a red toggle switch on a windowsill, with paperclips and a Union flag ribbon
A key on a speech bubble and a simple switch suggest the privacy, consent and handover checks a UK business should make on a chatbot.

Privacy and consent

  • Mention the chatbot in your privacy policy, including who processes the chat data.
  • If the chatbot sets cookies or similar tracking, make sure your cookie banner asks for consent before they load.
  • Ask the provider where data is stored and how long chats are kept. For legal certainty, speak to a qualified adviser.

Sources and trust

Customers trust answers more when they can see where they came from. Chati shows its sources, so a visitor can follow the link back to the page on your site that the answer is based on.

Human handover, leads and bookings

A good chatbot knows when to stop. Chati hands chats to your human team when it is unsure, and it also offers branding, lead capture and bookings. That suits UK sectors such as dental practices, solicitors, trades and lettings agents, where a missed enquiry can mean a lost client. You can read more on our industry guides.

Regulated areas

Work in law, dental care, veterinary care or another regulated area? Set the bot so it does not give advice it is not qualified to give. Route those questions to a member of staff instead.

How does Chati add to a WordPress site?

Chati answers visitors’ questions using your own website content, shows its sources and hands over to your team when it is unsure. It works on a WordPress site using the routes above. Our how it works page explains the setup.

Trained on your data

Chati is trained on your own website data, so answers come from your content rather than from guesswork. We also offer custom integration if your set-up needs it.

Branding, leads and bookings

Brand the chat to match your site, capture leads and take bookings, so the chatbot does more than answer questions.

Value for small teams

Customers choose Chati for great value for money. Current plans are on our pricing page, and since pricing changes, check it as of today rather than relying on older guides. We have been developing apps since 2009, and you can read about the people behind Chati on our about page.

For help adding a chatbot to your WordPress site, get in touch with Chati and we will talk you through the options.

Frequently asked questions

Can I add a chatbot to WordPress for free?

Often, yes, to a point. Some plugins offer a free basic option, such as Tidio’s listing on WordPress.org. Free plans tend to limit features or usage, and offers change, so check the current details before you rely on one.

Do I need a plugin to add an AI chatbot to WordPress?

No. Pasting your chatbot’s embed script into your site works instead. The plugin is simply the easier route for people who prefer to manage everything from the dashboard.

Will a chatbot slow down my WordPress site?

It can add a little weight, because the widget loads extra files. Test your page speed before and after installing it, and try a lighter route if the difference is noticeable.

Can I add a chatbot to WordPress.com?

It depends on your plan. Some WordPress.com plans restrict plugins and custom scripts, so check what yours allows. A self-hosted WordPress.org site gives you the most freedom.

How do I show the chatbot on only one page?

Add a Custom HTML block to that page and paste the embed script inside it. Some plugins also let you choose which pages show the widget in their settings.

Is a WordPress chatbot GDPR compliant?

That depends on the tool and how you set it up. Mention the chatbot in your privacy policy, get cookie consent where needed and check how the provider handles data. Seek professional advice if you are unsure.

How do I train a chatbot on my own website content?

Most tools let you point the chatbot at your website pages and upload extra documents. Tidy your FAQs, service pages and pricing pages first so the answers are accurate. Chati is trained on your own website data.

Can a chatbot pass chats to a real person?

Yes, if the tool supports it. Chati hands chats to your human team when it is unsure, so customers are not left with an answer the bot cannot give.