Add product schema so AI shopping assistants can read your catalog

WooCommerceAdvanced~25 minUpdated

Before you start

A connected store with both the WooCommerce integration and Rank Math enabled, WooCommerce reads on, and the Rank Math schema write ability switched on for the update pass. Rank Math's schema tools only reach content types the site owner has exposed to agents, and Product is not exposed by default, so they refuse a WooCommerce product with a message that its content type is not exposed to agents. A site administrator can expose it under Exposed content types in the Content sub-tab of the Abilities tab. The same message names wc-update-product, which edits the product itself, not its schema. The prompt tests one product first and stops there if it is refused. The product list shows category IDs only, so the agent matches the category name to its ID from the product category terms. Product reads do not return the store currency, so you supply it.

AI shopping assistants and search features increasingly read a page’s structured data rather than guessing from the layout. If your product pages ship clean Product schema, with a price, availability, and SKU an assistant can parse, your catalog is legible to them. If they do not, an assistant is left scraping and often gets it wrong.

This builds that schema from each product’s own fields and writes it through Rank Math. It reads first, shows you the schema, and only writes what you approve. One limit before you start: this adds schema on the page, it does not build a product feed.

The prompt
I want to add Product structured data to [the products in the "Accessories"
category] so AI assistants and search can read them. This store uses Rank Math.
First pass, write nothing: list the products, then read the Rank Math schema on
one product to check that the schema tools can reach products at all. They only reach
content types the site owner has exposed, and an unexposed product comes back
with a "not exposed to agents" message. If they refuse, stop and tell me. Otherwise read each
product's name, description, price, SKU, and stock
status, then build the Product schema object you would attach to it and show
me the schema for the first [5]. The store currency is [USD]; the product reads
do not return it, so use that for the price currency. Use only the values
already on the product, do not invent anything else. Let me check them.
Only after I approve, write the schema through Rank Math, one product at a
time in small batches, and show me each batch before it saves. At the end,
list every product you added schema to.

Why this is safe to run

The first pass is reads. Reading each product’s fields writes nothing, and the schema object is shown to you built entirely from values already on the product, so you can see it is accurate before anything is stored.

The scope matters here. This writes Product schema onto the product page through Rank Math, which is exactly what an on-page assistant parses. It is not a product feed: the file a shopping engine like Google Merchant Center ingests is generated by a dedicated feed plugin, and building that is outside what these abilities do. The write reaches one ability, updating a post’s Rank Math schema, and it stays off until you enable it. Schema is stored in the product’s own Rank Math meta, so a wrong entry is re-writable through the same flow. Work runs in small batches you approve, each call is checked against the capability of the user you bound the agent to, and every write lands in the Activity Log with the product it touched.

Already connected? You do not have to paste this at all. Ask your agent for the “add product schema for AI shopping assistants” recipe, name the set, and it runs the same read, approve, then write flow on your own store.

How it works

  1. List the products you name, then read one product's Rank Math schema first to check that the schema tools can reach products.
  2. Read each product you name: name, description, price, SKU, and stock status.
  3. Build a Product schema object from those fields and show it to you, writing nothing yet.
  4. After you approve, write the schema through Rank Math, one product at a time in small batches, showing each batch.
  5. Return every product it added schema to.

Questions

Does this create a product feed for Google Merchant Center or a shopping engine?
No, and that is the limit. It adds Product structured data to each product page through Rank Math, which is what an assistant reading the page parses. A real product feed, the kind Merchant Center or a shopping channel ingests, is a separate file that a dedicated feed plugin generates. This recipe does not build one.
Where does the schema data come from?
From each product's own fields. The agent reads the product's name, description, price, SKU, and stock status with WooCommerce's read ability, then maps those into the Product schema. It does not invent values, so the structured data matches what is already on the product. The one value it cannot read is the store currency, so you give it that.
What if Rank Math's schema tool refuses my products?
Then the agent stops before building anything and says so. These tools only reach content types the site owner has exposed to agents, and Product is not exposed by default, so a product comes back with a message that its content type is not exposed to agents. Exposing it under Exposed content types in the Content sub-tab of the Abilities tab is the fix. You can still have the agent draft the Product schema from the product fields as text, and paste it into the product's Schema tab in Rank Math yourself.