How to add an AI chatbot to your WordPress website

Start for free

About this integration

You don't need a dedicated WordPress chatbot plugin. Build a custom chatbot in AgenBase, train it on your pages and documents, then paste one line of code into your site footer with a free code plugin like WPCode. It works with any theme, including block themes, Elementor and Divi, and it's free to start.

What your agent can do

  • Answers from your content: only from the pages and documents you add, and says so when it doesn't know.
  • Speaks your visitors' language: it replies in the language the visitor writes in.
  • Captures leads: collects contact details with an AI summary (Pro and Business).
  • Books appointments: visitors pick an open time in the chat (Pro and Business).

How it works

  1. 1

    Create your AI agent

    Sign up to AgenBase, add your website address or upload your documents, and test the answers in the builder.

  2. 2

    Copy your snippet

    On the agent's Install tab, copy the script tag. It's one line.

  3. 3

    Install a code plugin

    In your WordPress admin, go to Plugins → Add New, search for “WPCode”, then install and activate it. Any header and footer plugin works the same way.

  4. 4

    Create a new snippet

    Go to Code Snippets → + Add Snippet, choose “Add Your Custom Code (New Snippet)”, and pick HTML Snippet as the code type.

  5. 5

    Paste and load it everywhere

    Paste the script tag, then under Insertion choose Auto Insert and Site Wide Footer. Switch the snippet to Active and save.

Check it works: Open your site in a new tab. The chat button appears in the bottom corner within a second or two.

Explore other integrations. The same agent, the same knowledge, on whichever site you run.

Shopify

Add a custom AI chatbot to your Shopify store without hiring a developer.

WooCommerce

Add an AI chatbot to your WooCommerce shop that answers customer questions from your shipping, returns and product pages.

Webflow

Add an AI agent to your Webflow site: paste one line into Footer code and publish.

Wix

Add an AI agent to your Wix website with Custom code settings.

Questions, answered.

Can't find your answer? The team replies within one business day.

Is there a free chatbot for WordPress?

Yes. AgenBase has a free plan with 50 credits a month and no credit card, and the code plugin used here (WPCode) is free too. Upgrade only if you need more messages, lead capture or bookings.

Can I build a custom chatbot for WordPress?

Yes. You choose what it knows (your pages, PDFs, FAQs, pasted text), its instructions and tone, its colors, profile picture, chat button and greeting. You test it in the playground before it goes live on your site.

Is this a WordPress chatbot plugin?

It isn't a plugin you install from the directory. You build the chatbot in AgenBase and add one script line with any header and footer plugin, so there's no extra plugin to update and nothing changes in your theme.

Does it work with Elementor and Divi?

Yes. The snippet goes in the site footer, so it works with any page builder or theme. You don't need to add a widget to each page.

I installed it but nothing appears

The chat bubble only shows while the agent is enabled. In AgenBase, open Agents, check the agent isn't disabled (Enable agent in its menu), then reload your site. Ad blockers can also hide chat widgets, so try a private window.

I still see the old page

Caching plugins such as WP Rocket, LiteSpeed Cache or W3 Total Cache serve saved copies of your pages. Clear the cache after saving the snippet.

The chat button appears late

Optimization plugins that “delay JavaScript” hold scripts until the visitor interacts. Add widget.js to the plugin's exclusion list.

Does it work with WordPress.com?

Yes, on WordPress.com plans that allow plugins. On plans without plugins you can't add custom scripts.

Will it slow down my site?

No. The script loads in the background (async), so your page shows first and the chat button appears right after.

What does it cost?

AgenBase is free for 50 credits a month, with no credit card. Paid plans start at $35 a month for 1,000 shared credits and one included agent. Additional agents cost $20/month each on paid plans.

Put your knowledge to work.

Give visitors the answers they need and a clear next step. Build your agent, match your brand, and start turning conversations into leads and bookings.

Start for free