AI agents that work in Shopify

Shopify makes it simple to run a store, but growing brands still handle a lot by hand: answering order questions, writing product content, watching stock, reviewing risky orders and processing returns. Gepton builds custom AI agents that work with Shopify through its GraphQL Admin API, webhooks and MCP servers. They answer customers from live order data, prepare catalog updates and flag problems early, while your team approves refunds, price changes and anything that affects money.

What we build in Shopify

Agents designed around how your team already works in Shopify, built and tested in a sandbox first.

  • Order status and returns support

    Answers where-is-my-order and return questions on chat, email or WhatsApp from live Shopify and courier data, and starts return requests for approval.

  • Catalog enrichment

    Drafts product titles, descriptions, tags, SEO fields and alt text from supplier data and images, and saves them as drafts for merchandiser review.

  • Inventory and restock alerts

    Watches inventory levels across locations, predicts stockouts from recent sales, and drafts purchase suggestions for the buying team.

  • Order risk review queue

    Collects high-risk orders with Shopify's risk signals, address checks and past behavior into a review queue with a suggested action for staff.

  • Customer segmentation and outreach

    Builds segments from order history for campaigns, and drafts messages for review in your email or messaging tool.

  • Store operations digest

    Sends a daily summary of sales, refunds, stock issues and support themes to the team, drawn from Shopify and your helpdesk.

How it connects. Official APIs, the narrowest access.

Agents access your store through a custom app whose scopes you approve at install, and Shopify's protected customer data rules apply to any personal data they read. We design so that agents request the narrowest scopes, verify webhook signatures, store tokens in a secrets manager, and log every change. Refunds, price changes and order cancellations need a person's approval by default. Only the fields a task needs are sent to a model. This page does not imply a partnership with or endorsement by Shopify.

Systems the agent uses (example)
4 systems
  • ShopifyOrder status and returns support
  • ZendeskUsed by the tier 1 support resolver agent
  • WooCommerceUsed by the returns and refund assistant
  • TallyPrimeUsed by the Tally data sync agent

From sandbox to your live Shopify

A fixed-scope plan first, then weekly releases you can test.

  1. 1

    Create the app and scopes

    We create a custom app for your store with only the access scopes needed, such as read_orders or write_products, and request protected customer data access only where required.

  2. 2

    Connect through GraphQL, webhooks and MCP

    Agents use the GraphQL Admin API, bulk operations for large reads, and webhooks for order and inventory events. Storefront MCP is used for shopper-facing tasks where it fits.

  3. 3

    Test on a development store

    We build on a development store with realistic products and orders, run evaluation cases, and measure query cost against your plan's rate limit.

  4. 4

    Launch in draft mode

    Agents launch with drafts and review queues. Automatic actions, such as tagging orders, are enabled one at a time after the pilot.

How agents connect to Shopify

Shopify's main interface for apps is the GraphQL Admin API. The REST Admin API is now a legacy API, and Shopify requires new public apps to use GraphQL. Webhooks notify an agent when orders, products, inventory or customers change, and Shopify signs them with an HMAC so the receiver can verify them. Bulk operations let an agent export large data sets, such as a full catalog or a year of orders, without hitting normal query limits.

Shopify also provides MCP servers. The Dev MCP server helps developers work with Shopify's APIs and schemas, and the Storefront MCP server lets AI agents search a store's catalog, manage carts and read store policies on behalf of shoppers. These support agentic commerce, where AI assistants shop for customers, which is covered in agentic commerce integration.

Rate limits

GraphQL Admin API limits are based on calculated query cost. Shopify's rate limit documentation lists restore rates of 100 points per second on standard plans, 200 on Advanced, 1,000 on Shopify Plus and 2,000 for enterprise, and a single query cannot cost more than 1,000 points. We keep queries small, request only needed fields, and use bulk operations and webhooks instead of polling.

Webhook delivery is reliable but not guaranteed to be in order or exactly once, so agents check the current state of an order through the API before acting and ignore duplicate events. Personal data such as names, addresses and phone numbers falls under Shopify's protected customer data requirements, which set rules on access, storage and retention for apps.

What stays read-only

By default agents read orders, products, inventory and customers, and write drafts, tags, notes and metafields. Refunds, cancellations, price and discount changes, and fulfillment actions need a person's approval unless you decide otherwise after the pilot.

How this fits with Sidekick and Shopify Magic

Shopify's own AI includes Sidekick, an assistant inside the Shopify admin that helps merchants with analytics, setup and store tasks, and Shopify Magic for generating product descriptions and other content. For many store tasks these are the quickest option. A custom agent complements them when work involves systems outside Shopify, such as a courier, ERP, helpdesk or WhatsApp, needs rules specific to your brand, or must run automatically on events rather than when someone asks.

AI agents and Shopify in depth

The shape of a Shopify agent

A Shopify agent is built around a custom app installed on your store. Shopify sends webhooks for events such as orders created, fulfillments updated, inventory levels changed or customers updated. A receiver verifies each webhook's HMAC signature with the app's secret, stores the event and queues it. The agent service then reads the current state through the GraphQL Admin API, combines it with data from your courier, ERP, helpdesk or WhatsApp channel, and decides what to propose. A tool layer holds the mutations the agent may run, such as adding an order tag or saving a product description draft, and refuses everything else.

Webhooks can also be delivered to Amazon EventBridge or Google Cloud Pub/Sub instead of an HTTPS endpoint, which is useful for busy stores because the cloud service absorbs bursts during a sale and the agent processes events at a steady pace.

