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.
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.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
AI Chatbot Deployment Kit
8 workflows for $59.00 (save 46%).
$109.92 if bought separately.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Customer Support workflows
- Automate Multilingual Customer Support with AI Voice Agent and Calendar Integration$9.99
- Automate Multichannel Customer Support with AI in Chatwoot$9.99
- Automate Customer Support on WhatsApp Using Google Docs and AI$9.99
- Automate Daily Jira Ticket Summaries with AI and Email Delivery$14.99
- Automate Facebook Comment Responses with AI and Notion Integration$14.99
- AI Customer Support Assistant: WhatsApp Ready, Works for Any Business$9.99
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.