Auto-fill missing WordPress image alt text with OpenAI and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs on a schedule (every day at 03:00) (plus 2 other triggers). Along the way it connects Google Sheets and OpenAI Chat Model.
How it runs
Trigger: On a schedule (every day at 03:00) (plus 2 other triggers).
- Set Config Parameters (Edit Fields (Set)): sets 7 fields: wp_base_url, alt_language, mode…
- If: checks a condition and branches into true / false
- Read Approved Rows in Sheets (Google Sheets): read
- Read Processed Log in Sheets (Google Sheets): read
- Post Approved Alt Text to WordPress (HTTP Request): calls an HTTP API (POST)
- Fetch WordPress Media (HTTP Request): calls an HTTP API
- Mark Alt Text as Applied in Sheets (Google Sheets): update
- Filter: keeps only the items that match a condition
- Skip Processed Media IDs (Code): runs custom JavaScript code
- Limit: keeps the first few items
…plus 13 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011)
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 (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - Limit
n8n-nodes-base.limit - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Quick overview This workflow scans your WordPress media library for images missing alt text, generates context-aware alt text with OpenAI vision using the attached post/page title and excerpt, and logs suggestions to Google Sheets for review or applies them…