Automated Image Alt Text Extraction and Improvement Workflow

somdn_product_page

This n8n workflow automates the process of extracting all images from a webpage, evaluating their existing alt text, and generating improved descriptions where necessary. It’s designed to enhance accessibility and SEO by ensuring all images have meaningful alt text.

The workflow begins with a manual trigger, which activates the process. It fetches the webpage HTML, parses it to locate image tags, and extracts their ‘src’ and ‘alt’ attributes. It records all images and corresponding alt texts in a Google Sheet for tracking.

Next, the workflow evaluates each image’s alt text length. For images with alt text shorter than 50 characters, it uses OpenAI’s GPT-4 model via LangChain integration to generate more descriptive alt text, adhering to a character limit. The new alt texts are then updated back into the Google Sheet, providing a comprehensive and accessible image dataset.

This workflow is particularly useful for web developers, content managers, and SEO specialists aiming to improve website accessibility, meet compliance standards, or optimize search engine rankings by ensuring all images are adequately described.

Node Count

11 – 20 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.openAi, code, googleSheets, httpRequest, if, limit, manualTrigger, set, splitInBatches, stickyNote

Reviews

There are no reviews yet.

Be the first to review “Automated Image Alt Text Extraction and Improvement Workflow”

Your email address will not be published. Required fields are marked *