Add an AI-powered chat agent to your website with a single line of code. The widget handles lead qualification, meeting booking, and pipeline generation autonomously.
Paste this snippet before the closing </body> tag on any page where you want the chat widget to appear.
<script
src="https://app.synaptiq.ai/widget.js"
data-tenant="YOUR_TENANT_ID"
></script>Replace YOUR_TENANT_ID with the tenant ID from your Synaptiq dashboard. The widget loads asynchronously and won't block your page rendering.
Customize the widget using data-* attributes on the script tag.
| Attribute | Default | Description |
|---|---|---|
| data-tenant | (required) | Your unique tenant ID. Routes conversations to your AI agent configuration. |
| data-position | bottom-right | Widget position. Options: bottom-right, bottom-left. |
| data-theme | dark | Color theme. Options: dark, light. |
| data-greeting | Hey there! How can I help you today? | The initial message shown when the chat opens. |
<script
src="https://app.synaptiq.ai/widget.js"
data-tenant="acme-corp-123"
data-position="bottom-left"
data-theme="light"
data-greeting="Hi! Looking to automate your sales pipeline?"
></script>Control the widget programmatically via the window.SynaptiqWidget global object, available after the script loads.
// Open the widget when a CTA button is clicked
document.getElementById('talk-to-ai')
.addEventListener('click', function() {
SynaptiqWidget.open();
});X-Tenant-Id header on all API requests.