Script embed (recommended)
The simplest way to add Tiny Talk to your website. Paste this snippet before the closing</body> tag:
YOUR_BOT_ID with your agent’s ID, found in your agent settings under General.
The messenger appears as a floating chat bubble in the bottom-right corner of your site by default.
ES Module embed
For programmatic control, import the SDK as an ES module. This is ideal for SPAs, bundled apps, or when you need to initialize the messenger dynamically:window.tinytalk API (see Controlling the widget below).
Iframe embed
If you prefer to embed the agent inline within your page layout:Platform-specific guides
WordPress
WordPress
Install the official Tiny Talk WordPress plugin for the best experience — it supports per-page agent rules, page overrides, and shortcodes.For a quick manual setup, paste the script embed code before the closing
</body> tag using a plugin like Insert Headers and Footers.See the full WordPress integration guide for details.Shopify
Shopify
- Go to Online Store → Themes → Edit Code
- Open
theme.liquid - Paste the script embed code before the closing
</body>tag - Save
Wix
Wix
- Go to Settings → Custom Code
- Click Add Custom Code
- Paste the script embed code
- Set placement to Body - End
- Apply to All Pages
Webflow
Webflow
- Go to Project Settings → Custom Code
- Paste the script embed code in the Footer Code section
- Save and publish
Squarespace
Squarespace
- Go to Website → Pages → Website Tools → Code Injection
- Paste the script embed code in the Footer section
- Save
Next.js / React
Next.js / React
Add the script using the
next/script component or a useEffect hook:Custom positioning
By default, the widget appears in the bottom-right corner. You can change the position in the dashboard under Messenger → Appearance → Messenger Position (left or right).Controlling the widget
The SDK exposes a globalwindow.tinytalk object for programmatic control. You can toggle the messenger open or closed from any element:
Dynamic knowledge base
You can inject page-specific content into your agent’s knowledge base at runtime using thedata-tiny-options attribute. This is useful for giving the agent context about the current page without uploading it to the Knowledge Base:
data-tiny-options via a MutationObserver, so you can update the content dynamically — for example, when the user navigates to a different page in a SPA:
Allowed origins
For security, you can restrict which domains are allowed to load your agent. Go to Settings → Domains → Allowed Origins and add your domain(s). If no origins are configured, the agent can be embedded on any site.Custom domains
Serve your agent from your own subdomain (e.g.,chat.yourcompany.com). The Pro plan includes one custom domain, and other paid plans can add custom domains as an add-on. See the full Custom Domains setup guide.
Mobile considerations
The chat widget is fully responsive and works on mobile browsers. A few notes:- The widget automatically adjusts to mobile screen sizes
- On iOS Safari, the widget handles input focus and zoom behavior
- The launcher button is touch-friendly with appropriate tap targets