Skip to content

AI Product Descriptions

The AI product descriptions module in Polski PRO adds a generator box to the WooCommerce product editor that writes a full description, a short description, an SEO title or an SEO meta description through an OpenAI-compatible chat/completions endpoint. You supply the API key and pay the provider; without a key nothing is generated. Applied description text is marked as AI-generated.

  1. The administrator opens the WooCommerce product edit screen
  2. In the AI Description Generator box (side column) they choose a tone and what to generate
  3. Generate with AI sends the product context to the API
  4. The text appears in a read-only preview field, with Apply and Regenerate buttons
  5. Apply puts the text into the matching editor field; the product is saved as usual with Update

The box shows the date and tone of the last generation for that product. Generating needs the edit_products capability.

Enable AI product descriptions (group Tools) in Polski > Modules. The module is off by default, and its settings are on the same row. They are stored in the option:

polski_pro_ai_descriptions
Setting Key Default
API key api_key empty
API endpoint api_url https://api.openai.com/v1/chat/completions
Model model gpt-4o-mini
Tone (default in the box) tone professional
Language language pl
Maximum tokens per request max_tokens 500
Ask for SEO keywords too include_seo_keywords on
Extra prompt instructions custom_prompt empty

The language setting has two outcomes: pl asks for Polish, any other value asks for English. The request uses temperature 0.7 and a 60-second timeout. Without an API key the box shows a link to the settings instead of the generator.

Tone Instruction sent to the model
professional Professional, trustworthy tone
casual Friendly, conversational tone
persuasive Persuasive, benefit-driven tone with calls to action
technical Precise, technical tone focusing on specifications
luxurious Elegant, premium tone conveying exclusivity
Target What is asked for Where Apply puts it
Full description 3 to 5 paragraphs in <p> tags Main product description
Short description 2 to 3 sentences Product short description
SEO title Up to 60 characters Yoast SEO or Rank Math title field, if that box is on the screen
SEO meta description Up to 155 characters Yoast SEO or Rank Math meta description field, if that box is on the screen

All four targets are always listed. If neither Yoast SEO nor Rank Math is active, applying an SEO target has no visible field to fill.

In the product editor, Apply writes into the fields of whichever SEO box is present, and the SEO plugin saves them with the product.

Target Yoast SEO Rank Math
SEO title _yoast_wpseo_title rank_math_title
SEO meta description _yoast_wpseo_metadesc rank_math_description

Each request sends:

  • Product name
  • SKU, when set
  • Price, the current price with the store currency
  • Categories, the product category names
  • Attributes, every attribute with its values
  • Current description, first 500 characters, HTML stripped
  • Current short description, first 200 characters, HTML stripped

The system prompt asks for the content only, without explanations or markdown. Extra prompt instructions are appended to it.

The module has an AJAX action, polski_ai_bulk_generate, that generates and saves one target for a list of product IDs, writing SEO targets to both the Yoast and Rank Math meta keys. No screen in this version calls it: there is no bulk action in the product list.

Generating a description for a single product

Section titled "Generating a description for a single product"
  1. Open the product edit screen
  2. Find the AI Description Generator box
  3. Set Generate for to "Full description"
  4. Set Tone to "Persuasive"
  5. Click Generate with AI
  6. Review the text, or click Regenerate
  7. Click Apply, then Update to save the product

If you use a local LLM or another provider:

  1. Change API endpoint to your endpoint's address (it must accept the OpenAI chat/completions format and return choices[0].message.content)
  2. Set Model to a model name your endpoint recognises
  3. Fill in API key. The plugin requires a non-empty key and sends it as Authorization: Bearer {key}

On an HTTP error the box shows the provider's error.message, or "API returned HTTP {code}".

Marking AI-generated text (voluntary)

Section titled "Marking AI-generated text (voluntary)"

When you apply generated text to a product's description or short description, the plugin:

  • records a machine-readable marker on the product in the _polski_ai_generated meta (targets, model and date)
  • shows a short disclosure and a hidden data-ai-generated marker on the single-product page

A notice "Marked as AI-generated content" then appears in the generator box for that product. The marker is set on the Apply click, so it stays even if you discard the change without saving.

The on-page disclosure follows the Label AI-generated content option of Polski (free) (polski_ai_label_content, on by default). Turning it off keeps the machine-readable record on the product and removes the storefront note. SEO title and meta description targets are not flagged, because they are not shown as visible product copy.

Does the module work without an OpenAI account?

Section titled "Does the module work without an OpenAI account?"

Yes, if you have another endpoint that accepts the OpenAI chat/completions format, such as Azure OpenAI or a local LLM server. Set API endpoint and Model accordingly. An API key value is still required.

Is the generated text saved automatically?

Section titled "Is the generated text saved automatically?"

No. In the product editor, Apply fills the field and you save the product yourself. The last generated text is kept in the _polski_ai_description_last meta.

Can I generate descriptions for many products at once?

Section titled "Can I generate descriptions for many products at once?"

Not from the admin screens in this version. The product list has no bulk action for it.

Can I turn off the "AI-generated" note on product pages?

Section titled "Can I turn off the "AI-generated" note on product pages?"

Yes. Switch off Label AI-generated content in Polski (free). The _polski_ai_generated record on the product stays.

This page is for informational purposes only and does not constitute legal advice. Polski PRO for WooCommerce is commercial software provided without warranty.