How to Add an AI Chatbot to a WordPress Website (No Plugin Needed)

Good news: adding a chatbot to WordPress is a copy-paste job. You don't need a developer, and you usually don't even need a plugin. Here's every route.
Before you start
You need your chatbot's embed snippet — one line of code from your chatbot dashboard. With LeadBell AI it looks like this:
<script src="https://leadbellai.com/widget.js" data-id="your-site-id"></script>
Route 1 — block themes (WP 6.x, no plugin)
- Go to Appearance → Editor → Patterns → Footer.
- Add a Custom HTML block at the end of the footer template.
- Paste the snippet, save. The widget now loads on every page.
Route 2 — classic themes
- Go to Appearance → Theme File Editor → footer.php (child theme recommended).
- Paste the snippet just before
</body>and update the file.
Route 3 — page builders & hosts
- Elementor: Elementor → Custom Code → add snippet → location "body end".
- Astra / Kadence / GeneratePress: each has a "footer scripts" box under theme options or a hooks feature.
- Managed hosts: most expose a "header & footer scripts" panel — paste into the footer field.
Route 4 — a snippets plugin
If editing themes makes you nervous, install a header/footer scripts plugin, paste the snippet in the footer box, save. Done.
Check it worked
- Open your site in a private window — the chat bubble should appear bottom-right.
- Ask it a question you trained it on and one you didn't; the second should end with it offering to take your number.
- On mobile, confirm the bubble doesn't cover your call button.
Not on WordPress? The same one-line snippet works on Shopify, Wix, Webflow, Squarespace and plain HTML. And if you're still choosing a tool, start with what a chatbot costs in India or LeadBell AI's pricing.
Ready to stop missing leads?
Set up your AI front desk in an afternoon — 14-day free trial, no card needed.
Frequently asked questions
Do I need a plugin to add a chatbot to WordPress?
No — pasting the embed snippet in your theme's footer works on any WordPress site. A snippets plugin is just a convenience.
Will a chatbot slow my WordPress site down?
A well-built widget loads asynchronously after your content, so the effect on page speed scores is minimal.
Does it work with WooCommerce?
Yes — the widget sits on every page including product and cart pages, answering questions and capturing enquiries.