No-CodeBeginner

How to Embed a Chatbase Chat Widget on Your Website

Copy the Chatbase embed snippet, drop it into your site, and customize the bubble color, position, and welcome message without code.

6 minBeginner

Once a Chatbase agent is trained, you publish it as a floating chat bubble with a single script tag. The same snippet works on a hand-coded site, a CMS, or a no-code builder like Framer or Webflow. This guide covers getting the snippet, placing it correctly, and customizing the look.

What you need

  • A trained Chatbase agent (see the training guide)
  • Access to your site's HTML, theme editor, or a custom-code block
  • Your agent's Chatbase ID, shown on the Connect tab

Step 1: Open the Connect tab

Inside your agent, open Connect, then Embed. Chatbase offers two modes: a floating bubble that sits bottom-right on every page, and an iframe you place inside a specific container. The bubble is right for support; the iframe is right for a dedicated help page.

Step 2: Copy the bubble snippet

Copy the script tag. It loads the Chatbase embed library and points it at your agent by ID. Paste it just before the closing body tag so it loads after your page content.

before </body>
<script>
  window.chatbaseConfig = { chatbotId: "abc123XYZ" };
</script>
<script
  src="https://www.chatbase.co/embed.min.js"
  id="abc123XYZ"
  defer>
</script>
Where to paste in a no-code builder
In Webflow use Project Settings > Custom Code > Footer Code. In Framer use the Site Settings > Custom Code > End of body field. In WordPress, a snippet plugin or the theme footer works.

Step 3: Customize the bubble

Back in Chatbase, the Chat Interface settings let you set the accent color, the bubble icon, the initial greeting message, and the alignment. These are saved server-side, so changes apply without editing your embed code again.

Chatbase — Chat Interface
Chat Interface
----------------------------------------
Display name Acme Helper
Initial message Hi! Ask me anything.
Theme Light (Dark)
Accent color #4F46E5
Align bubble Right (Left)
Auto-open delay none (3s)
[ Save changes ]
Branding the widget before it goes live.

Step 4: Publish and test live

Publish your site, then load it in a private window so caching does not hide the change. The bubble should appear bottom-right. Click it, ask a question, and confirm the greeting and color match your settings.

yoursite.com — live page
Agent
Hi! Ask me anything.
You
How do I reset my password?
Agent
Go to Settings > Security and click Reset password. We will email you a link that expires in 30 minutes.
The floating bubble on a published page.

Result

Your bot is now live as a branded bubble on every page that includes the snippet. To restrict it to certain pages, add the script only to those page templates instead of the global footer.

Watch related tutorials

Tags
#chatbase#embed#widget#website#no-code