Add AI chat to your website
Website Chat Widget
Add an AI-powered chat widget to your website in minutes.
Overview
The Vindex Ai chat widget is an elite, drop-in solution for adding conversational AI to any website. It handles API integration, session management, and UI rendering automatically.
Quick Embed
Step 1: Get Your Channel ID
- Go to Channels in your dashboard.
- Copy the Channel ID from your channel's Overview or Settings tab.
Step 2: Add to Your Website
Add this code to your website's HTML, preferably before the closing tag:
text
html
Using a CMS? See our Platform Integration Guides for step-by-step instructions for WordPress, Shopify, WooCommerce, and more.
Elite Features
1. Theme Awareness
The widget automatically detects your website's theme (light or dark mode) and adapts its UI to match seamlessly.
- : Automatically detectstextclass on your HTML/Body or system preference.text
- : Explicitly force a specific look.text
2. Proactive Greeting API
Engage users based on their behavior. You can programmatically open the widget and show a custom greeting using our JavaScript API.
javascript
Available Methods:
- : Opens the chat window.text
- : Closes the chat window.text
- : Toggles the window state.text
- : Opens the widget with a temporary custom welcome message.text
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
text | string | required | Your channel's unique identifier. |
text | string | text | The title shown in the widget header. |
text | string | text | The initial message shown below the title. |
text | string | text | Your primary brand color (HEX). |
text | string | text | text text text text |
text | string | text | text text text |
text | string/int | text | Width of the chat window. |
text | array | text | List of quick-start questions for the user. |
FAQ
Do I need a custom subdomain to host the widget?
No. You can serve the widget directly from your primary Vindex domain (). This ensures maximum security, performance, and simplified CORS handling.
text