WordPress · free forever · no signup

Add a free AI chat widget to WordPress

This guide shows how to add an ai chat widget for WordPress in about a minute, with no plugin: you paste one snippet into a footer widget area, because it's a floating bubble, so it only needs to exist once per page and should load last. No plugin. WordPress accepts raw HTML in a Custom HTML block, which is all this needs.

What this ai chat widget for WordPress shows

The AI chat widget adds a small chat bubble that answers visitors' questions using the content of the page they're on. It's useful for long pages such as pricing, FAQs, documentation or product details, where visitors would otherwise scroll around looking for one answer. It's powered by a large language model and grounded in your page text, so it works best on pages that actually contain the answers.

How to add an AI chat widget to WordPress

  1. 1Go to Appearance → Widgets.
  2. 2Open a Footer widget area and click the + to add a Custom HTML block.
  3. 3Paste the snippet into the block and hit Update.
  4. 4Reload your site with the cache purged — it renders where you dropped it.
Block theme or a different editor? On a block theme, go to Appearance → Editor → Patterns → Footer instead, then insert a Custom HTML block there.

Where it works best on a WordPress site

On WordPress, the right spot is a footer widget area. It's a floating bubble, so it only needs to load once per page, at the end of the body. Try it on your longest page first and ask it the questions your customers usually email you about. If the answers are thin, the page probably is too.

WordPress plan and editor requirements

WordPress.org sites you host yourself can use every method on this page. On WordPress.com, adding scripts with a Custom HTML block or a header plugin needs a plan that allows plugins and custom code (the Business plan or above at the time of writing), because lower WordPress.com plans strip script tags. If you're not sure which you have, check whether your dashboard has a Plugins menu.

Three things that trip people up on WordPress

Purge your cache after pasting

WP Rocket, W3 Total Cache, LiteSpeed Cache and your host's edge cache all serve a stored copy of your HTML. Until you purge, you'll be looking at the version from before you pasted and assuming the widget is broken. The widget's own data is fetched client-side on every load, so page caching never makes the numbers go stale — it only hides a freshly-added snippet.

Exclude it from JS minify / combine

Optimisation plugins that concatenate or defer every script can break an async third-party tag by moving it out of order. If the widget renders nothing after a purge, add the script URL to your plugin's JS exclusion list — in WP Rocket that's File Optimization → Excluded JavaScript Files. Nothing else needs changing.

Use a Custom HTML block, never a paragraph

WordPress sanitises script tags typed into a paragraph or the Visual editor tab, silently. The Custom HTML block, the Classic editor's Text tab, and Elementor's HTML widget all pass markup through untouched. If your snippet vanished on save, that's why.

Honest limits

Like any AI assistant it can get things wrong, especially on short pages or questions the page doesn't cover. Don't use it for anything where a wrong answer could cause harm, such as medical, legal or safety advice.

What you get, and what it costs

  • Free forever — there is no paid tier, no trial and no card
  • No signup for the badge-style widgets; the live ones create a site ID inline from your URL
  • Async script — it never blocks your page from rendering
  • Works on any theme, classic or block, and inside every major page builder
  • Bots filtered server-side on every visitor-counting widget

WordPress questions

Do I need a plugin to add an AI chat widget to WordPress?

No plugin. WordPress accepts raw HTML in a Custom HTML block, which is all this needs. Installing a plugin for this would mean another dependency and update cycle just to show one widget.

Where exactly does the snippet go on WordPress?

A footer widget area, because it's a floating bubble, so it only needs to exist once per page and should load last.

Will it slow my WordPress site down?

It adds one small script, loaded asynchronously, so it doesn't block your page from rendering. Any third-party script has some cost, so check your page speed before and after adding it. Your caching and optimisation plugins keep working exactly as before — the only thing to remember is to purge the cache after you paste, otherwise you'll be looking at the stored copy of your old HTML.

Does it work with page builders like Elementor?

Elementor: drag in the HTML widget and paste there. Divi: use a Code module. Beaver Builder: use the HTML module. WPBakery: use the Raw HTML element. Any builder with a raw-HTML or code block will render it.

Can the AI chat make things up?

It can. It's grounded in your page content, which reduces this, but it isn't guaranteed. Test it with real questions and keep important details, such as prices and policies, clearly written on the page.