Skip to content

Add an AI chatbot to any website with one script tag.

If your site isn't built with one of the site builders above, the install is the same idea: one script tag before the closing </body> tag, on every page. Most sites have one shared layout or footer template where it goes once.

Start free trial14 days free. No card required.

Install on Any website (HTML) in 5 steps

Where it goes: Before </body> in your shared layout or footer template

  1. 1

    In ChatBento, open your chatbot, go to Install and copy the one-line snippet.

  2. 2

    Open your site's shared layout or footer template (or each HTML page if there isn't one).

  3. 3

    Paste the snippet just before the closing </body> tag.

  4. 4

    Deploy or upload the change.

  5. 5

    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>

React, Vite and single-page apps

Put the script tag in index.html, before </body>. The widget attaches once and stays open across client-side route changes.

Next.js

Add it to your root layout with next/script: <Script src="https://chatbento.com/widget.js" data-bot-id="your-bot-id" strategy="afterInteractive" />. Data attributes are passed through to the script tag.

Content Security Policy

If your site sends a Content-Security-Policy header, allow https://chatbento.com in script-src (to load the widget) and in connect-src (for chat requests).

Your own button

Open the chat from any link or button with ChatBento.open(). ChatBento.close() and ChatBento.toggle() also work.

What the chatbot does on your 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.

From $8 a month

A 14-day free trial, then plans from $8/month: 80% less than Chatbase.

Comparing tools? See ChatBento vs Chatbase and pricing.

Any website (HTML) questions. Answered.

Does it work with Ghost, Hugo, Jekyll or Astro?

Yes. Add the script to the site footer or base layout. In Ghost that's Settings → Code injection → Site footer.

How big is the script?

About 6 KB compressed. It loads asynchronously, so it doesn't block your page from rendering.

Can I stop other sites from using my chatbot?

Yes. List your domains under Allowed websites in the Install tab. Requests from any other site are refused, so nobody else can use up your messages.

How much does ChatBento cost?

Plans start at $8/month (Hobby), with Standard at $30/month and Pro at $100/month. Every account starts with a 14-day free trial, no card required.

Add AI support to your site. Live in minutes.

14-day free trial. No card required.