Empty meta descriptions = Google writes your snippet
You launch a product with a great name and two paragraphs of body copy. You forget to write a meta description. When Google indexes it, the search snippet is auto-generated — often the first 160 characters of your page, which is usually navigation links, category breadcrumbs, or an SKU. Your click-through rate suffers. A competitor's product with a real meta description ranks below yours but gets the clicks.
What most people do instead
A better way: AI writes, you approve
Run ai generate seo description -product_id=247. The command pulls the product's name, the store's name from bloginfo, and asks AI for a compelling, keyword-rich description under 160 characters. The result arrives in the navigator in two seconds. Copy-paste into the Yoast / Rank Math / default WordPress meta field, save.
Macro + for_each = batch-writing for your whole catalog. Pipe filter product into a for_each step that calls ai generate seo description with each product's ID. 400 catalog SEO descriptions in one macro run. Review them in Yoast / Rank Math and publish.
How it works
WooCommerce is required — without it, the command returns an error. The handler calls wc_get_product($product_id), reads the product name, pulls your site name from bloginfo('name'), and builds a prompt like "You are an expert SEO content writer working for the e-commerce site '{site}'. Generate a compelling and keyword-rich SEO description for the product titled '{name}'. Keep it under 160 characters." The prompt goes to the AI proxy. The returned text is rendered in the navigator, ready to copy.
/wp-admin/edit.php?post_type=product or in the URL when editing a product.| Parameter | Value |
|---|---|
-product_id(required) | WooCommerce product ID |
| Length target | Under 160 characters (prompt-enforced, not hard-trimmed) |
| Requires | WooCommerce — returns error when plugin is deactivated |
| AI provider | TrueCommander's server-side proxy — no API key required |
| Can be used in |
Real example
You imported 180 products from a supplier CSV. Every SKU has a full product body but zero meta descriptions. You build a macro: filter product -status=publish -meta_empty=_yoast_wpseo_metadesc → for_each: ai generate seo description -product_id={{item.id}} → for_each: update post meta -post_id={{item.id}} -key=_yoast_wpseo_metadesc -value={{response}}.
One macro run. 180 product meta descriptions written by AI, all saved to Yoast's meta field. Your search snippets stop being "SKU: KO-500ML » Home » Oils" and start being "Single-estate Kalamata olive oil, cold-pressed within 4 hours of harvest."