How to Add an AI Chatbot to WordPress Without a Plugin
By Karla, founder of Proxxie · How-to ·

On a self-hosted WordPress site with a block theme, open the Site Editor, edit the Footer template part, add a Custom HTML block, and paste your chatbot's embed code. With a classic theme, use your theme's built-in footer scripts setting if it has one, or add the code to a child theme's footer. WordPress.com sites follow different rules, depending on your plan.
You don't need a plugin to add a chatbot. It's one line of code. Here's how to place it so it loads on every page and survives theme updates.
In this article
Before you start
- Your chatbot's embed code, a single
<script>line. In Proxxie, open your chatbot, go to the Embed Code tab and click Copy Code. - Administrator access to WordPress. On a multisite network, only a Super Admin can save scripts in a block.
- Know which kind of theme you use. If your dashboard has Appearance → Editor, you have a block theme (the Site Editor only exists for block themes). If it has Appearance → Customize and Widgets instead, it's a classic theme.
Method 1: Block themes (Site Editor)
- Go to Appearance → Editor.
- Click Patterns, then under template parts select Footer, and click the pencil icon to edit it.
- Click the + block inserter and add a Custom HTML block anywhere in the footer.
- Paste your embed code into the block.
- Click Save, and confirm saving the Footer template part.
Because the footer appears on every page, the chatbot will too.
Method 2: Classic themes
Option A: your theme's own setting. Many themes include a field for footer scripts, often under Appearance → Customize or a theme options page, labeled something like "Footer scripts" or "Custom code." If yours has one, paste the code there. It's the safest option.
Option B: a child theme's footer. If there's no such setting, add the code to footer.php in a child theme, just before the closing </body> tag.
Don't edit your main theme's files directly. Theme updates overwrite them, and your chatbot will silently disappear the next time the theme updates. If you're not comfortable creating a child theme, Option A or a small header-and-footer scripts plugin is the safer route.
WordPress.com sites
On WordPress.com, the Custom HTML block removes <script> tags on the free plan. Scripts need a paid plan with hosting features activated, and WordPress.com activates them once you install at least one plugin. Check your plan before trying the steps above.
Test it
- Open your site in a private or incognito window.
- Look for the chat bubble, usually bottom-right.
- Ask a real customer question.
If you use a caching plugin or your host caches pages, clear the cache first.
Troubleshooting
The chatbot doesn't appear.
- Clear your site and browser cache
- Confirm you saved the footer or file
- Check that the full code was pasted, from
<scriptto</script>
It appears twice. The code was probably added in two places, such as a theme setting and the footer. Remove one.
It disappeared after an update. The code was likely added to your main theme's files. Move it to a child theme or your theme's scripts setting.
The Custom HTML block removes my script. WordPress only keeps scripts in blocks for users allowed to post unfiltered HTML: administrators on a single site, or Super Admins on a multisite network. Some hosts and security settings turn this off for everyone. Use your theme's script setting instead, or ask your host.
Frequently asked questions
Is it safe to add a script without a plugin?
Yes, if you paste code only from a provider you trust and place it somewhere theme updates won't overwrite.
Should I use a plugin instead?
A simple header-and-footer scripts plugin is a reasonable alternative if you'd rather not touch theme files. Either approach works.
Will a chatbot slow down WordPress?
It shouldn't. In the footer with the async attribute (Proxxie's embed code includes it), the chatbot script loads without holding up the rest of your page.
What do I do after installing?
Train it on your business. Our knowledge base checklist shows what to include.
Try it with your own business. Proxxie builds an AI chatbot from your content. Paste in your information or add pages from your website, test it, then add it to your site with one line of code. Start your free 14-day trial. No credit card required.