Skip to main content
Open Installation in your chatbot’s sidebar. It shows your chatbot ID and ready-to-copy snippets. Everything on this page works on any website; the platform sections below just show where to paste. This adds the floating chat bubble to your site:
Replace 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:
The iframe shows the full chat experience but cannot offer the floating bubble, SDK control, or tracking events on the host page. Prefer the script when possible.

Platform guides

Use the official plugin; no code needed:
  1. In WordPress admin, go to Plugins → Add New and search for SiteGPT.
  2. Install and activate the plugin.
  3. Open the SiteGPT menu in the WordPress admin sidebar and paste your chatbot ID.
The plugin loads the same widget as the script snippet, so the SDK and tracking events work identically. Prefer a code approach? Paste the script snippet with a plugin like WPCode, or in your theme’s footer.

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.
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.
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.
The JavaScript SDK opens and closes the widget, sends messages, injects CSS, and identifies logged-in users. The tracking events page covers analytics.