The script snippet (recommended)
This adds the floating chat bubble to your site:YOUR_CHATBOT_ID with your chatbot ID from the Installation page,
or just copy the pre-filled snippet there. Paste it into your site’s HTML;
inside <head> or before </body> both work, since the loader is
asynchronous and does not block your page.
The script URL accepts a few options:
Combine them like any query string:
.../widget/YOUR_CHATBOT_ID.js?hideBubble=true&delay=2000.
Inline embed
To place the chat inside the page (a support page, a help center) instead of floating over it:iFrame
When you cannot run scripts at all (some site builders and portals), embed the chat page directly:Platform guides
- WordPress
- Shopify
- Squarespace
- Wix
- Webflow
- Framer
Use the official plugin; no code needed:
- In WordPress admin, go to Plugins → Add New and search for SiteGPT.
- Install and activate the plugin.
- Open the SiteGPT menu in the WordPress admin sidebar and paste your chatbot ID.
Verify it works
Open your site in a private browser window. The bubble should appear within a few seconds. Ask a question you know the chatbot can answer.The bubble does not appear
The bubble does not appear
Check that the snippet is on the page (view the page source and search
for
sitegpt), and that your chatbot ID matches the Installation page. Content
blockers and strict Content-Security-Policy headers can also block the
script; allow sitegpt.ai in your CSP if you use one.It appears on some pages but not others
It appears on some pages but not others
The snippet must be on every page where you want the chat. Site-wide
layouts, theme footers, or a tag manager get it everywhere at once.
I want to control it from my own code
I want to control it from my own code
The JavaScript SDK opens and closes the widget,
sends messages, injects CSS, and identifies logged-in users. The
tracking events page covers analytics.