You can customize your widget's main appearance in the Dashboard.
However, if there are time where you need to change the widget's appearance only in specific instances, you can use the configure() method.
For example, you can show the agent card on the landing page, but show a small bubble in your app's dashboard to avoid taking too much space
You have access to the following options:
HEYO.configure({
widgetColor: '#10b981',
widgetStyle: 'bubble',
widgetPosition: 'right',
widgetSize: 'medium',
});
bubble or agent-card.left or right.small, medium, or large.Change the style of the widget with the widgetStyle option.
bubble: Simple floating buttonagent-card: Agent info with avatar and statusHEYO.configure({ widgetStyle: 'bubble' });
Match your brand colors:
HEYO.configure({ widgetColor: '#ef4444' });
Adjust the widget size:
small: Smaller sizemedium: Default sizelarge: Larger size (only available for bubble style)HEYO.configure({ widgetSize: 'small' });
Place the widget on either side:
left: Bottom-left cornerright: Bottom-right cornerHEYO.configure({ widgetPosition: 'right' });
Different styles per page:
// Landing page - prominent agent card
if (window.location.pathname === '/') {
HEYO.configure({
widgetStyle: 'agent-card',
widgetSize: 'large',
widgetPosition: 'right',
});
}
// Dashboard - minimal bubble
if (window.location.pathname.includes('/dashboard')) {
HEYO.configure({
widgetStyle: 'bubble',
widgetSize: 'small',
widgetPosition: 'left',
});
}
A/B testing different styles:
// Random A/B test
const showAgentCard = Math.random() > 0.5;
HEYO.configure({
widgetStyle: showAgentCard ? 'agent-card' : 'bubble',
});
That's it! You now know how to make Heyo match your website's design perfectly.