Magento 2: Auto-Fix Missing Image Alt Tags with Product Name

Automates updating missing alt tags on Magento 2 product images by setting them to the product name via REST API, improving SEO and accessibility.

n8n
Magento 2: Auto-Fix Missing Image Alt Tags with Product Name

This n8n workflow connects to a Magento 2 store via REST API to automatically fix product images lacking alt tags (labels). It fetches a paginated list of products, loops through each, identifies media gallery entries with empty or null labels, and updates them by assigning the product name as the alt text. Designed for manual or scheduled runs, it ensures comprehensive coverage of your product catalog.

The workflow begins with a manual trigger, followed by an HTTP request to retrieve all product SKUs. It uses Split Out and Loop Over Items to process each product individually. An If node filters for products with images, then a Code node checks and sets missing labels to the product name. Finally, an HTTP PUT request updates the product via Magento's V1/products/:sku endpoint.

Benefits include enhanced SEO through descriptive alt tags, improved accessibility compliance (e.g., WCAG), and automation of tedious manual cleanup for bulk-imported or legacy products. Ideal for e-commerce stores with hundreds or thousands of products, it boosts search rankings, product discoverability, store quality scores, and user experience without custom development.

Use cases: Post-import catalog fixes, routine maintenance for growing inventories, SEO audits, or accessibility retrofits. Requirements: Magento 2 REST API access with product read/write permissions.

$14.99
Last updated November 14, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Customer Support workflows

More from Tomas Zielinski

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.