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 provides a drop-in solution for adding conversational AI to any website. It handles all the complexity of API integration, session management, and UI rendering.
Quick Embed
Step 1: Get Your Channel ID
- Go to Channels in the dashboard
- Open your channel
- Copy the Channel ID from the channel overview card
Step 2: Add to Your Website
Add this code to your website's HTML, preferably before the closing tag:
text
html
That's it! The chat widget will appear on your website.
Customization
Position
Change where the widget appears:
javascript
Theme
Choose a visual theme:
javascript
Custom Greeting
Set a custom welcome message:
javascript
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
text | string | required | Your channel's unique identifier |
text | string | text | Absolute URL to your AI Gateway hosting |
text | string | text | Widget position |
text | string | text | Visual theme |
text | string | text | Custom greeting message |
text | boolean | text | Show "Powered by Vindex Ai" |
text | string | text | Chat window height |
text | string | text | Chat window width |
Advanced: API Integration
For custom implementations, see our API Reference.