Guide · updated November 6, 2026

How to add an AI chatbot to a WordPress site (2026)

There are three realistic ways to add an AI chatbot to a WordPress site: a plugin from the WordPress.org directory, a script you paste into your site, or your own build on an AI API. They differ in setup time, where you manage billing, and whether the chatbot answers from your website or from the open internet.

Option 1: A plugin from the WordPress.org directory (easiest)

In your WordPress dashboard go to Plugins → Add New Plugin, search for the chatbot you want, and click Install Now, then Activate. The plugin puts the chat bubble on your pages; there is nothing to paste. Most chatbot plugins are free to install and connect to the vendor’s service, where any paid plan is billed.

What to check before you pick one: does it answer from your site’s pages, or does it give general answers? Does it show your contact details when it does not know? Is the price a flat monthly number, or credits that can run out in a busy week? What happens when chatbot credits run out covers that last question.

On WordPress.com (the hosted service), installing plugins depends on your plan. If you do not see Add New Plugin, check your plan before anything else.

FlatRateChat is one of these plugins: a free plan with 50 pages and 100 AI answers a month and no card, Starter at $19 a month (1,000 answers) or Full at $59 a month (5,000 answers), every plan flat, with the chatbot answering only from what your site says and linking the page it used. The FlatRateChat for WordPress page has the details.

Step by step, with FlatRateChat as the example

  1. Open Add New Plugin. In your WordPress dashboard go to Plugins, then Add New Plugin. Search for “FlatRateChat”.
  2. Install and activate. Click Install Now, then Activate. Nothing is sent to FlatRateChat at this point.
  3. Connect. Open Settings → FlatRateChat and click Connect. You sign in on flatratechat.com with your email (no password) and come straight back. Your site starts on the Free plan and the chatbot starts reading your public pages.
  4. Set the fallback contact. In your FlatRateChat dashboard, confirm the email, phone or contact page to show when the answer is not on your site. You can also set the greeting there.
  5. Test on the live site. Open your public site (logged out, or in a private window) and run the five-minute test below.
The FlatRateChat plugin banner: the blue Dexter dog badge next to the words FlatRateChat and the line “An AI chat bubble that answers from your own pages and shows your contact details when the answer isn’t there.”

Get the free plugin on WordPress.org

Or try it on your site first: paste your address and ask it a question, no signup.

Option 2: Paste a script

Some chatbot services have no plugin and give you a <script> line instead. You can add it with a code-snippets plugin (one that inserts code into the site footer), or in your theme’s footer if you are comfortable editing theme files; use a child theme so a theme update does not remove it. Billing and settings stay on the vendor’s own site, so you manage the chatbot there.

This works, but it is easy to lose: a theme switch or a snippets plugin being turned off removes the chatbot without telling you. If a service offers a plugin, the plugin is usually the safer choice.

Option 3: Build one on an AI API

Developers can write a plugin or custom block that sends visitors’ questions to an AI API. It is the most flexible route and the most work: you handle reading and indexing your content, keeping answers to what your site says, rate limits, spam protection, privacy and the monthly API bill yourself. Reasonable for agencies; rarely worth it for a single business owner.

Which option should you pick?

If you run the site yourself and want it done this afternoon, install a plugin. If you already pay for a chatbot service that only gives you a script, paste it with a snippets plugin. If you are building something specific for clients, your own build gives you full control and the bills that come with it. Whatever you choose, run the test below before you tell anyone the chatbot is live.

Before you call it done: a five-minute test

  1. Open your public site in a private window. Some setups hide or change the bubble for logged-in admins.
  2. Ask a question that is answered on one of your pages. You should get the answer and a link to the page.
  3. Ask something that is not on your site. A good chatbot says it does not know and shows your contact details. A bad one makes something up (why chatbots make things up).
  4. Ask the same question in another language. If visitors write to you in Spanish or French, the answer should come back in Spanish or French.
  5. Check it on your phone.
  6. If you use a caching or optimization plugin, clear its cache once and reload, so the bubble’s script is not being held back.

What it should cost

Flat monthly pricing means you can put the chatbot on your site and forget it. Credit-based pricing means a busy week can switch it off or trigger an extra charge. If you are comparing two plugins, ask what happens on the day the credits run out.

Get the free plugin on WordPress.org