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.
Reviews
There are no reviews yet.