Integrations
Shopify: product catalog
How to connect your Shopify store to Clovie: custom app, token, product webhooks.
Once you connect the catalog, the assistant knows your products, prices and availability. It recommends them in the conversation as cards with a buy button and says plainly when something is out of stock.
Shopify has no plugin to download. Event sync works through native Shopify webhooks, which Clovie registers on its own when you connect the store; you paste the chat widget as a snippet in your theme. A public app in the Shopify App Store (OAuth + App Embed) is a separate, later phase.
As of: 2026-10-16.
Setup in Shopify admin (custom app)
- Settings → Apps and sales channels → Develop apps (the first time: Allow custom app development).
- Create an app (for example “Clovie”) → Configure Admin API scopes → select
read_productsandread_orders→ Save. - Install app → copy the Admin API access token (
shpat_…, shown only once). - From the API credentials tab, also copy the API secret key: Clovie uses it to verify the HMAC signatures of webhooks.
Setup in the Clovie dashboard
- Assistant setup → Integrations step → Online store card → Shopify platform.
- Enter the Store URL (
https://your-store.myshopify.com), the Admin API access token and the API secret key. - Test connection → Connect store. Clovie:
- starts the first full catalog sync (GraphQL Admin API),
- registers the webhooks
products/update,products/delete,orders/createathttps://clovie.pl/api/webhooks/catalog/shopify/[orgId](the subscription IDs are kept in the configuration, and disconnecting the store unregisters them).
Chat widget in your store
Online Store → Themes → Edit code → theme.liquid → before </body>, paste the embed snippet
from the Installation step (the pk_live_… key); add the store's domain to the allowed domains.
Limitations of v1
- Changes to stock levels alone (inventory_levels) don't carry a product ID in the payload.
Sales (
orders/create) and a periodic fallback sync (every 6 h) cover them. - A custom app is per store: each assistant with a store needs its own app and tokens.
Common errors
| Symptom | Solution |
|---|---|
| 401/403 during the test | Check the shpat_… token and the read_products scope; the token works only after Install app |
| “Couldn't register the Shopify webhooks” | Check the read_orders scope; the catalog works anyway (fallback sync), connect again after the fix |
| Webhook 403 in the logs | The API secret key in the dashboard ≠ the app's secret. Paste it again from API credentials |
| No widget in the store | The snippet isn't pasted in theme.liquid, or the domain isn't on the allowed domains list |