Skip to main content

Overview

Bring Gorbit’s AI capabilities directly to your website with an embeddable chat widget. Built with Lit web components for maximum compatibility and minimal bundle size. The widget integrates seamlessly with any website, providing your visitors instant access to AI-powered conversations without leaving your page.

Features

  • Lightweight - ~100-150kb gzipped bundle
  • Fully Customizable - Colors, branding, and styling to match your site
  • Responsive - Desktop popup, mobile fullscreen
  • Shadow DOM Isolation - No style conflicts with your existing CSS
  • Real-time Streaming - Server-sent events (SSE) for fast responses
  • Session Persistence - Conversations survive page reloads
  • Two Display Modes - Floating launcher or inline embed

Quick Start

Add these few lines to your website:
That’s it! The widget will appear as a floating button in the bottom-right corner of your page.
Always use a limited-scope API key for the widget. The API key is visible in client-side code, so it should have restricted permissions and rate limits. Never use admin or full-access keys.

Display Modes

Launcher Mode (Default)

A floating button appears in the bottom-right corner. Clicking it opens a chat popup.
  • Desktop: 400x600px popup above the button
  • Mobile: Full-screen overlay for optimal mobile experience

Inline Mode

The widget embeds directly in your page layout. Perfect for dedicated support pages or knowledge bases.
The widget will fill its container’s dimensions in inline mode. Set the container size to control the widget size.

Configuration Options

Required Attributes

Optional Attributes

Configuration Examples

Basic Setup:
Full Customization:

Customization

Styling

The widget uses CSS custom properties for theming. All styles are scoped within Shadow DOM to prevent conflicts with your site’s CSS. Default Colors: Override via attributes:

Architecture

The widget communicates directly with your Gorbit backend using Server-Sent Events (SSE) for real-time streaming responses: Widget loads - Lightweight JavaScript bundle initializes the web component Session created - Widget creates a chat session via the Gorbit API User sends message - Request is sent to your Gorbit backend Streaming response - AI response streams back in real-time via SSE Markdown rendered - Responses are formatted with full markdown support

Browser Support

  • Chrome/Edge 90+ (Chromium)
  • Firefox 90+
  • Safari 15+
  • Mobile Safari (iOS 15+)
  • Mobile Chrome (Android)

Deployment

For detailed deployment instructions, including self-hosted setup and API key security best practices, see the Website Widget Deployment Guide.
Need help with setup? Contact your Gorbit administrator for API key configuration or deployment assistance.