Numbat has a free plan. Try it free, no card needed. Get started
All install guides

AI chatbot for WordPress: add Numbat in 5 minutes

Add Numbat to any WordPress site with the free WPCode plugin. No theme editing, and it works with classic and block themes alike.

  • Takes about 5 minutes
  • Self-hosted WordPress, or a paid WordPress.com plan
  • No coding needed

How to add Numbat to WordPress

<!-- Paste before </body> --> <script src="https://asknumbat.com/widget.js" data-agent="your-agent-id" async></script>

When you sign up, we send you this snippet with your own agent ID filled in.

  1. Install the free WPCode plugin

    In your WordPress dashboard, go to Plugins > Add New, search for WPCode, then click Install Now and Activate. WPCode was previously called "Insert Headers and Footers".

  2. Open Header & Footer

    In the dashboard menu, go to Code Snippets > Header & Footer.

  3. Paste your Numbat code into the Footer box

    Paste your snippet into the Footer box. WPCode adds it just before the closing </body> tag on every page. Leave the Header and Body boxes as they are.

  4. Save, then clear your cache

    Click Save Changes and check that "Settings Saved" appears. If you use a caching plugin, clear its cache so visitors get the new version.

  5. Check it's live

    Open your site in a private or incognito window. The Numbat chat button appears in the corner. Ask it a question about your business to test it.

Prefer not to use a plugin?

Classic themes. Go to Appearance > Theme File Editor, open footer.php, paste your snippet just before <?php wp_footer(); ?> or the closing </body> tag, and click Update File. Two cautions: the editor doesn’t keep a backup, so copy the file first, and a theme update will remove your change unless you use a child theme.

Block themes. Block themes don’t have a footer.php. You can add a Custom HTML block to the Footer template part in Appearance > Editor > Patterns, but this only works on templates that use that footer, and your user account needs permission to add scripts. WPCode is the more reliable option.

WordPress.com sites

On WordPress.com, adding scripts needs a paid plan with plugins: Personal, Premium, Business or Commerce. Personal, Premium and Business sites have to activate hosting features first, which happens automatically the first time you install a plugin. Then follow the WPCode steps above. Free WordPress.com sites can’t add the code.

Not showing up?

  • Clear your cache. Caching plugins and hosting caches can serve the old page for a while.
  • Check you’re logged out. Test in a private window, so you see what visitors see.
  • Look for the code. Right-click the page, choose View page source, and search for widget.js near the bottom.
  • Theme File Editor missing? Some security plugins and hosts hide it. Use WPCode instead.

Still stuck? Email [email protected] with your website address.

Questions and answers

Do I need a developer to add Numbat to WordPress?

No. With WPCode you paste one line into a box in your dashboard. It takes about five minutes.

Does it work with WooCommerce?

Yes. The code loads on every page, including your WooCommerce shop and product pages. For store-specific questions, see Numbat for online stores.

Will it slow down my site?

The snippet loads with async, so the browser keeps loading your page while the chat widget loads in the background.

Can I use it on WordPress.com?

Yes, on a paid plan that allows plugins (Personal, Premium, Business or Commerce). Free WordPress.com sites can't add scripts.

Put Numbat on your WordPress site.

Start free and we'll send your embed code.