AI search on any website, with two script tags
No plugin for your platform? You don’t need one. Paste two script tags and your existing search box gets autocomplete, a results page with filters, AI answers and recommendations.
On every plan, Free included.
<script> window.shoofConfig = { appId: "your-store", apiKey: "shf_pub_…", answers: true, };</script><script src="https://api.shoofai.com/widget/shoof.js" defer></script> <!-- search inputs get autocomplete automatically --><div data-shoof-results></div>
<!-- A results page with filters, sorting and AI answers --><div data-shoof-results></div> <!-- Related items on a product or article page --><div data-shoof-related="sku-1-en" data-limit="4" data-title="You may also like"></div> <!-- Trending products, anywhere --><div data-shoof-trending="product" data-limit="4" data-title="Trending now"></div>
<script> window.shoofConfig = { appId: "your-store", apiKey: "shf_pub_…", resultsUrl: "/search", queryParam: "q", currency: "USD", fallbackUrl: "/search?old=1&q={q}", theme: { accent: "#0a7f5a", radius: "4px" }, };</script>
What two script tags give you
Autocomplete
Products with images and prices, suggested searches and categories as people type, on the search boxes you already have.
A results page
Filters, sorting and paging, with its state in the URL, so results can be shared and the back button works.
AI answers
An Ask AI panel with sources and follow-up questions, and an answer shown straight away for searches that are questions.
Recommendations
Related items on product and article pages, and trending items anywhere, each from one HTML attribute.
Analytics, sent for you
Clicks, views and purchases are reported automatically, and feed ranking, trending and your dashboard.
Right to left, built in
Labels in English or your own wording in any language, and right to left for Arabic, Persian and Urdu from your page’s language.
From nothing to search in three steps
It works wherever you can paste HTML: a theme file, a tag manager or your app’s layout.
- Send your records
Push your products or pages as JSON with the API, an SDK or one CLI command.
- Paste the script
Add your app ID and search key. Your search inputs get autocomplete automatically.
- Add a results element
Put one element on your search page, and it becomes the results page.
<script> window.shoofConfig = { appId: "your-store", apiKey: "shf_pub_…", answers: true, };</script><script src="https://api.shoofai.com/widget/shoof.js" defer></script> <!-- search inputs get autocomplete automatically --><div data-shoof-results></div>
import { ShoofClient } from "@shoof/js-client"; const client = new ShoofClient({ appId: "your-store", apiKey: "shf_pub_…",}); const res = await client.search({ q: "halden running shoes", lang: "en", facets: ["brand", "price"],});
curl https://api.shoofai.com/v1/apps/your-store/search \ -H "x-shoof-api-key: shf_pub_…" \ -d '{ "q": "halden running shoes", "lang": "en", "facets": ["brand", "price"] }' # → hits, facets, queryId, mode: "hybrid"
Made to look and behave like your site
Themed with CSS variables
Accent, radius, font and colours, set in the config or in your own stylesheet.
Your own result markup
Pass a function to render each result exactly the way your cards look.
Phones and keyboards
Works on small screens, and is keyboard and screen-reader accessible.
Consent-aware
With consent off, nothing is stored on the visitor’s device. It follows Google Consent Mode too.
A fallback of your choice
If Shoof AI can’t answer, visitors are sent to your site’s own search instead of an error.
Single-page apps
Start it yourself with one call, and mount autocomplete and results where your router puts them.
Which platforms does the widget work on?
Any site where you can add a script tag: custom storefronts, Shopify, Webflow, Magento, static sites and single-page apps. Your records are sent separately, as JSON through the API.
How do my products get into Shoof AI without a plugin?
Your backend, a scheduled job or your build sends them with the REST API, an SDK or the CLI, which imports a JSON file in one command.
Is the key in the page safe?
Yes. The widget uses a search key, which can only search, and you can limit it to your own domains. The admin key never leaves your server. About API keys.
Can I build my own UI instead?
Yes. The widget is optional: the typed JavaScript client and the REST API return everything it shows.