Widget Installation Guide
Basic Installation
Add the ChatSupport AI widget to your website in just one line of code
Copy and paste the following code snippet just before the closing </body>
tag of your website:
HTML
<script src="https://supportgenie.online/widget.js" data-id="YOUR_WIDGET_ID"></script>
Replace YOUR_WIDGET_ID
with the widget ID from your dashboard.
HTML Installation
Detailed HTML installation instructions
For a standard HTML website, add the following script tag before the closing </body>
tag:
HTML
<script
src="https://supportgenie.online/widget.js"
data-id="YOUR_WIDGET_ID"
></script>
1
2
3
4
Advanced Configuration
Customize the widget behavior with additional attributes
You can customize the widget by adding additional data attributes:
HTML
<script
src="https://supportgenie.online/widget.js"
data-id="YOUR_WIDGET_ID"
data-position="right"
data-auto-open="false"
data-auto-open-delay="5"
data-primary-color="#000000"
></script>
1
2
3
4
5
6
7
8
Available Attributes:
data-position
Widget position (right/left)data-auto-open
Automatically open the widget (true/false)data-auto-open-delay
Delay in seconds before auto-openingdata-primary-color
Primary color (hex code)data-text-color
Text color for buttons and headers (hex code)data-api-url
Custom API URL (for self-hosted instances)