Back to topic
Spark playbook scenarios · Spark: AI Store Assistant

Compare product sales with inventory position

Sales and stock are reviewed separately, which hides products overstocked in one variant and short in another. In this case, the immediate task is to compare product sales with inventory position. The workflow should produce an inventory health analysis and prioritized actions, setting sell-through beside stock on hand for each product in the period.

Topic
Inventory Analysis and Turnover
Target keyword
shopify inventory and sales report
Copyable AI prompt

A prompt you can drop directly into Spark

First replace every [bracketed] placeholder with real store scope and constraints, then add any actual records or data you have, and paste it into your preferred AI assistant or Spark agent. Spark will follow this page's workflow to produce structured output and verification steps.

ai-prompt.txt
Act as a Shopify operations specialist.
Help me compare product sales with inventory position.
My store context is [describe the business, products and target audience].

My scope is [specify the affected products, pages, customers or reporting period]. Use these inputs: [net sold units per product for the agreed period, closing stock on hand, the variant-to-product mapping, and the merchant's sell-through definition]. Place net sold units beside closing stock for each product and for the variants inside it, compute sell-through as net units sold divided by the units available over the period with the same definition everywhere, and flag surplus where closing stock runs far ahead of the period's sales and shortage where sales outran the units recorded as available, setting aside products with no stock record at either period boundary.
Return an inventory health analysis and prioritized actions for the specified task.
Show the relevant evidence or before-and-after examples and explain how I can verify the result.
If essential data is missing, ask for it and mark unsupported conclusions as unknown.
Do not invent metrics, product claims or customer facts.
For any publication, message, account or store change, use only connected tools within my explicitly authorized scope and report success only after verification; otherwise provide the draft or proposed steps.
Use in Spark
How to solve

A recommended resolution workflow

Split the work into input, judgment, and deliverable phases. Verify each step's output before moving to the next.

01

Step 1

Pull, for one agreed reporting period, each product's sold units net of returns, its stock on hand at the period end, the variant-to-product mapping, and the sell-through definition the merchant uses, counting a unit as sold on the order date recorded in the export.

02

Step 2

Place net sold units beside closing stock for each product and for the variants inside it, compute sell-through as net units sold divided by the units available over the period with the same definition everywhere, and flag surplus where closing stock runs far ahead of the period's sales and shortage where sales outran the units recorded as available, setting aside products with no stock record at either period boundary.

03

Step 3

Deliver an inventory health analysis with one row per product plus a separate block for the variants driving each flag, add prioritized actions, and reconcile the summed sold units and closing stock with the order and inventory exports before publishing.

FAQ

Common questions when running this scenario

Cover decision rules, frequent misunderstandings, and required inputs so the team aligns on prerequisites before execution.

How are returns treated in the sales figure?

Returned units are subtracted from sold units in the period where the return was recorded, because they re-enter stock; using gross sales overstates consumption and makes a well-stocked product look short. A return landing after the period end is noted beside the figure rather than pushed back into a closed number.

Why break a product total into variants?

A parent product can look balanced while one size sells out and another barely moves. The report rolls up to the product for the ranking, then reopens the variants behind each flag so the action, whether reorder, rebalance or markdown, is written against the variant that actually needs it.

When is a stock level unusable in the comparison?

When the product has no stock record at either period boundary, or when its only movements in the period are manual adjustments rather than sales. Those products are listed with the quantities that do exist and marked as not yet comparable instead of being ranked alongside products measured on a full basis.

Related scenarios

Continue with adjacent or same-topic scenarios

Start with scenarios under the same topic, then expand into cross-topic matches suggested by similarity.

Next step

Want these AI scenarios embedded directly into daily operations?

Ciwi Spark builds Shopify-native AI tools and agents around the workflows merchants actually run: research, ads, translation, and customer support. Stop rewriting the same prompts by hand.