Overview
The AI Chat Extension SDK provides extensive customization options to ensure the chat experience seamlessly matches your extension’s brand identity. You can customize logos, colors, UI styles, and behavior.Branding configuration
Chat badge
The chat badge is the floating UI element that appears when shopping queries are detected.- Format: PNG, SVG, or JPG
- Size: 200x200px minimum (square aspect ratio)
- Background: Transparent PNG recommended
- File size: <100KB for best performance
Chat panel
The chat panel is the 400px sidebar that contains the full AI conversation interface.Color customization
Color palettes
Define primary and secondary color palettes for the chat UI:Color usage
- Primary colors: Used for buttons, links, active states, and key UI elements
- Secondary colors: Used for backgrounds, hover states, and subtle UI elements
Brand-specific examples
- Blue theme
- Purple theme
- Orange theme
- Dark theme
Custom styles
Panel container
Customize the main chat panel container:- Layout:
padding,margin - Background:
backgroundColor - Border:
borderLeft,borderRight,borderTop,borderBottom,borderRadius
Chat content card
Customize the card containing chat messages:Close button
Customize the panel close button:Complete styling example
Disclaimer text
Customize the disclaimer text shown while the chat is loading:"AI responses may contain errors"
Use cases:
- Legal disclaimers
- Custom warnings
- Brand-specific messaging
Logo customization
Using logo URLs
The simplest approach is to provide logo URLs:Hiding the logo
To hide the logo entirely:Message limits
Control the maximum number of messages per conversation:- Short sessions: 20-30 messages
- Standard sessions: 50-75 messages
- Extended sessions: 100+ messages
Complete customization example
Here’s a fully customized configuration:Preview your customization
To see your customization in action:1
Test on Google Search
Navigate to Google Search and search for “best headphones” or another shopping query
2
Verify badge appearance
Check that the chat badge appears with your custom logo and suggested prompts
3
Open chat panel
Click the badge or a suggested prompt to open the chat panel
4
Verify panel styling
Confirm your custom colors, styles, and branding appear correctly in the panel
Best practices
1. Maintain brand consistency
1. Maintain brand consistency
Use the same colors, logos, and styling as your main extension UI to create a cohesive experience.
2. Test on light and dark pages
2. Test on light and dark pages
Test your customization on both light and dark websites to ensure readability:
3. Keep logos optimized
3. Keep logos optimized
- Use SVG for scalable logos
- Optimize PNG files to <100KB
- Serve logos from a CDN for fast loading
4. Use accessible colors
4. Use accessible colors
Ensure sufficient contrast for readability:
- Text on backgrounds: 4.5:1 contrast ratio minimum
- Buttons and interactive elements: 3:1 contrast ratio minimum
5. Test responsiveness
5. Test responsiveness
The chat panel is fixed at 400px width, but test on different screen sizes to ensure it doesn’t obscure critical page content.
Troubleshooting
Logo not appearing
Logo not appearing
Causes:
- Invalid logo URL
- CORS restrictions on logo image
showLogo: falseis set
- Verify logo URL is accessible
- Host logo on a CDN with CORS enabled
- Check
showLogoistrue(default)
Custom styles not applying
Custom styles not applying
Causes:
- Typos in CSS property names
- Invalid CSS values
- Properties not supported
- Use React.CSSProperties type for autocomplete
- Test styles in browser DevTools first
- Refer to supported properties list above
Colors look different than expected
Colors look different than expected
Causes:
- Page CSS interfering with panel
- Browser color profile differences
- Transparency/backdrop filter effects
- Test on multiple browsers
- Use specific color values (not theme keywords)
- Adjust transparency levels

