AI chat for your website
Click the chat button in the bottom right corner to open the widget. You can also control it using the buttons below:
Add this code to your website before the closing </body> tag:
<script src="https://shopping-assistant-widget.dev.looky.team/loader/loader.js" data-chat-id="YOUR_CHAT_ID" data-widget-url="https://shopping-assistant-widget.dev.looky.team/widget/" data-primary-color="#3B6BF5"> </script>
You can pass event callbacks on initialization. onAddToCart is called when the user clicks «Add
to cart» on a product in the chat — the callback receives an object with id, title,
link, price, image, brand, etc. Use these to add the product
to the cart on your site (by id or via your own API).
<script src="https://shopping-assistant-widget.dev.looky.team/loader/loader.js"></script>
<script>
LetsBuyWidget.init({
// Required
chatId: 'YOUR_CHAT_ID',
// Appearance
position: 'bottom-right', // 'bottom-right' | 'bottom-left'
primaryColor: '#3B6BF5',
bubbleSize: 60,
bubbleIcon: '', // HTML/SVG for the button (built-in icon by default)
bubbleIconUrl: '', // Image URL for the bubble icon (overrides bubbleIcon)
bubbleIconSize: 48, // Icon size inside the bubble (px, square)
bubbleBorderRadius: 4, // Bubble border-radius in px (0 = square, 30 = circle)
title: 'LetsBuy AI', // Widget title
// Content
welcomeMessage: 'Hi! I\'ll help you find the perfect outfit.',
welcomeQuestions: [
'Help me find an outfit from the new collection',
'Winter trends',
'Current promotions',
'Question about delivery or returns',
],
policyUrl: 'https://example.com/privacy-policy',
agentAvatarUrl: 'https://example.com/avatar.png',
currencySymbol: '£',
bannerInfoMessage: '#', // Text sent when "learn more" is clicked in the banner
// Behavior
autoOpen: false,
autoOpenDelay: 3000,
hideOnMobile: false,
language: 'en', // 'ru' | 'en'
zIndex: 999999,
// URLs
widgetUrl: 'https://shopping-assistant-widget.dev.looky.team/widget/',
agentUrl: '', // Direct agent URL (to bypass proxy)
// Events
onReady: () => console.log('Widget ready'),
onOpen: () => console.log('Chat opened'),
onClose: () => console.log('Chat closed'),
onMessage: (msg) => console.log('Message:', msg),
onAddToCart: (product) => {
console.log('Add to cart:', product);
// Добавьте товар в корзину по product.id или product.link
}
});
</script>