# Stop Writing Alt Tags Manually: I Built an AI Solution That Does It in Minutes

Hey everyone,

If you manage a website (or several), you know the pain of alt tags.

They’re essential for accessibility and SEO, but writing hundreds of them manually?

Soul-crushing work.

And let’s be honest: when we DO write them, half the time they end up as generic descriptions like “image-123.jpg” that help exactly no one.

![](https://substackcdn.com/image/fetch/$s_!QwIG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f1c8661-c403-4686-98be-0181ec2191f5_1739x291.png)

## How It Actually Works

The workflow is surprisingly elegant. You feed it any URL, and it:

1. **Scrapes the page** and finds every image missing an alt tag
2. **Extracts rich context** – page titles, nearby text, headings, captions, everything around that image
3. **Sends both the image URL and context to GPT-4o-mini** – this is key: the AI actually LOOKS at the image while understanding where it appears on the page
4. **Generates perfect alt tags** following Google’s accessibility guidelines
5. **Stores everything in a database** ready for your CMS

The magic is in the context. Most alt tag generators just describe what they see. This workflow understands PURPOSE. A photo of a laptop gets described differently on a tech news site versus an e-commerce product page versus a workspace inspiration blog.

## Who This Is For

This is perfect if you’re:

- A developer managing multiple client sites
- An SEO specialist optimizing for image search
- A content manager drowning in accessibility backlog
- An agency that needs to scale accessibility services
- Anyone who cares about making the web more accessible

## The Technical Bits

Don’t worry if you’re not an n8n expert – I walk through every single node in detail. You’ll learn:

- How to scrape websites properly
- JavaScript for HTML parsing (regex-based, no external libraries)
- How to structure prompts for vision AI
- Loop automation techniques
- Database integration basics

Even if you’ve never used n8n before, you’ll have a working automation by the end.

## Watch It Here

%[https://www.youtube.com/watch?v=VXhh2FdIsdE]
