# Widget## OverviewThe Widget is an embeddable chat component for external websites. It provides a complete chat experience in a compact, customizable format.## Widget FeaturesThe embedded widget includes:* Real-time streaming: Responses appear as they're generated
https://yourdomain.com### How It Works* Widget only loads on approved domains| ----------------------- | --------------------------------- |
| **Branded interface** | Matches your primary color |
| **Feedback collection** | Style based on template settings |
| **Citations display** | Format based on template settings |
| **Responsive design** | Works on desktop and mobile |
| **Session persistence** | Conversations saved in browser |## Implementation### Widget Mode (Floating Button)```html
<!-- Paste in your HTML before </body> -->
<script src="https://your-openrails-instance/widget.js"
data-bot-id="your-bot-id"></script>
```## Troubleshooting| Issue | Solution |
| ------------------- | ---------------------------- |
| Widget doesn't load | Check domain whitelist |
| Styling issues | Verify primary color setting |
| Chat not responding | Check bot is active |
| History not saving | Check browser localStorage |---**Related:** [Chatbots](./05-chatbots.md) | [Chatbot Options](./06-chatbot-options.md) | [API Keys](./09-api-keys.md)