Skip to main content

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

Hey everyone,

Updated 2 min readMarkdown
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.

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

About the author

  • I am a Journalist-turned-Software Engineer. I love coding and the associated grind of learning every day. A firm believer in social learning, I owe my dev career to all the tech content creators I have learned from. This is my contribution back to the community.

No comments yet. Be the first to comment.