Bee Chat Pro › Blog

How to Add an AI Chatbot to Your WordPress Site (No Plugin Needed)

By BeeChat Team ·

Short answer: you can add an AI chatbot to WordPress by pasting one script tag into your site's header or footer. With BeeChat, you create a free account, upload your FAQ or product documents so the AI knows your business, copy your embed code and paste it into WordPress. The chat bubble appears on every page, and you can take over any conversation yourself.

What you need before you start

AI replies are part of the paid plans, starting at $19 a month. The free plan gives you live chat only, which is a fine way to test the widget on your site first.

Step 1: Add your website in BeeChat

Log in, open Websites and add your domain. BeeChat creates an API key for that site.

Step 2: Train the AI on your content

In the same screen, upload the files you collected, or paste text. Good sources are the questions your customers already ask you by email or phone. The AI answers from this material, so if something isn't in it, the bot won't know it.

A tip from setting this up: one clear document per topic works better than one huge file. "Shipping and returns", "Pricing", "Opening hours and location" is easier for the AI to use than a 40-page brochure.

Step 3: Copy your embed code

BeeChat shows a snippet like this, with your own key:

<script src="https://www.beechat.online/widget.js" data-api-key="YOUR_API_KEY" async></script>

Step 4: Paste it into WordPress

There are three common ways. Pick the one that matches your setup.

Option A: A header/footer code plugin (easiest)

If you already use a plugin such as WPCode or "Insert Headers and Footers", open its settings, paste the snippet into the Footer box and save. This survives theme updates.

Option B: Your theme's custom code setting

Many themes (Astra, GeneratePress, Kadence and others) have a "custom scripts" or "hooks" area. Paste the snippet into the footer section.

Option C: A block theme with the Site Editor

Go to Appearance → Editor, open the footer template part, add a Custom HTML block and paste the snippet.

Avoid editing footer.php in a parent theme directly: a theme update will overwrite it.

Step 5: Test it

  1. Open your site in a private browser window. The chat bubble should appear in the bottom corner.
  2. Ask three questions your customers really ask. Check the answers against your documents.
  3. From the BeeChat dashboard, take over the conversation and reply as a person, so you know how handover feels from both sides.

If the bubble doesn't show, clear any caching plugin (WP Rocket, LiteSpeed Cache, W3 Total Cache) and check that a "delay JavaScript" setting isn't holding the script back.

Does a chatbot slow down WordPress?

The BeeChat snippet loads with async, so it doesn't block your page from rendering. The chat window itself loads in an iframe, separate from your theme's code.

What the chatbot is good at, and what it isn't

An AI chatbot is good at repeat questions: hours, prices, delivery times, "do you do X". It is not a replacement for a person on complaints, refunds or anything unusual. That's why BeeChat lets you, or your team, take over any chat. Visitors can also leave their details or open a ticket when nobody is online.

Frequently asked questions

Do I need a WordPress plugin for BeeChat?

No. BeeChat works with a single script tag. A header/footer plugin is only a convenient place to paste it.

Will it work with WooCommerce?

Yes. WooCommerce runs on WordPress, so the same snippet works. Train the AI on your shipping, returns and product information.

Is there a free plan?

Yes. The free plan covers one website with live chat. AI replies start on the Starter plan at $19 a month.

Create a free BeeChat account and add the chat to your WordPress site in a few minutes.