Scopes, customer data and API versions

Access scopes are approved when the app is installed, so we list them per use case and remove anything unused.

Use caseTypical scopesNotes
Order status answersread_orders, read_fulfillmentsCustomer names and addresses fall under protected customer data rules
Catalog enrichmentread_products, write_productsAgent saves drafts or metafields, not live descriptions, at first
Restock alertsread_inventory, read_productsNo write access needed
Order risk queueread_ordersTags or notes need write access, added only if you want them

Shopify releases a new API version every quarter and supports each for a limited period, so the app pins a version and we plan an upgrade before it is retired. Public apps must also handle Shopify's mandatory privacy webhooks for customer data requests and deletion; custom apps for a single store follow the same principle in our designs, so a customer's data can be found and removed from agent logs on request.

A worked example: a return request

Example: a customer asks on chat to return a pair of shoes that do not fit.

  1. The agent verifies the customer by order number and email or phone, and reads the order, line items, fulfillment date and your return policy.
  2. It checks eligibility: within the return window, item not marked final sale, not already returned.
  3. If eligible, it explains the steps and prepares a return request with the reason and selected items.
  4. A team member reviews and approves the return in Shopify, which starts the reverse pickup with your courier.
  5. The agent tells the customer when the return is approved and, later, when the refund is processed, reading the status from Shopify rather than promising dates.

Refunds are issued by your team, not by the agent. If the policy is unclear for a case, the agent hands off with the order details attached.

Approvals and audit logging

Each order has a timeline that shows tags, notes and changes, and changes made through the agent's app are attributed to it. The agent's own log records the triggering event, the data it read, what it proposed, who approved and the result of each mutation. For catalog work, a "needs review" metafield or tag gives merchandisers a list of drafts waiting for them, and nothing goes live until someone publishes it. For a small set of low-risk actions, such as tagging orders for a review queue, automatic mode can follow a pilot, with sampled checks.

Reliability during sales and launches

Traffic spikes are where Shopify agents fail if they are not designed for them. Shopify's GraphQL limits work on query cost, so the agent asks only for the fields it needs, uses bulk operations for full exports, and slows down when the cost budget runs low. Webhooks can arrive late, more than once or out of order, so the agent checks the current state before acting and records which events it has processed. A queue between webhooks and the agent means a burst of orders at the start of a sale is handled steadily rather than dropped.

Testing and rollout

We build on a development store loaded with products, variants, locations and sample orders that resemble yours, including cash on delivery orders, partial fulfillments, exchanges and orders with discounts. The evaluation set covers customer questions in English, Hindi and Hinglish where relevant, customers who cannot verify themselves, and requests outside policy.

We baseline a few measures from your store and helpdesk before launch: how many where-is-my-order questions arrive per week, how long customers wait for a first answer, how long returns take from request to approval, and how many catalog items lack descriptions or alt text. The same measures after launch, taken from the agent's log, show whether it is helping and where it needs work.

Launch starts with drafts and review queues on the live store, one use case at a time. Before a big sale, we review limits, queue capacity and handoff staffing with your team. Have ready: a store owner or staff account that can install apps, your return and shipping policies in writing, courier API access and the people who approve refunds. Related pages: AI for e-commerce, customer support agents and WhatsApp agents.

Questions about AI agents and Shopify

Something else? Send us your question and an engineer replies with next steps.

How is this different from Shopify Sidekick?

Sidekick helps merchants inside the Shopify admin when they ask. A custom agent runs on events, connects Shopify to your courier, helpdesk, ERP or WhatsApp, and follows your own rules. Many stores use both.

Which Shopify plans do you work with?

Any plan that allows custom apps. Higher plans have higher API rate limits, which matters for large catalogs or busy stores. We check this during discovery.

Can the agent issue refunds?

Not by default. It prepares the refund or return with the reason and details, and a person approves it. Some stores later automate small, low-risk refunds under clear rules.

How do you handle customer personal data?

Shopify's protected customer data rules apply. The app requests access only to the fields it needs, and we limit what is sent to a model to what the task requires.

Can AI shopping assistants buy from our store?

Shopify's Storefront MCP and agentic commerce features support this. We can help you prepare catalog data and policies so that AI assistants represent your products accurately.

Can the agent handle cash on delivery orders and confirmations?

Yes. Many Indian stores confirm cash on delivery orders before dispatch. The agent can read new COD orders, send an approved WhatsApp template asking the customer to confirm, record the reply as an order tag or note, and flag unconfirmed orders for your team. Cancelling unconfirmed orders stays a staff decision unless you approve a clear automatic rule after the pilot.

What happens to the agent when Shopify releases a new API version?

The app is pinned to a specific API version, so a new release does not change its behavior. Shopify supports each version for a limited period, so we track deprecation notices, test the agent against the next version on the development store, and upgrade before the old version is retired. Changes are listed in a short note for your team.

Can the agent publish product content directly?

Not at first. It saves drafts, such as descriptions, SEO fields or alt text, in metafields or as unpublished changes, and merchandisers review and publish them. Once your team trusts the output for a product type, you can allow direct updates for low-risk fields. Prices, inventory and product status always stay with people.

How do you prepare the agent for a big sale?

Before a sale, we review expected order volume with your team, check queue capacity and API cost budgets, and make sure enough people are available for handoffs. Non-urgent agent tasks, such as catalog enrichment, can be paused during the peak. Webhooks flow through a queue, so bursts are processed steadily, and we watch error rates and handoff times live during the first hours.

Jump to

↑↓ to move↵ to open