Guides
Connect a Shopify store
Sync the catalogue automatically, keep prices live, and answer "where is my order?" only for the customer it belongs to.
Connect a Shopify store and engage-ai keeps your catalogue in sync on its own, and answers "where is my order?" from Shopify's live order data. No CSV exports, no prices that went stale last week.
What connecting does:
- Checks your access token with Shopify. If Shopify says no, nothing is saved.
- Imports every active product in the background.
- Subscribes to Shopify's product, stock and uninstall events, so changes reach the AI within seconds.
- Turns on order lookup in replies.
In the dashboard this is Online store, a four-step guided setup. Everything below is the same thing through the API.
1. Create an app in Shopify
In your Shopify admin:
- Settings → Apps and sales channels → Develop apps. The first time, accept Allow custom app development.
- Create an app, name it Engage.
- Configuration → Admin API integration → Configure, and tick the scopes
GET /stores/platformslists:
| Scope | What it is for |
|---|---|
read_products | Names, descriptions, prices, variants |
read_inventory | Stock levels |
read_orders | Order status and tracking |
read_customers | Finding orders by a customer's phone number |
- Under Protected customer data access, request customer email and phone. Without them, Shopify returns orders with those fields empty, and no order can be matched to the person asking — so the AI answers no order question at all.
- Install the app. Copy the Admin API access token (
shpat_…, shown once) and the API secret key.
Everything is read-only. engage-ai cannot change products, prices or orders.
Orders older than 60 days also need read_all_orders, which Shopify grants on request.
2. Connect
curl -X POST https://api.getengageai.app/stores/connect \
-H "Authorization: Bearer $ENGAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "shopify",
"storeId": "acme-outdoors.myshopify.com",
"credentials": {
"accessToken": "shpat_…",
"apiSecretKey": "…"
}
}'storeId is your myshopify.com address — acme-outdoors, acme-outdoors.myshopify.com and the admin URL all work. Your own domain (acme.com) does not: Shopify's API only answers on the myshopify address.
{
"store": {
"id": "5f0e…",
"platform": "shopify",
"storeId": "acme-outdoors.myshopify.com",
"displayName": "Acme Outdoors",
"currency": "GBP",
"status": "ACTIVE",
"webhooksRegistered": true,
"sync": { "status": "RUNNING", "startedAt": "2026-11-02T10:00:00.000Z", "lastSyncedAt": null, "lastError": null, "productCount": 0 }
},
"verified": true,
"verification": null,
"webhookUrl": "https://api.getengageai.app/commerce/webhooks/shopify",
"webhooksRegistered": true,
"webhookError": null,
"syncStarted": true
}| Outcome | What it means |
|---|---|
201, verified: true | Shopify confirmed the token. The first sync is running. |
201, verified: false | Shopify could not be reached. Saved as DEGRADED; press re-sync later. |
| 422 | Shopify rejected the token, or the address is not a store. Nothing was saved. The message says which. |
| 409 | This store is connected to another organization, or yours already has a Shopify store. |
webhooksRegistered: false is not a failure. Shopify only delivers to https addresses, so on a local API it cannot subscribe; webhookError says why. Products then refresh on the daily sync or when you ask, instead of within seconds.
3. Watch the sync
curl https://api.getengageai.app/stores -H "Authorization: Bearer $ENGAGE_API_KEY"sync.status goes RUNNING → SUCCEEDED, and sync.productCount fills in. A few hundred products take under a minute. You can start using the AI before it finishes.
How the catalogue stays right
- Live events. When a product, its price or its stock changes, Shopify tells engage-ai, which re-reads that product. Late or repeated events cannot overwrite a newer price.
- A daily full sync at 03:00 UTC re-reads everything and removes products you deleted while an event was missed. Start one any time:
curl -X POST https://api.getengageai.app/stores/$STORE_ID/sync -H "Authorization: Bearer $ENGAGE_API_KEY"{ "started": false } means one is already running.
- Only active products are synced. Setting a product to draft or archived removes it from what the AI knows.
- A failed save never deletes. If any product fails to save during a full sync, the removal step is skipped and
sync.lastErrorexplains. - Already imported a Shopify CSV? Products with the same SKU are taken over by the sync, not duplicated.
Synced products appear in Products like any other, and are searchable and retrievable the same way.
Order questions
Once a store is connected, a message like "where is my order #1042?" or "has my parcel shipped?" triggers a live lookup before the AI replies. It is given the status, the items, the carrier, the tracking number and link, and the delivery estimate. Never the address.
Who may see an order. Order numbers count up, so knowing one proves nothing. An order is described only to the customer it belongs to:
| The customer… | What happens |
|---|---|
| Writes on WhatsApp from the number on the order | Their recent orders, no number needed |
| Gives an order number and the email or phone used on it | That order — the two can arrive in separate messages |
| Gives only an order number | Asked for the email or phone used on the order. Whether that order exists is not revealed. |
| Gives only an email | Asked for the order number. A typed email never lists orders. |
This check runs in code before the model sees anything, so no wording of a question can get around it. If Shopify cannot be reached, the AI says a teammate will check, and the conversation goes to a person.
Guest checkouts with no Shopify customer record are found by order number only.
Disconnect
curl -X DELETE https://api.getengageai.app/stores/$STORE_ID -H "Authorization: Bearer $ENGAGE_API_KEY"The access token is destroyed and order lookup stops at once. Synced products are kept but stop updating; delete them from Products if they should go too. Reconnecting the same store picks them up again.
Uninstalling the app in Shopify has the same effect on our side: the store shows REVOKED.
Errors
| Code | When |
|---|---|
VALIDATION_FAILED (422) | A missing credential, an address that is not a myshopify store, or Shopify rejecting the token |
CONFLICT (409) | The store belongs to another organization, or yours already has one on this platform |
NOT_FOUND (404) | Re-sync or disconnect for a store id that is not yours |
status: REVOKED on GET /stores means Shopify stopped accepting the token or the app was uninstalled. Disconnect and connect again with a new token.