How to add an AI chatbot to your WordPress site in 5 minutes

WordPress powers a huge share of the web, and it is also the easiest place to add an AI chatbot. Here is the safe way — no theme edits, no impact on page speed.

Step 1: Create the chatbot from your WordPress site

  1. Sign up for a free SiteBrain account.
  2. Click New chatbot and enter your WordPress site address.
  3. SiteBrain finds the sitemap generated by Yoast SEO, Rank Math or WordPress itself (/wp-sitemap.xml) and reads your public posts, pages and WooCommerce products.

Admin pages (/wp-admin), cart, checkout and account pages are skipped automatically.

Step 2: Install a code-insertion plugin

In WordPress, go to Plugins → Add New, search for WPCode, then Install and Activate.

Why not edit footer.php? Because theme updates overwrite it. A plugin keeps your snippet through every update.

Step 3: Paste the embed code

  1. In SiteBrain, open the chatbot → Overview → Copy the embed code.
  2. In WordPress, go to Code Snippets → Header & Footer.
  3. Paste the code in Footer and click Save Changes.

The script loads asynchronously, so it doesn’t slow your pages down; the chat window itself is only loaded when a visitor clicks the button.

Step 4: Clear caches and test

If you use a caching plugin (WP Rocket, LiteSpeed Cache, W3 Total Cache…) or a CDN, purge the cache. Open your site in a private window: the round chat button appears in the bottom-right corner. Ask a question about your products or services.

With "Delay JavaScript" enabled in WP Rocket or LiteSpeed, the button appears after the visitor’s first interaction — that’s normal. To show it immediately, exclude widget.js.

Step 5: Fine-tune

FAQ

Can it read WooCommerce products? Yes — public product pages with their name, description and price shown as text.

Does it affect SEO? No. The snippet doesn’t change your page content, loads asynchronously and doesn’t hurt Core Web Vitals.

Hide the bot on some pages? Use WPCode’s "Smart Conditional Logic" to insert the snippet only where you want it.

See the full installation guide for Shopify, Wix, Webflow and Google Tag Manager.

Try SiteBrain for free

Build an AI chatbot from your website in minutes.

Create a chatbot