/
/
Make a Shopify variant stockable at a new location, correctly
For inventory and operations teams who want a variant connected to a new Shopify location without picking the wrong one, by asking their AI assistant.
On this page
Connector
Connect Shopify, pick your AI tool and paste the prompt.
The problem
Stock received against the wrong variant or location
Making a variant stockable at a new Shopify location means finding the right variant by SKU, finding the location and checking it is not already there. Pick the wrong variant or location and stock gets received against the wrong place.
Without PopdockAI
- Search for the variant by SKU
- Find the location and check it is active
- Check whether the item is already stocked there
- Receive stock against the wrong place by mistake
With PopdockAI
- The SKU and location are resolved, with candidates listed if unclear
- Inactive locations are refused and existing levels reported
- You see the product, variant and target and confirm first
- The connection is made once and the new level read back
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Make the product variant with SKU `{sku}` stockable at the location `{location-name}`, after checking it is not stocked there already and the user confirms.
**Step 1: Resolve the SKU**
Call `shopify-get-product-variant` filtered by `sku`. If nothing matches, stop and say so. If more than one variant has this SKU, list them (product-id, title, sku, barcode) and stop. Keep inventory-item-id, title and product-id. Call `shopify-get-inventory-item` filtered by `inventory-item-id` for product-title and tracked.
**Step 2: Resolve the location**
Call `shopify-get-location` filtered by `name`. If nothing matches, retry with `name.contains`. If more than one location matches, list them and stop. If the location is not active, stop and say so. Keep location-id and name.
**Step 3: Check it is not already stocked there**
Call `shopify-get-inventory-level` filtered by `inventory-item-id` and `location-id`. If a level already exists, report its available quantity and stop: nothing needs doing. Also report which locations the item is stocked at today by calling `shopify-get-inventory-level` filtered by `inventory-item-id` alone.
**Step 4: Confirm and apply**
`shopify-add-inventory-level` needs both ids as plain numbers, not GIDs. If either id is a GID (gid://shopify/InventoryItem/808950810), use only the trailing number.
Show the user the product, variant, SKU, the target location and the locations it is stocked at today, and ask them to confirm. If the item is not tracked, warn that stocking it at a location has no effect on availability until tracking is turned on.
Only after confirmation, call `shopify-add-inventory-level` once with `inventory-item-id` and `location-id`. Leave relocate-if-necessary unset unless the user explicitly asks to move the item off a fulfillment service location.
**Step 5: Verify**
Call `shopify-get-inventory-level` filtered by `inventory-item-id` and `location-id` again and report the new level. Quantity will be zero until stock is received.
**Rules & Guidelines:**
* `shopify-add-inventory-level` is the only write tool this prompt may call, once, after confirmation.
* Do not call `shopify-add-location`, `shopify-update-location` or `shopify-update-product`.
* If the call fails, report the error as returned and do not retry with altered ids.
**Validation:**
* If the SKU or location is ambiguous, list the candidates and stop rather than picking one.
* If the verify read shows no level, say the change could not be confirmed.Who it's for
One answer, three teams that use it
Inventory managers
Open stock at a new location cleanly
Connect a variant to a new location in one message, with a warning if tracking is off.
Make SKU HD-BLK-L stockable at the Glasgow warehouse in Shopify.
Store managers
Get new lines ready to receive
Make sure an item can be received at your store before the delivery arrives.
We are getting SKU MUG-WHT-12 at the Leeds store next week. Set it up in Shopify.
Ecommerce operations
Avoid duplicate inventory records
Items already stocked at the location are reported and left alone, so no duplicate records are made.
Is SKU CAP-RED-OS already stocked at our Pop-up Store location? If not, add it.
How it works
What PopdockAI does when you ask
You give a SKU and a location, and your AI assistant resolves both and checks the item is not already there. Nothing is written until you confirm.
01
Ask
You give a SKU and a location name.
02
Resolve
It finds the variant and an active location, listing candidates if unclear.
03
Confirm
You see the product, variant and target location and say yes.
04
Connect
It connects the item once and reads back the new level.
What PopdockAI provides
The tools behind the answer
Ready made tools for Shopify and one secure connection to your AI tool. No code, no exports.
shopify-get-product-variant
shopify-get-inventory-item
shopify-get-location
shopify-get-inventory-level
shopify-add-inventory-level
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
New locations set up right the first time
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
