Choose your integration approach and explore live demonstrations of the Spectrum Chat widget in action.
The simplest possible installation with zero configuration required. Just include the script and add the custom element - everything else is handled automatically!
<!-- Zero configuration - uses built-in defaults! --> <script src="dist/spectrum-chat.js"></script> <spectrum-chat></spectrum-chat>
Perfect for individual HTML pages or when you need granular control over each page. Add the chat widget directly to any HTML page using custom elements.
<!-- Include configuration -->
<script src="config.js"></script>
<!-- Include the script -->
<script src="dist/spectrum-chat.js"></script>
<!-- Add the chat widget (configured dynamically) -->
<spectrum-chat
id="spectrum-chat-widget"
api-url=""
tenant-id=""
title=""
intro-text=""
primary-color=""
position=""
width=""
height=""
></spectrum-chat>
<script>
// Configure with environment-specific settings
const config = window.SpectrumConfig.getConfig();
const chatElement = document.getElementById('spectrum-chat-widget');
chatElement.setAttribute('api-url', config.apiUrl);
chatElement.setAttribute('tenant-id', config.tenantId);
// ... set other attributes
</script>
Ideal for multi-page websites with shared templates. Configure once and the chat widget appears automatically on all pages with persistent conversation state.
<!-- Include configuration --> <script src="config.js"></script> <!-- Global configuration --> <script> // Configure with environment-specific settings window.SpectrumChatConfig = window.SpectrumConfig.getConfig(); </script> <!-- Include the script --> <script src="dist/spectrum-chat.js"></script>
Interactive conversation with AI assistant
Conversation continues across page navigation
Colors, size, position, and styling options
Works perfectly on desktop and mobile devices
Optimized for performance and quick initialization
Simple setup with minimal code required