Adding ScentBot to your website
ScentBot is a web component (<scentbot-widget>) that loads via a single script file. This guide covers the three steps to get it running on your page.
Step 1: Load the widget script
Add the ScentBot runtime script to your page. Place it before the widget tag, ideally in the<head> or at the end of the <body>:
<scentbot-widget> custom element. It loads asynchronously and initializes the widget once the DOM is ready.
Step 2: Load fonts
ScentBot uses Graphik and Dover Serif as its default fonts. Add the following@font-face declarations to your CSS:
Replace the
src URLs with the actual paths where your font files are hosted. ScentXP provides the default font files during onboarding. You can substitute your own brand fonts by overriding these declarations or using the styles attribute to load a custom CSS file.Step 3: Add the widget
Insert the<scentbot-widget> tag in your page markup. At minimum, you need the public-key attribute:
Typical setup
A common configuration includes user identification, positioning, and notification preferences:Full page example
Next steps
Configuration
All widget attributes — required and optional.
Events
Listen for cart events and control the widget programmatically.

