Dealopy Create your account

Guides · Shopify

How to add an AI sales assistant to Shopify without giving it write access

An AI assistant that answers shoppers needs to see your products, prices and stock. It does not need to change them. Here is how to keep it that way on Shopify.

Why read-only matters

Many apps ask for broad admin access because it is convenient for the developer, not because the feature needs it. A sales assistant answers questions: what is in stock, which variant fits, what it costs, where to click. Every one of those is a read. If the token can only read, a bug, a prompt-injection attempt or a leaked credential cannot edit a price, cancel an order or touch customer records.

The rule of thumb: give the assistant the smallest permission that covers what it actually does, and nothing for the things you would rather a person did.

The right token: Storefront API, not Admin API

Shopify has two main APIs. The Admin API manages the store: products, orders, customers, settings. The Storefront API exposes what a shopper can already see on your storefront: published products, variants, prices and availability. An assistant that sells only needs the second.

  1. In the Shopify admin, open Settings → Apps and sales channels → Develop apps (turn on custom app development if Shopify asks), then Create an app.
  2. Under Configure Storefront API scopes, tick only what the assistant reads: product listings, product inventory (if you want stock counts shown) and product tags. Leave everything else unticked.
  3. Save, install the app, and copy the Storefront API access token.

That token cannot create, edit or delete anything. The worst it can do is read what your storefront already shows.

Where the token goes, and where it never should

  • Not in your theme code. Anything in the theme is public. The token belongs in the assistant's server-side settings.
  • Not in a chat or an AI prompt. Paste it only into the provider's own settings field, ideally one that is write-only (you can replace it, but nobody can read it back).
  • Stored encrypted. Ask your provider how it stores store credentials. "Encrypted at rest and never shown again" is the answer you want.

Before it talks to customers

  • Test the connection. A good setup makes one real catalog call and tells you what it found, or the exact error.
  • Ask it the hard questions yourself: an out-of-stock variant, a product on sale, something you do not sell. It should quote the live price, say when something is unavailable and admit when it does not know.
  • Add your policies. Shipping, returns and warranty live on your pages, not in the catalog. Give the assistant those pages so it answers from them instead of guessing.
  • Decide who answers when the AI should not. Set your team's hours and how a handoff reaches you.

How Dealopy does it

Dealopy connects to Shopify with exactly this kind of read-only Storefront token. It answers from your live catalog, shows product cards with add-to-cart links, and can never change your store. The token sits in a write-only field and is stored encrypted. Step-by-step setup is on the Dealopy for Shopify page.