Add a custom AI chatbot to your WordPress site.
ChatBento builds an AI chatbot from your WordPress site: it reads your published posts and pages, answers visitors from them, and emails you when someone needs a person. You set its name, look, greeting and instructions in ChatBento, then add one line to WordPress. It works with any theme or page builder, and nothing runs inside WordPress.
Paste your WordPress site address
Plans from $14 a month. Cancel anytime. Skip to the install steps
Install on WordPress in 6 steps
Where it goes: Your site footer, before </body> (WPCode's Footer box, or your child theme)
- 1
In ChatBento, create a chatbot and enter your WordPress site's address. It reads your published posts and pages, using WordPress's own sitemap or the one from Yoast or Rank Math.
- 2
In ChatBento, open your chatbot, go to Install and copy the one-line snippet.
- 3
In WordPress, go to Plugins → Add New Plugin, search for WPCode, then install and activate it.
- 4
Open Code Snippets → Header & Footer, paste the snippet into the Footer box and click Save Changes.
- 5
If you use a caching plugin, clear its cache.
- 6
Open your live site in a new tab and click the chat bubble in the corner to test it.
The snippet looks like this (your bot ID is filled in for you)
<script src="https://chatbento.com/widget.js" data-bot-id="YOUR_BOT_ID" async></script>Caching and “delay JavaScript” settings
Caching and speed plugins can serve an old copy of your pages, so clear the cache after adding the snippet. If a plugin delays JavaScript until the visitor interacts, the chat bubble may appear late: exclude chatbento.com/widget.js from that setting.
What it learns from
Published posts and pages that search engines can index. Pages set to noindex are skipped, and so is anything behind a login. Add Q&As in ChatBento for answers that aren't on the site.
WordPress.com
Every paid WordPress.com plan can install plugins, so the WPCode steps work as written. The free plan can't install plugins (checked October 25, 2026 on wordpress.com/pricing).
Other ways to add it to WordPress
In your child theme, without a plugin
You'd rather not add a plugin and your site has a child theme, classic or block.
- Open your child theme's functions.php (Appearance → Theme File Editor, or your code editor).
- Add the code below with your bot ID, and save.
functions.php (child theme)
add_action( 'wp_footer', function () {
echo '<script src="https://chatbento.com/widget.js" data-bot-id="YOUR_BOT_ID" async></script>';
} );On one page only
You want the chatbot only on a page such as Contact or Pricing.
- Edit that page and add a Custom HTML block.
- Paste the snippet into the block and update the page.
- Only Administrators and Editors can save a script this way on a normal site. On a multisite network, only a Super Admin can.
On a WooCommerce store
Your WordPress site sells with WooCommerce.
- Add the snippet site-wide with either method above, so it shows on product, cart and checkout pages.
- Make sure your shipping, returns and size or product details pages are published, so it can answer from them. It can't look up orders, so point order questions to your order status page.
What the chatbot does on your WordPress site
Answers from your content
Trained on your pages, docs and Q&As. It says so when it doesn't know, instead of guessing.
Hands off to you
When a visitor needs a person, it collects their email and sends you the conversation.
Priced for small sites
Plans from $14/month, flat: up to 80% less than Chatbase, with no per-seat fees.
Comparing tools? See ChatBento vs Chatbase and pricing.
A WordPress chatbot plugin or one line of code?
Most WordPress chatbots install as plugins. ChatBento doesn't run inside WordPress at all. Here's what that changes.
- Where the chatbot runs
- Typical chatbot plugin: Inside WordPress, on your server
- ChatBento: On ChatBento's servers; WordPress prints one script tag
- Updates to keep up with
- Typical chatbot plugin: Plugin updates, and compatibility with your WordPress and PHP versions
- ChatBento: None in WordPress; the script updates itself
- Where conversations are kept
- Typical chatbot plugin: Often in your WordPress database
- ChatBento: In your ChatBento dashboard
- If you move off WordPress
- Typical chatbot plugin: You start again
- ChatBento: The same line works on any site
- Settings inside wp-admin
- Typical chatbot plugin: Yes
- ChatBento: No, in ChatBento's dashboard
WordPress questions. Answered.
Can I build a custom chatbot for WordPress without coding?
Yes. In ChatBento you choose the chatbot's name, accent color, greeting, suggested questions and corner, and write instructions for tone and what to hand to a person. It learns your posts and pages on its own. The only code is the one line you paste into WPCode.
Is there a free AI chatbot for WordPress?
ChatBento doesn't have a free plan. Hobby, the entry plan, is $14 a month for 2,000 AI messages, and you can cancel anytime. WPCode, the plugin used to add the snippet, is free.
Does it work with Elementor, Divi, Gutenberg and block themes?
Yes. The snippet is added site-wide, outside the page builder, so it works the same whatever builder or theme you use.
Can it answer from my posts and pages?
Yes. Add your site's address in ChatBento and it reads your published posts and pages through your links and sitemap, including WordPress's built-in wp-sitemap.xml and Yoast or Rank Math sitemaps. Pages hidden from search engines are skipped.
Will it slow down my WordPress site?
It shouldn't. The script is about 9 KB compressed, loads asynchronously after your page, and keeps the chat window hidden until a visitor opens it. Nothing extra runs on your WordPress server.
Do I need a WordPress chatbot plugin?
No chatbot plugin is needed. A small code plugin like WPCode is the easiest way to add the line, or you can use your child theme's functions.php with no plugin at all.
How much does ChatBento cost?
ChatBento has three plans: Hobby at $14/month, Standard at $30/month and Pro at $100/month. Every plan starts with a 7-day free trial (card required), and you can cancel anytime from your dashboard.
Add AI support to your WordPress site. Live in minutes.
Paste your WordPress site address
Build and test free, no card. Then 7 days free on your site, from $14 a month after. See pricing