This demonstrates how customers would implement the chat widget on individual HTML pages using the custom element approach.
✨ Custom Element Usage
For plain HTML pages, customers need to add the chat widget to each page individually.
This uses the custom element approach with the <spectrum-chat> tag.
<!-- Include the script once per page -->
<script src="dist/spectrum-chat.js"></script>
<!-- Minimal usage - uses built-in defaults -->
<spectrum-chat></spectrum-chat>
<!-- Or with custom configuration -->
<spectrum-chat
api-url="http://localhost:8000/api/v1/conversations"
tenant-id="your-tenant-id"
title="AI Assistant"
debug="true"
></spectrum-chat>
🎉 Success Criteria
Chat widget appears in bottom-right corner
Uses built-in defaults (320px × 350px)
Customizable via HTML attributes (optional)
Works on individual pages
No JavaScript configuration needed
Single-line installation possible
🔧 Configuration Options
The custom element supports many configuration options via HTML attributes.
All attributes are optional and have sensible defaults.