Any website (HTML)
Paste one script tag before </body>.
In your SearchBox dashboard, open Spotlights, pick your spotlight, then Widget → Embed Code, and copy the snippet.
<!-- SearchBox AI Widget -->
<script src="https://yoursearchbox.com/widget/searchbox-cmdk.js"
data-bot-id="YOUR_BOT_ID"
data-api-key="YOUR_WIDGET_KEY"
data-layout="bottom"
async></script>- 1Add your website under Widget → Domain Access before you paste the code. The widget won't load on a domain that isn't listed.
- 2Paste the snippet just before the closing </body> tag on every page where you want the widget. Usually that's a shared footer or layout file.
- 3Save, publish, and reload your site.
Layouts
- data-layout="bottom" shows the search bar docked at the bottom of the page.
- data-layout="launcher" shows a small button that opens the search box.
Something unclear? Tell us and we’ll fix this page.