Templates / Generate missing WordPress image alt text with OpenAI vision

Generate missing WordPress image alt text with OpenAI vision

Ready for 3.0

by Bincy Bhanu. S ✓ · 1 views · created 2026-10-16 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.openai.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 7 fields: siteUrl, imagesToScan, maxImagesPerRun…
  2. Get media library images (HTTP Request): calls an HTTP API (GET)
  3. Select images missing alt text (Code): runs custom JavaScript code
  4. Generate alt text with OpenAI (HTTP Request): calls api.openai.com (POST)
  5. Validate alt text (Code): runs custom JavaScript code
  6. Is alt text valid? (If): checks a condition and branches into true / false
  7. Dry run enabled? (If): checks a condition and branches into true / false
  8. Skipped result (Edit Fields (Set)): sets 3 fields: id, reason, result
  9. Dry run result (Edit Fields (Set)): sets 4 fields: id, imageUrl, proposedAltText…
  10. Save alt text to WordPress (HTTP Request): calls an HTTP API (POST)

…plus 1 more step. See the full node list below.

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick overview This workflow runs manually or every Monday at 9am, finds WordPress media library images missing alt text, generates concise descriptions with the OpenAI Chat Completions API using vision, validates the results, and optionally writes the alt…

Excerpt from Bincy Bhanu. S's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.