Track Google keyword rankings with Apify, OpenAI, Google Sheets and Gmail
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on a schedule (every day at 08:00). Along the way it connects Google Sheets, OpenAI Chat Model and Gmail. It also calls api.apify.com over HTTP.
How it runs
Trigger: On a schedule (every day at 08:00).
- Configuration (Edit Fields (Set)): sets 7 fields: keywords, target_domain, country_code…
- Prepare keyword list (Edit Fields (Set)): sets 1 field: keyword_list
- Split keywords into items (Split Out): splits a list into separate items
- Scrape Google results with Apify (HTTP Request): calls api.apify.com (POST)
- Extract and rank SERP results (Code): runs custom JavaScript code
- Log rankings to Google Sheets (Google Sheets): append
- Combine rankings for AI analysis (Aggregate): combines items into one
- Generate AI SEO report (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Email the SEO report (Gmail): uses Gmail
Services it uses
HTTP calls to: api.apify.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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs daily to scrape Google SERPs for a list of keywords using Apify, logs ranking results to Google Sheets, generates an HTML SEO summary with OpenAI, and emails the report via Gmail. How it works 1. Runs every day at 8 AM on a…