Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Image, Video & Audio

Image, Video & Audio

Generate WordPress image alt text with OpenAI and review it in Google Sheets

Runs hourly to find WordPress media missing alt text. A vision LLM writes context-aware text from the attached post, logs it to Google Sheets for approval, then writes approved text back to WordPress.

What it does

## Auto-fill missing WordPress image alt text with context-aware AI (no plugins) ### How it works This workflow finds WordPress media items that are missing image alt text, skips items already logged, enriches each image with the title and excerpt of the post or page it is attached to, and uses a vision-capable LLM to generate context-aware alt text in your chosen language. In review mode (default) suggestions are logged to Google Sheets as pending; change a row's status to approved (edit the text first if you like) and the hourly run writes it to WordPress. In auto mode alt text is written to WordPress immediately and logged. ### Setup steps - WordPress: Users → Profile → *Application Passwords* → create one. Add a WordPress API credential (site URL, username, application password) and select it in every WordPress HTTP Request node. - Google Sheets: create one tab named Log with this header row: media_id | image_url | admin_url | post_title | alt_text | is_decorative | confidence | status | updated_at Connect your Google Sheets credential in all four Sheets nodes. - AI model: add OpenAI credentials, or swap the chat model for Claude, Gemini or any other vision-capable model. - Config: fill in wp_base_url (no trailing slash), sheet_id, alt_language, mode and max_per_run. - Test with max_per_run = 5 via Manual Trigger and check the sheet before activating the schedules. ### Important — scope This updates the alt text stored on the media library item. WordPress stores alt text for images already placed inside post content in the post HTML, so those existing in-content images are not changed. Featured images, galleries, WooCommerce product images and future inserts use the new alt text. ### Customization Change max_per_run to control batch size and AI cost, max_alt_length for alt text length, or the prompt rules inside the LLM chain for your preferred style.

The steps

  1. When Daily at 3 AM
  2. Manual Trigger
  3. Every Hour Trigger
  4. Set Config Parameters
  5. If Apply Run
  6. Read Processed Log in Sheets
  7. Fetch WordPress Media
  8. Filter Missing Alt & Supported Format
  9. Skip Processed Media IDs
  10. Limit Items per Run
  11. Set Media Item Fields
  12. If Attached to Post
  13. Get Parent Post Details
  14. If Post Found

28 steps in total.

Similar automations