The IllumiChat widget can be customized to match your website’s branding and design. This guide covers visual customization through data-* attributes, CSS overrides, and programmatic control via the SDK.
Set a custom greeting that appears when the widget opens for the first time.
Copy
<script src="https://widget.illumichat.com/v1/widget.js" data-assistant-id="your-assistant-id" data-greeting="Hi there! How can we help you today?" async></script>
If no greeting is set, the widget uses the assistant’s welcomeMessage from its configuration.
Display clickable question chips that visitors can tap to start a conversation quickly.
Copy
<script src="https://widget.illumichat.com/v1/widget.js" data-assistant-id="your-assistant-id" data-suggestions="What does your product do?,How much does it cost?,Can I see a demo?" async></script>
Separate questions with commas. These are displayed as buttons below the greeting message.
Keep suggested questions short (under 40 characters each) so they display well on mobile devices. Aim for 3-4 questions.
The widget uses Shadow DOM for style isolation. Standard CSS selectors will not affect widget internals. Use the CSS custom properties listed above for supported customizations.
// Change the primary color based on the pageIllumiChat.updateConfig({ primaryColor: '#10B981', greeting: 'Welcome to our pricing page! Any questions about our plans?',});
// Open the widgetIllumiChat.open();// Close the widgetIllumiChat.close();// Toggle open/closeIllumiChat.toggle();// Send a pre-filled messageIllumiChat.sendMessage('I want to learn about enterprise pricing');