← Back to directory
E-commerce Medium to set up AI workflow Repurpose/Transform

Auto-Generate Product Descriptions for Magento

Source reviewed Updated 2026-07-07

Finds Magento products missing descriptions, resolves raw attributes to readable text via Azure OpenAI.

What it does

You get SEO-ready product descriptions automatically generated for items missing them in your Adobe Commerce store. The workflow finds these gaps, converts technical attributes into clear labels, uses Azure OpenAI to write compelling text, and saves the results directly back to your catalog via Magento.

Step by step

  1. Use an HTTP request node to fetch products from Magento with a filter for empty description fields.
  2. Map raw attribute IDs to human-readable labels using a static JSON configuration or a lookup table in the code step.
  3. Construct the final API payload by merging the generated text into the product's 'description' field before sending it back via HTTP request.

Where the LLM does the work

  • Prompt engineering for the Azure OpenAI model to ensure the tone matches brand guidelines and includes relevant SEO keywords.
  • Instructing the LLM to format output as clean HTML or plain text depending on Magento's specific input requirements.
  • Handling edge cases where the LLM might refuse to generate content due to safety filters by adjusting system prompts.

Watch out for

Incorrect attribute ID mapping will result in irrelevant product data being sent to the LLM, verify your lookup table against the actual store schema before running.
HTML tags in generated descriptions may break frontend rendering if not sanitized by a dedicated HTML sanitizer library in the code node.

Tools that fit

n8n Service Workflow orchestration platform
Adobe Commerce (Magento 2) API Product data retrieval and description updates via API
Azure OpenAI Chat Model LLM Generating product descriptions from attributes

The agent brief

Everything your agent needs, including the gotchas. Copy it and go.
agent-brief.md
You are helping me build the following AI agent workflow.

## Goal
Auto-Generate Product Descriptions for Magento: Finds Magento products missing descriptions, resolves raw attributes to readable text via Azure OpenAI.

## Specification
- What it does: You get SEO-ready product descriptions automatically generated for items missing them in your Adobe Commerce store. The workflow finds these gaps, converts technical attributes into clear labels, uses Azure OpenAI to write compelling text, and saves the results directly back to your catalog via Magento.
- Trigger: Run manually (Manual ยท on demand)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - n8n: Workflow orchestration platform
  - Adobe Commerce (Magento 2): Product data retrieval and description updates via API
  - Azure OpenAI Chat Model: Generating product descriptions from attributes

## Known pitfalls, handle each one explicitly in your implementation
1. Incorrect attribute ID mapping will result in irrelevant product data being sent to the LLM, verify your lookup table against the actual store schema before running. 
2. HTML tags in generated descriptions may break frontend rendering if not sanitized by a dedicated HTML sanitizer library in the code node.

## Reference implementation
https://n8n.io/workflows/8475 (workflow template)
Fetch and inspect this before building. If it matches my stack, adapt it;
if not, rebuild the pattern with my tools.

## Process requirements
1. Before building: ask me which of the listed tools I actually use and
   what my platform is (n8n / Make / code / other). Do not assume.
2. Adapt the pattern to my answers; do not force the reference stack.
3. Address every pitfall above; tell me how you handled each.
4. Provide a test plan I can run before letting this touch real data.
5. Ask before any step that sends messages, modifies data, or spends money.

Source: https://usecasesforagents.com/use-case/auto-generate-product-descriptions-for-magento/ via usecasesforagents.com

Frequently asked questions

Can I use a different Automation Platform than n8n?

Yes. n8n is only the example automation platform in this recipe. The same flow works with Home Assistant. Swap the automation platform connection and keep the rest of the setup as written.

Want this running in your business?

This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Get in touch →

Who it's for

Also fits E-commerce Operator.

Seen in the wild

← Back to directory