ChatonboChatonbo
Solutions
Try ItUse CasesPricingIntegrationsDocsBlog
LoginSign Up Free
BlogBest Practices
Best PracticesJanuary 19, 20264 min read

How to Add an AI Chatbot to Your WordPress Site in 2 Minutes

How to Add an AI Chatbot to Your WordPress Site in 2 Minutes

On this page

Method 1: Theme Header/Footer (Recommended)Method 2: Page BuildersTroubleshooting

WordPress powers over 40% of websites worldwide, making it the most common platform for AI chatbot deployment. Here's exactly how to add an AI chatbot to your WordPress site.

Method 1: Theme Header/Footer (Recommended)

This is the simplest method and works with every WordPress theme.

Step 1: Get Your Embed Code

Log into your chatbot platform dashboard and navigate to your bot's "Install" tab. Copy the embed code — it looks something like this:

<script src="https://chatonbo.com/widget/chatonbo-widget.js"
        data-bot-id="your-bot-id"
        data-api-url="https://chatonbo.com/api">
</script>

Step 2: Add to WordPress

Go to Appearance → Theme File Editor (or Appearance → Theme Header/Footer if your theme supports it).

Find the footer.php file and paste the embed code just before the closing tag.

Alternatively, use a plugin like Insert Headers and Footers (by WPBeginner) to add the code without editing theme files directly.

Step 3: Clear Cache

If you're using a caching plugin (WP Super Cache, W3 Total Cache, LiteSpeed Cache, WP Rocket), clear your cache so the new code takes effect. Also clear any CDN cache (Cloudflare, etc.).

Step 4: Verify

Visit your website in an incognito/private window. The chatbot widget should appear in the bottom-right corner.

Method 2: Page Builders

Elementor

Add an HTML widget to your site's footer template. Paste the embed code.

Divi

Use the Code Module in your footer section. Paste the embed code.

Gutenberg

Add a Custom HTML block in your site's footer pattern. Paste the embed code.

Troubleshooting

Chatbot doesn't appear

  • Clear your browser cache and WordPress cache
  • Check if any minification/optimization plugins are blocking the script
  • Verify the embed code is placed before , not inside

Chatbot appears on admin pages

  • The script loads on all pages. If you only want it on the frontend, wrap it in a condition or use a plugin that supports conditional loading.

Performance concerns

The chatbot script is lightweight (under 30KB gzipped) and loads asynchronously. It won't affect your Core Web Vitals or page load speed.

Caching issues after updates

When the chatbot widget is updated, WordPress caching plugins may serve the old version. Add a version parameter to bust the cache, or configure your caching plugin to exclude the chatbot script from minification.

No signup required

See it work on your own website

Paste your URL and chat with an AI agent trained on your content — right now, in 60 seconds.

Try It on Your Website

Ready to try it yourself?

Deploy an AI chatbot on your website in under 5 minutes.

Get Started for Free

Related articles

How to Build the Perfect Knowledge Base for Your AI Chatbot
February 10, 2026

How to Build the Perfect Knowledge Base for Your AI Chatbot

Your AI chatbot is only as good as the knowledge you give it. Here's a step-by-step guide to building a knowledge base that delivers accurate, helpful responses.

The Small Business Owner's Guide to AI Chatbots in 2026
February 1, 2026

The Small Business Owner's Guide to AI Chatbots in 2026

You don't need a big budget or a tech team to deploy an AI chatbot. This guide walks small business owners through everything, from choosing a platform to going live.

Chatbot Analytics: The 7 Metrics That Actually Matter
January 25, 2026

Chatbot Analytics: The 7 Metrics That Actually Matter

Most chatbot dashboards show dozens of metrics. Here are the seven that actually drive business decisions and how to interpret them.

ChatonboChatonbo

AI-powered chatbot platform for sales, support, and lead capture.

© 2026 Chatonbo. All rights reserved.

Product

  • How It Works
  • Pricing
  • Integrations
  • Documentation
  • Compare
  • Blog

Solutions

  • Sales Agent
  • Support Agent
  • Shopify Agent
  • WooCommerce Agent
  • Real Estate
  • Healthcare
  • Restaurants
  • Legal
  • Education

Guides

  • Zapier Integration
  • Webhook Setup
  • WordPress Install
  • Shopify Install
  • Wix Install
  • HubSpot CRM
  • Slack Notifications
  • Zendesk Escalation
  • Zoho CRM
  • Google Analytics

Company

  • About
  • Contact
  • Help Center
  • Privacy Policy
  • Terms of Service