Back to Blog
Tutorial

How to Add a Chatbot to WordPress in 5 Minutes (No Plugin Required)

Converso TeamMay 20, 20256 min read

Adding a chatbot to WordPress is easier than you think — and you don't even need a plugin. In this guide, we'll show you two methods: the no-plugin method (fastest) and the plugin method (for non-technical users).

Method 1: No Plugin — Paste Code in Your Theme (5 Minutes)

This is the fastest and most reliable method. You add one line of JavaScript to your WordPress theme and the chatbot appears on every page.

Step 1: Get Your Embed Code

Sign up at Converso, create your chatbot, train it on your content, then go to Settings → Embed and copy your embed code. It looks like this:

<script src="https://converso.so/embed.js" data-bot-id="YOUR_BOT_ID" async></script>

Step 2: Access Your WordPress Theme Editor

In your WordPress admin panel, go to Appearance → Theme File Editor. In the file list on the right, click footer.php.

Step 3: Paste the Code

Find the closing </body> tag in footer.php. Paste your embed code on the line just before it:

<script src="https://converso.so/embed.js" data-bot-id="YOUR_BOT_ID" async></script>
</body>

Step 4: Save and Check

Click Update File. Visit your website — the chatbot widget should appear in the bottom-right corner within seconds.

Note: If you're using a page builder like Elementor, Divi, or Beaver Builder, you can also add the script in Settings → Custom Code → Footer Scripts within that builder's settings.

Method 2: WordPress Plugin Method

If you prefer not to edit theme files, you can use the free "Insert Headers and Footers" plugin:

  1. Install the plugin: Plugins → Add New → search "Insert Headers and Footers"
  2. Go to Settings → Insert Headers and Footers
  3. Paste your Converso embed code in the Scripts in Footer box
  4. Save — your chatbot will appear on all pages

WooCommerce-Specific Setup

For WooCommerce stores, you want to train the chatbot specifically on:

  • Your product pages (add URLs to Converso's crawler)
  • Your shipping policy page
  • Your return policy page
  • Your FAQ page

This allows the chatbot to answer product-specific questions, shipping times, and return instructions — the most common customer queries for WooCommerce stores.

Show Chatbot Only on Specific Pages

To show the chatbot only on WooCommerce product pages or the checkout page, wrap the embed in a WordPress conditional:

<?php if ( is_product() || is_checkout() ) : ?>
  <script src="https://converso.so/embed.js" data-bot-id="YOUR_BOT_ID" async></script>
<?php endif; ?>

Training Your WordPress Chatbot

The embed is just the start. What makes the chatbot actually useful is training it on your content:

  1. In Converso, go to Knowledge Base → Add Source → Crawl URL
  2. Enter your website URL (e.g., https://yoursite.com)
  3. Set crawl depth to 2–3 levels
  4. Converso will index your pages automatically
  5. Optionally, upload additional PDFs (product manuals, guides)

Customizing the Chatbot Appearance

In Converso settings, you can match the chatbot to your WordPress theme:

  • Change the primary color to match your brand
  • Set the bot's name and avatar
  • Write a greeting message ("Hi! How can I help you today?")
  • Choose position: bottom-right or bottom-left

Testing Your Setup

After embedding, ask the chatbot questions that are answered on your website. If the answers are accurate, you're done. If not, go back to your knowledge base and add more content sources or refine your training data.

Conclusion

Adding an AI chatbot to WordPress takes 5 minutes and no coding skills. Whether you're running a blog, a business site, or a WooCommerce store, your visitors get instant answers — and you stop losing customers to unanswered questions at 2am.

Start free at Converso →

Ready to add an AI chatbot to your website?

Get started for free. No credit card required.

Get Started Free