Templates / Track Google keyword rankings with Apify, OpenAI, Google Sheets and Gmail

Track Google keyword rankings with Apify, OpenAI, Google Sheets and Gmail

Ready for 3.0

by Dr. Firas ✓ · 1,767 views · created 2026-07-21 · Market Research, AI Summarization

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-10-19.

What 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).

  1. Configuration (Edit Fields (Set)): sets 7 fields: keywords, target_domain, country_code…
  2. Prepare keyword list (Edit Fields (Set)): sets 1 field: keyword_list
  3. Split keywords into items (Split Out): splits a list into separate items
  4. Scrape Google results with Apify (HTTP Request): calls api.apify.com (POST)
  5. Extract and rank SERP results (Code): runs custom JavaScript code
  6. Log rankings to Google Sheets (Google Sheets): append
  7. Combine rankings for AI analysis (Aggregate): combines items into one
  8. Generate AI SEO report (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  9. Email the SEO report (Gmail): uses Gmail

Services it uses

Google SheetsOpenAI Chat ModelGmail

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)

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…

Excerpt from Dr. Firas'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.