Grounded for Shopify
A Shopify store can have the assistant on every page and keep it in step with the store, without installing an app: the widget is one snippet in the theme, the content comes through the store's own sitemap, and Shopify Flow can tell Grounded when a product changes. Grounded is not an app in the Shopify App Store; nothing here asks for access to your store's data.
The assistant answers from your published pages, as a customer sees them, not from your catalogue: prices and stock are as current as the page. Auto-sync, which this builds on, is part of Pro and Business.
Put the widget on the store
Open the bot's Install page for its key, and add your store's domains under Allowed domains:
the one customers use and your .myshopify.com one. Then add the snippet to the theme in either
place:
- Edit code. In Online Store → Themes → … → Edit code open
layout/theme.liquidand paste the snippet just before</body>. - Without touching code. In the theme editor add a Custom Liquid section (in the footer) and paste the snippet there.
<script
src="https://grounded.buzz/widget.js"
data-bot="pk_your_bot_key"
data-position="right"
async
></script>
Check it on the live store. The widget only answers on the domains you allowed, so it may stay silent inside the theme editor's preview.
Point the bot at the store
Every Shopify store publishes a sitemap at /sitemap.xml. It is an index with one sitemap each for
products, collections, pages and blog posts, and <lastmod> on every page. On the bot's Documents
page choose Add documents → Sitemap, paste https://your-store.com/sitemap.xml, press Preview,
and keep Keep in sync ticked.
We read one public store's sitemap this way, on 13 October 2026 (allbirds.com): 2 297 pages with
<lastmod>, of which 1 346 were collection pages, 692 products, 174 pages and 82 blog posts. So:
- Under Only paths starting with put
/products/,/pages/and/blogs/. A collection page is a list of products with filters, and a store has far more of them than it has things worth answering from. - Preview follows up to 20 of the sitemaps the index lists. A store with a very large catalogue, or with many pages of its own, lists more than that. The first twenty are read.
- Shopify's default
robots.txtblocks cart, checkout, account and sorted or filtered collection pages. Grounded respects it and reads none of those. (Reading its patterns correctly mattered: a rule such as/*/collections/*sort_by*once closed the whole store to us. It no longer does.)
The sitemap is what Grounded reads at its scheduled runs (every day on Pro, every hour on Business).
Tell Grounded when a product changes
Shopify Flow can send a request when a product is updated, which makes a change show up in minutes rather than at the next scheduled run. We have not run this Flow ourselves: it follows Shopify's documentation, and whether Flow and its HTTP request action are available depends on your Shopify plan. If they are not, skip this section. The scheduled runs keep the assistant in step on their own.
In the dashboard, open the sitemap source's card under Webhook, press Create secret and copy the secret and the address (Webhooks). Then in Shopify go to Apps → Flow → Create workflow:
- Trigger: Product updated.
- Action: Send HTTP request.
Method:
POST. URL: the webhook address from the card.Headers:
Authorization: Bearer whsec_…(your secret) andContent-Type: application/json.Body, with your own domain:
{ "urls": ["https://your-store.com/products/{{product.handle}}"] }
- Turn the workflow on. Make a second one with the trigger Product deleted, and the same action, to remove a product from the bot when it goes.
Edit a product, then look at Webhook: last called on the source's card: it should move within a
minute. If it does not, open the workflow's run history in Flow; a 401 means the secret is wrong,
and the response says why for the other refusals.
Know that:
- The secret sits in the workflow, visible to anyone who can edit Flow.
- A bulk edit of many products runs the workflow once per product. Grounded accepts 30 calls a minute per source, so a large bulk edit is partly covered by the scheduled run instead.
- Only products are covered. Pages and blog posts changed in the admin reach the bot at the next scheduled run.
- Prices and stock that change without anyone editing the product (an order selling the last one, a scheduled sale) change the page too, and are read at the next scheduled run.
Why there is no app
An app would store a token for your shop, answer Shopify's privacy webhooks and go through App Store review, for what a snippet, a sitemap and a workflow already do. If you want one, tell us: it is built when a store asks.