What you can do:
Put your AI agent in front of every visitor to your Framer site, answering questions without them leaving the page.
Before you start
- A Chatbase account with an AI agent. If you haven’t built one yet, follow Your first AI agent.
- A Framer website project you can edit.
How to embed your AI agent
1
Copy your embed code
- Log into your Chatbase account and navigate to your dashboard.
- On the list of available AI agents, click the one you want to integrate into your Framer website.
- Click Channels in the left sidebar, then click Manage on the Chat Bubble card (or Setup, if you haven’t configured it yet).
- Click Deploy and select the Website widget embed type. Scroll down and click Copy to copy the provided script.

2
Open your Framer project
Sign in to Framer, go to your project dashboard, and click the website project you want to embed your AI agent in.

3
Open the page settings
Locate the page you want the AI agent on in the left side of the editor, click the three-dot icon next to the page name, then click Settings.

4
Paste the embed code
On the Settings page, scroll down to the section labeled Custom Code. Paste your embed code in the first box, labeled “Start of <head> tag”, then click Save in the top-right corner of the panel.

You should now see a floating Chatbase AI agent icon on your Framer website, on the page you added it to.

Allow your framer.app address
If you turned on Only allow embedding the agent on specific domains in the Specific domains card of the Deploy sheet, add the Framer address you preview or stage on as well as your custom domain. For example (example values):https:// or http:// matches only https pages. https://*.framer.app also works, but it lets every Framer site embed your AI agent. See Deploy button.
Troubleshooting
The Chat Bubble shows on one page but disappears on others
The Chat Bubble shows on one page but disappears on others
This usually means the script was added to a single page’s Custom Code, so it doesn’t load on the other pages. Move it to your site-wide custom code, then publish again.
The Chat Bubble doesn't appear at all
The Chat Bubble doesn't appear at all
Possible causes:
- Specific domains is on and the Framer address you’re visiting isn’t listed. The browser console shows a message starting with
[Chatbase] Agentthat says the agent is not allowed on that origin. - The visitor’s country is in your blocked countries.
- Show to a percentage of visitors is on under Display > A/B testing, and this visitor isn’t in the sample.
- The code was pasted into an embed component on the canvas instead of Custom Code. If Framer runs that component in its own frame, the bubble is clipped to the component’s box.
You can customize the appearance and colors of your AI agent on your Chatbase dashboard. Go to your dashboard, choose an AI agent, click Channels in the left sidebar, click Manage on the Chat Bubble card, then open the Display tab to edit Content, Capabilities, Colors, Floating bubble, and Localization.
Frequently asked questions
Should I add Chatbase to one Framer page or the whole site?
Should I add Chatbase to one Framer page or the whole site?
The whole site, unless you only want the AI agent on specific pages. Site-wide custom code loads the script everywhere. For specific pages, paste it into the Custom Code of each of those pages.
Can I load the Chatbase script in the head on Framer?
Can I load the Chatbase script in the head on Framer?
Yes. The script waits for the page to finish loading before it adds the Chat Bubble, so placing it at the start of the
<head> tag works. Chatbase’s dashboard suggests the end of the body, before the closing </body> tag, which also works.How does the Chat Bubble look on mobile Framer layouts?
How does the Chat Bubble look on mobile Framer layouts?
The Chat Bubble doesn’t follow your Framer breakpoints. Below 640px wide, the chat opens full screen; at 640px and above, it opens as a 406px-wide panel in the bottom corner.
Can I position the Chat Bubble anywhere on my Framer page?
Can I position the Chat Bubble anywhere on my Framer page?
No. It stays at the bottom of the screen, on the left or the right. Pick a side with Position in Display > Floating bubble. See Floating bubble.
Next steps
Customize the Chat Bubble
Match the widget to your brand colors, position, and copy.