How the widget works
The Setch widget is a single script that adds a voice assistant to your pages. When a visitor opens it, it reads the visible content of the page they are on — headings, page metadata, and product data published as JSON-LD — and uses that context to answer their questions.
When the answer lives in a specific part of the page, Setch scrolls the visitor there and highlights it while it speaks. If the answer is on another page of your site, it can take them to that page and highlight the section on arrival.
Indexing happens in the visitor's browser: each page the widget runs on sends a snapshot to Setch. There is no server-side crawler, so keep the tag on every page whose content should be searchable.
Get an account token
Sign in to receive an account token. This token manages your sites and catalogs, so treat it like a password: use it only from trusted server-side code, and never put it in a web page, mobile bundle, or source control.
curl -X POST "$SETCH_API/api/auth/login/" \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "password": "YOUR_PASSWORD"}'Create a site key
Create a site with your token. The response contains a public site_key and a ready-to-paste snippet for that site.
curl -X POST "$SETCH_API/api/sites/create/" \
-H "Authorization: Token $SETCH_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Acme Store"}'The site key is a public identifier, not a credential — it is safe to ship in your HTML. You can also create a site and copy its snippet from the dashboard without touching the API.
Paste the snippet
Add the returned snippet just before </body> on the pages where Setch should be available. Use the snippet your deployment returns rather than guessing the widget or API host.
<script
src="https://setch.vercel.app/widget.js"
data-setch-site="site_abc123"
data-setch-api="https://setch.vercel.app"
async
></script>Reload the page and the Setch launcher appears. Open it, allow microphone access, and ask a question about the page.
Before you go live
- Voice needs the Setch API deployment to have its voice provider configured; without it, sessions return 503.
- Paid voice sessions draw from your wallet. Top it up first, or sessions return 402.
- Keep the tag on every page you want searchable — pages without it are never indexed.