WordPress makes it easy to publish pages, but it doesn't answer your visitors' questions. If people keep emailing to ask about prices, delivery or opening hours that are already on your site, an AI chatbot can answer them on the page they're reading, at any hour.

The good news is that adding an AI chatbot to WordPress doesn't require coding. This guide walks through the whole process with real screenshots from ScoutBot AI: creating the chatbot, training it on your website, copying the install code and adding it to WordPress using one of three no-code methods. It also covers WooCommerce, WordPress.com plans, caching plugins and what to do if the chat bubble doesn't appear.

Good to know: ScoutBot doesn't have a WordPress plugin of its own. You install it by pasting one line of code using WordPress's built-in tools or a free header-and-footer plugin. The steps below don't require you to write or edit any code.

Why add an AI chatbot to your WordPress site?

A WordPress AI chatbot sits in the corner of every page and answers questions in plain language. Unlike WordPress search, which matches words, it understands that "can I bring my dog?" is a question about your pet policy. Useful jobs for one include:

  • answering common questions about services, prices, opening hours and policies;
  • helping visitors find the right page, with a link to it;
  • answering outside business hours, when you can't reply;
  • explaining product details and documentation on a WooCommerce store;
  • passing questions it can't answer to you, so the enquiry isn't lost.

What it shouldn't do is invent answers. That's why it matters to choose an AI chatbot that answers only from your content. Our guide to training a chatbot on your website content explains how that works.

What you need before installing a chatbot on WordPress

  • Administrator access to WordPress. On a standard WordPress site, Administrators can add scripts. On a multisite network, only Super Admins can by default, because adding script tags requires the unfiltered_html capability (WordPress roles and capabilities).
  • A WordPress plan that allows custom code, if you're on WordPress.com. Self-hosted WordPress (WordPress.org) has no such limit. On WordPress.com, installing plugins and adding scripts depends on your plan; check WordPress.com's plugin support page before you start.
  • Up-to-date content. The chatbot learns from your pages, so fix outdated prices and policies first.
  • Your 10–20 most common customer questions, so you can test the chatbot before going live.

Step 1: Create a ScoutBot account

Go to the ScoutBot sign-in page and sign in with Google or with a one-time code sent to your email. No card is needed to start: every new account gets 20 free AI responses, enough to build the chatbot and test it on your own questions. A chatbot is created for your account automatically.

In the Chatbot Builder, give the assistant a name and welcome message, choose its tone and personality, pick your brand colour and enter your website domain (for example yourbusiness.com). The domain matters: the chatbot only works on that domain and its subdomains, such as www or a staging. subdomain.

Step 2: Connect your website and add your business knowledge

Open the Knowledge Base page. There are three ways to teach the chatbot about your business:

  1. Website: enter your WordPress site's address and click Crawl website. ScoutBot reads your sitemap and links and indexes up to 25 public pages.
  2. Documents: upload up to 5 PDF or TXT files, such as a price list, menu or returns policy. PDFs need selectable text; scanned images can't be read.
  3. Pasted text: add answers that aren't on your website yet, such as "Do you offer gift wrapping?"
ScoutBot Knowledge Base page with a website URL field, a pasted-information form and a document upload box, and a list of two indexed sources below.
The Knowledge Base page in our demo account, trained on scoutbotai.com and a short TXT checklist.

WordPress sites often have pages you don't want the chatbot to learn from, such as old blog posts or tag archives. If something important isn't among the indexed pages, add it as a document or pasted text. When you change a page later, use Check for updates to re-index only what changed.

Step 3: Install the chatbot on WordPress

Open Install Widget in the ScoutBot dashboard. Your installation code is a single script tag with your chatbot's ID:

<script src="https://scoutbotai.com/widget.js" data-bot="YOUR-CHATBOT-ID" async></script>

Click Copy installation code, then choose one of the methods below. You don't need to understand or change the code, only paste it.

ScoutBot Install Widget step 3: the script tag with a demo chatbot ID, a Copy installation code button and the WordPress tab listing four WPCode steps.
Step 3 of ScoutBot's Install Widget page with the WordPress tab selected (demo account).

Method A (recommended): a free header and footer plugin

This adds the chatbot to every page and works with any theme.

  1. In WordPress admin, go to Plugins → Add New and install the free WPCode plugin (formerly Insert Headers and Footers). Activate it.
  2. Go to Code Snippets → Header & Footer.
  3. Paste the ScoutBot code into the Footer box.
  4. Click Save Changes.

Method B: the Site Editor footer (block themes, no plugin)

If your theme is a block theme (such as Twenty Twenty-Four or Twenty Twenty-Five), you can add the code to the footer without a plugin. Because the footer appears on every page, so does the chatbot.

  1. Go to Appearance → Editor and open the footer template part (WordPress Site Editor guide).
  2. Add a Custom HTML block anywhere in the footer.
  3. Paste the ScoutBot code into the block.
  4. Click Save.

Method C: a Custom HTML block on one page

To show the chatbot only on certain pages, such as Contact or FAQ, edit the page, add a Custom HTML block, paste the code and update the page. The block itself stays invisible; the chat bubble appears in the corner.

How to make the chatbot visible across your website

Methods A and B load the chatbot on every page that uses your theme's footer, which is usually the whole site, including WooCommerce product, cart and checkout pages. Method C loads it only where you add the block. If you used Method C on several pages and later switch to A or B, remove the page blocks so the script doesn't load twice.

WooCommerce: the chatbot works on store pages like any other page. It answers from the product, shipping and returns pages it has indexed, so it can explain your delivery times or the difference between two products. It can't see carts, orders or stock levels, and with a 25-page limit it won't index a large catalogue. For store-wide policies, upload them as documents.

