BLOG
Business X-Ray
Building an AI agent for Shopify: can you trust it to review your sales?
Orders rose during a promotion. Should the discount stay? A practical look at building a store agent, checking the costs it sees and testing the decision that follows.
A promotion ends on Friday. Orders are up on last week. Should you run it for another seven days? That’s where I’d start a conversation about building an AI agent for a store. The owner can already pull up a weekly sales chart in Shopify. What they need to know by Friday evening is whether to keep the discount on Monday.
Shopify’s guide describes two ways in: connect a store to ChatGPT or Claude and use plain-language instructions, or build a custom solution with the Shopify AI Toolkit. I like being able to try an idea quickly. Before choosing either route, though, I’d ask the owner to walk me through one decision they make today. Where do they check sales? Who has the costs? At what point do they close the report and open their own spreadsheet? That last step is often the best clue to what the agent should do.
The first question I’d give the agent
I’d give it one job: compare orders during the promotion with an equally long period before it. You can try the first version in the admin. Sidekick can generate reports and charts. “Show me daily sales. Now split them by category. Keep just the items on promotion and show me average order value.” The value here is that the second question occurs to you only after you’ve seen the first answer. You don’t have to commission every possible report in advance.
Then comes a better question: “How much did we actually keep from those orders?” If the actual shipping charge lives on the carrier’s invoice, an agent with access only to Shopify can’t retrieve it there. It can see what the customer paid for shipping. On a free-shipping order, that’s zero. The carrier’s invoice will probably tell a different story.
That’s where I draw the line between configuring a ready-made assistant and building a custom Shopify application. If the team can answer its questions using store data, I’d stay with Sidekick. If someone spends every Friday matching orders to product costs and carrier invoices, it makes sense to connect the agreed sources and teach the agent how to match records to an order. If a cost or invoice hasn’t arrived, the report should say so and show how many orders still can’t be assessed.
More insights for Shopify stores
Shopify tips, news and practical advice for merchants — all in our Telegram channel.
Join our channelHow I’d test it before putting it to work
I’d start with read-only access and a few orders the owner knows well: a normal sale, a partial refund and an order shipped in two parcels. I’d ask for the calculation on each one and check it against the records. If the matching logic misses the second shipping charge, the answer will be wrong in a chart just as surely as in a spreadsheet. Catch it on those three orders and we can fix the calculation before it goes into a weekly report.
Once the figures match, I’d schedule the report. Every Friday the agent prepares a summary, flags missing data and links to the orders worth a closer look. The owner can ask a follow-up question on the spot. None of this requires permission to change discounts or shipping terms. We agree in an individual contract and a non-disclosure agreement which commercial and financial data we use, who sees the results and which actions require approval.
The numbers can be right while the decision is still open
Take an illustrative order. The customer pays €80 for the item after the discount. The item costs €48, the payment fee is €2 and the store pays €18 for delivery. That leaves €12 before advertising and other expenses. Without the invoice, the report would have shown €30. We now have the right figure. Does that mean we should end free shipping?
I wouldn’t rush. The expensive shipments might all be heavy parcels going to one region. And even if the store earns less per order, the promotion might have brought in enough additional orders to leave it better off overall. I’d ask the agent to isolate that region, compare similar products and look at both the amount left per order and the total across those orders. That leads to a useful question for a cost and workflow audit: where would a higher free-shipping threshold help, and what sales might we lose by raising it?
In this example I’d test a new threshold only in the affected group. Once the owner agrees, my team can make the change in Shopify and check what happens to both conversion and the amount left after variable costs. If ad spend changed at the same time, we’d take that into account before crediting the shipping change.
That’s what I mean by running a store as a business system. At IceStoreGroup we can build the agent, automate the routine and keep its calculations reliable when a carrier changes its rates or the store opens a new sales channel. Commercial and financial consulting, audits and ongoing store support are part of the same service. My measure of success is whether the owner can answer Friday’s question, make a decision with us, have my team implement it and check what it did for the business on the date we agreed.
Have questions about the article? Contact the author on Telegram — @BobSaylor