Create a product from scratch with attributes and variations

WooCommerceAdvanced~25 minUpdated

Before you start

A connected store with the WooCommerce integration enabled and the variation write ability on, plus the core media upload ability enabled if you want the agent to add images. The agent cannot create a variable product itself: Create product only makes simple products. Before you start, add the product in WooCommerce yourself, set its type to Variable product, add every attribute and value the variations will use with Used for variations ticked, and save it as a draft. A variation can only use a value its parent product declares, and the tools cannot add a value to a global attribute or declare a global attribute on a product, so any global attribute or value missing from the parent has to be added in WooCommerce first. Then give the agent that product's ID.

Building a variable product by hand is a lot of clicking. You create the attributes, add each term, tick the box that marks them as used for variations, generate the grid, then open every single variation to set its price, SKU, and image. For a shirt in four sizes and three colors that is a dozen variations, and by the eighth one you have lost the thread.

This lets you describe the whole product once and have the agent do the assembly. Two steps stay with you: the agent cannot make a variable product, so you add the empty parent in WooCommerce first and set its type to Variable product, and it cannot add global attribute values to that parent, so you declare them there. The agent plans first and shows you the full grid, then builds the variations as drafts. Nothing goes live until you have looked at it and published it yourself.

The prompt
I added a variable product to this WooCommerce store and saved it as a draft:
[product ID]. Here is the spec for its variations:
[the attributes and their options (for example Size: S, M, L; Color: Black,
Blue), the price for each variation or a rule like "all the same price", SKUs
if I have them, and any image notes]
Do not build anything yet. First, read that product and confirm it is a
variable product. If it is not, stop and tell me, because you cannot create
one yourself. Then check each attribute and value in my spec against what that product
declares. A variation can only use a value its product declares, and you cannot
add a value or a new global attribute to a product, so list anything missing for
me to add in WooCommerce first. Show me the full plan as a table: which attributes and
values are in place and which are missing, the complete variation grid with each
price and SKU, and which image goes where. Let me correct it.
Only after I approve, upload the images, then build each variation under my
product. Leave the
product as a draft so I can review and publish it myself. At the end, list
everything you created.

Why this is safe to run

Nothing is written until you approve the plan. The first pass turns your spec into a table, the attributes and values that are in place against any that are missing, the full variation grid with prices, and where each image lands, so you catch a wrong price or a wrong value before it exists.

When you approve, the build still ends short of your customers. The product you created stays a draft, never published, so it sits out of sight until you open it and hit publish yourself. This keeps the plugin’s rule intact: the agent drafts, a human publishes. Each of the write abilities behind this, uploading media and creating a variation, stays off until you enable it, every call is checked against the capability of the user you bound the agent to, and every write lands in the Activity Log. If the variations are wrong, you can delete them or trash the draft, and nothing was ever live.

Already connected? You do not have to paste this at all. Ask your agent for the “create a product from scratch with attributes and variations” recipe, add the empty variable product, hand it the spec, and it runs the same plan-then-build flow on your own store.

How it works

  1. Read the draft variable product you created and confirm it is a variable product.
  2. Read your spec: the attributes, the variation grid, prices, and any images.
  3. Show you the full build plan as a table, and create nothing yet.
  4. After you approve, upload the images to the media library.
  5. Check each attribute and value against what the parent product declares, and list anything missing for you to add in WooCommerce.
  6. Build each variation under your product, as a draft.
  7. Hand you the product to review and publish yourself.

Questions

Why do I create the product myself first?
The Create product tool only makes simple products, and a request for a variable one is refused. Variations can only be added under a variable product that already exists, so you add the empty parent in WooCommerce and the agent fills in everything under it.
Does this publish the product live?
No. Your parent product stays a draft and the agent builds its variations as drafts too. You are the one who flips it to published in WooCommerce, so nothing reaches customers until you have looked it over.
Will it create duplicate attributes like a second Size or Color?
No, it does not create attributes at all. It reads your parent product and checks each attribute and value against what that product declares. The build plan shows you which attributes and values are in place and which are missing, so you can add the missing ones in WooCommerce before anything is built.