In the app: Agent Settings → Widget → Install → Install code. In Bubble: Settings → SEO / metatags → Script/meta tags in header.
How do I get my snippet?
1
Copy the Install code
In SmartAlex open Agent Settings → Widget → Install → Install code and press Copy. Your
data-tenant-id is filled in. A connected AI app can fetch it too.2
Turn the widget on
Switch on Show widget on my website in the same place.
How do I add it to every page?
1
Open app settings
In the Bubble editor go to Settings, then the SEO / metatags tab.
2
Paste into the header field
Find Script/meta tags in header and paste the tag. It is added to every page of your app.
3
Deploy
Click Deploy to push to live, then open your live address.
How do I add it to one page?
1
Drag in an HTML element
From Visual elements, drag an HTML element onto the page. A small hidden one is fine, because the widget floats over the page.
2
Paste the tag
Double-click the element and paste the tag into its content.
3
Preview
Click Preview. The widget is fixed to the browser window, not to the element.
Which widget style should I pick?
You choose the style in Agent Settings → Widget, not in Bubble. Widget v2 gives voice and chat in one window. Pill, Chat bar, Side panel and Voice pill are the others, and only one widget is active per workspace. See Widgets.What should I watch for in Bubble?
- Preview and live: the widget works in both once the tag is there. Preview runs the development version and Deploy publishes.
- One copy only: do not paste the tag in both the header and an HTML element on one page.
- Consent banners: if a script blocker is in use, allow
api.getsmartalex.com. - Allowed websites: if you set that list in Agent Settings → Widget, add your Bubble domain. See Installing the widget.
Questions people ask
Do I need a paid Bubble plan?
Do I need a paid Bubble plan?
The app-wide header field needs a paid Bubble plan, so on the free tier use an HTML element, which works on any plan.
Why do I see two widgets?
Why do I see two widgets?
The tag is loaded twice. Do not paste it in both the header and an HTML element on one page, and keep it out of repeating groups.
Does Bubble's responsive engine affect the widget?
Does Bubble's responsive engine affect the widget?
No. The widget floats above the page in a fixed position, so Bubble layouts and breakpoints do not move it and you need not reserve space.
Related
Installing the widget
The full install guide and fixes.
Widgets
The five styles, colours and limits.
Next.js and Vercel
The widget in a React front end.
Build overview
Guides for every builder.

