Overview
The AI Chat SDK provides extensive customization options to ensure the chat experience seamlessly matches your application’s brand identity. You can customize logos, colors, UI styles, layout, and behavior.Logo customization
Using logo URLs
Provide a logo URL to display in the chat panel header:- Format: PNG, SVG, or JPG
- Size: 200x200px minimum (square aspect ratio recommended)
- Background: Transparent PNG recommended
- File size:
<100KBfor best performance
Hiding the logo
To hide the logo entirely: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
Layout customization
Position and size
Control where the chat panel appears on the page:- Bottom panel
- Floating window
Visual styling
Customize the panel’s visual appearance:Component styling
Panel container
Customize the main chat panel container:- Layout:
padding,margin - Background:
backgroundColor,backdropFilter - Border:
border,borderLeft,borderRight,borderTop,borderBottom,borderRadius
Chat content card
Customize the card containing chat messages:Input field
Customize the message input area:Message bubbles
Customize user and assistant message appearance:Prompt suggestions
Customize prompt badge styling:Error messages
Customize error display styling:Top merchants
Customize merchant list styling:Close button
Customize the panel close button:Content customization
Input placeholder
Customize the input field placeholder text:Error messages
Customize error message text:Disclaimer text
Customize the disclaimer text shown during chat:"AI responses may contain errors"
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:Best practices
1. Maintain brand consistency
1. Maintain brand consistency
Use the same colors, logos, and styling as your main application 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 backgrounds 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 customizable in size, but test on different screen sizes to ensure it doesn’t obscure critical page content.
6. Consider mobile users
6. Consider mobile users
If your app is used on mobile, consider responsive sizing:
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 TypeScript for autocomplete and type checking
- Test styles in browser DevTools first
- Refer to supported properties in this guide
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
- Check Shadow DOM isolation is working
Panel overlapping page content
Panel overlapping page content
Causes:
- Incorrect positioning
- Size too large for viewport
- Z-index conflicts
- Adjust position and size values
- Test on different screen sizes
- The SDK automatically manages z-index

