Installation methods
Choose one installation method:- Option A: Direct HTML embed — recommended for most sites
- Option B: Tag Manager — if your organization manages scripts through Google Tag Manager or similar
Step 1: Generate a widget tag
- Navigate to Channels > Chat in Agent Studio
- Enable Chat as a channel
- Enter the domain name you wish to publish the widget on
- Configure styling and content settings
- Click Save and publish
- Navigate to the Embed tab
- Copy the unique script tag — it will look like:
Option A: Direct HTML embed
- Open the HTML template that loads on every page (often called your global layout, base template, or
index.html) - Paste the script tag just before the closing
</body>tag - Publish your website changes
Option B: Tag Manager (GTM)
Use this if your organization deploys scripts using Google Tag Manager or a similar tool.Always retrieve your actual script tag from Agent Studio (Channels > Chat > Embed tab). The tag below is an example only.
- In your Tag Manager, create a new Custom HTML tag
- Paste your script tag
- Set the trigger to All Pages
- Publish the container
Widget positioning
After installing the widget, you can control its position with CSS. The widget renders inside a#poly-ai-chat element.
Add a <style> block in the <body> of your page:
bottom and right to avoid overlap with cookie banners, navigation bars, or other fixed UI.
Widget icon sizes
| Device | Icon size |
|---|---|
| Desktop | 60px × 60px |
| Mobile | 44px × 44px |
Verification checklist
After publishing, verify the following:Quick verification steps
- Open your website in a private/incognito window
- Hard refresh (
Ctrl+Shift+RorCmd+Shift+R) to bypass cached scripts - Test on:
- A desktop browser (Chrome or Edge)
- A mobile device (iOS Safari or Android Chrome)

