Detect decaying WordPress posts and log GPT-4 refresh briefs with Search Console and Sheets
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs on a schedule (every week at 07:00) (plus 1 other trigger). Along the way it connects Google Sheets and OpenAI Chat Model.
How it runs
Trigger: On a schedule (every week at 07:00) (plus 1 other trigger).
- Set GSC and WP Config (Edit Fields (Set)): sets 11 fields: gsc_property, wp_base_url, language…
- Read Log from Google Sheets (Google Sheets): read
- Post Current Period Pages (HTTP Request): calls an HTTP API (POST)
- Label Refreshed Rows (Code): runs custom JavaScript code
- Post Previous Period Pages (HTTP Request): calls an HTTP API (POST)
- If: checks a condition and branches into true / false
- Identify Decaying Pages (Code): runs custom JavaScript code
- Post Clicks Data (HTTP Request): calls an HTTP API (POST)
- Update Refresh Date in Sheets (Google Sheets): update
- Get WP Posts by Slug (HTTP Request): calls an HTTP API
…plus 14 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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - 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 runs weekly (or manually) to detect WordPress pages with declining clicks in Google Search Console, generates evidence-based refresh briefs with OpenAI using page and query data plus the article content, and logs briefs and…