How to customize your chatbot

Everything is in the Chatbot Builder: the assistant's name, welcome message, tone (friendly, professional and others), personality and brand colour, plus instructions on what it should and shouldn't answer. For example: "If someone asks for a custom quote, ask them to use the contact form." Choose a brand colour that contrasts with your theme so the chat bubble is easy to spot. Changes apply to the live widget after you save, with no need to touch WordPress again.

How to test the chatbot before going live

Test before you install, not after. The Chatbot Builder has a live preview that answers from your knowledge base, exactly as visitors will see it. Ask every question on your list, worded the way customers write them, and click the numbered source links to check each answer against your pages.

ScoutBot Chatbot Builder with a live preview on the right answering a pricing question and citing the scoutbotai.com homepage as its source.
Testing in the Chatbot Builder's live preview. Preview answers count toward your allowance.

Then ask something your website doesn't cover. The right result is an honest "I don't have that information" and an offer to pass the question on, not a guess. On the Install Widget page you can also open a live preview of the real chat bubble, and after publishing, use Check installation: ScoutBot visits your page like a real visitor and confirms the widget appears and connects.

An illustrative example. Imagine a fictional garden centre with a WordPress site and a page stating "We deliver within 15 miles of Ashford for £6, free over £50". A visitor asks "do you deliver to Tenterden and how much is it?" A website-trained chatbot can answer from that page, link to it, and say it can't confirm whether a specific town is within 15 miles if the page doesn't list it.

Common installation problems and how to fix them

WordPress chatbot troubleshooting
ProblemLikely causeFix
No chat bubble after savingPage cache still serves the old pageClear your caching plugin's cache and your host's or CDN's cache, then reload in a private window
Bubble appears only after scrolling or clicking"Delay JavaScript" in an optimization pluginExclude widget.js or scoutbotai.com from delayed or combined scripts
Code disappears when you save the blockYour user role can't add scriptsUse an Administrator account, or Method A
Bubble appears but the chatbot doesn't replySite domain doesn't match the approved domainCheck the domain on the Install Widget page; subdomains are included, other domains aren't
Chatbot blocked by a security headerA Content Security Policy from a security plugin or hostAllow https://scoutbotai.com for scripts and connections
Chatbot shows twice or behaves oddlyCode added by two methodsKeep one installation method only
Can't install plugins at allWordPress.com plan restrictionsCheck your plan on WordPress.com, or use the Site Editor method if available

How to improve chatbot answers over time

A chatbot gets better when your content does. Once a week for the first month, open Conversations and read what visitors asked, then check Insights for questions the chatbot couldn't answer. For each gap, either improve the WordPress page and click Check for updates, or write the answer straight into the knowledge base. If you've enabled the follow-up form, visitors who left their email appear as leads you can reply to. That process is covered in how AI chatbots capture leads from unanswered questions.

Still comparing tools before you install anything? Our buying guide to AI chatbots for small business websites explains what to look for.

Frequently asked questions

Can I add an AI chatbot to WordPress without a plugin?

Yes. On block themes you can paste the code into a Custom HTML block in the footer using the Site Editor, which adds it site-wide. You can also add a Custom HTML block to individual pages. A header and footer plugin is simply the easiest method for classic themes.

Does ScoutBot have a WordPress plugin?

No. ScoutBot is installed with a one-line script tag. You paste it using a free header and footer plugin such as WPCode, the Site Editor footer or a Custom HTML block, with no coding.

Will the chatbot work with my WordPress theme?

It should work with any theme, because the widget loads independently of your theme's styles and appears as a bubble in the corner of the page.

Does it work on WooCommerce stores?

Yes, it loads on store pages like any other page and answers from the pages and documents you've indexed, such as shipping and returns. It can't access orders, carts or stock levels.

Can I add a chatbot on WordPress.com?

It depends on your plan. WordPress.com restricts plugins and custom code on some plans, so check WordPress.com's plugin support page. Self-hosted WordPress.org sites have no such restriction.

Why isn't my chatbot showing up?

Most often it's caching: clear your caching plugin and CDN cache. Also check that optimization plugins aren't delaying the script, that the code was saved by an Administrator, and that your domain matches the approved domain.

Will a chatbot slow down my WordPress site?

The ScoutBot script loads asynchronously, so it doesn't block your page from rendering. As with any third-party script, check your page speed after installing.

Can the chatbot answer from my WordPress blog posts and pages?

Yes, it indexes up to 25 public pages from your domain. If an important page isn't included, add its content as a document or pasted text.

How much does a WordPress AI chatbot cost?

ScoutBot Starter is $7.77 USD per month with up to 300 AI responses; new accounts get 20 free responses. Other WordPress chatbot tools range from free plans with limits to much larger monthly plans.

Can I show the chatbot only on certain pages?

Yes. Instead of adding the code site-wide, add a Custom HTML block containing the code only to the pages where you want the chat bubble.

Get your WordPress chatbot live

Adding an AI chatbot to WordPress comes down to three things: content worth answering from, a chatbot that answers only from it, and one line of code pasted into your footer. If you want an assistant trained on your own WordPress pages and documents, with source links and a fixed monthly price, you can create your ScoutBot chatbot and test it with 20 free responses before it goes on your site. See ScoutBot pricing for what's included.

Sources

Product details reflect ScoutBot AI as of November 25, 2026. Pricing and limits are shown on the pricing section of our homepage.

The Best AI Chatbot for Small Business Websites: What to Look For in 2026How to choose the best AI chatbot for your small business website: the features that matter, a dated ScoutBot vs Chatbase vs Tidio comparison, realistic budgets and the mistakes to avoid.