🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

SE Ranking to Google Sheets, ranked SEO gaps fast

Lisa Granqvist Partner Workflow Automation Expert

Your “SEO opportunities” live in too many places. SE Ranking reports, a few competitor tabs, a half-finished content calendar, and someone’s notes in Slack. Then Monday hits, and you still can’t answer a simple question: What should we publish next, and why?

This SEO gap automation hits SEO leads first, but content strategists and marketing managers feel it too. It turns competitive data into a ranked list you can actually act on, so you stop guessing and start shipping the right pages.

Below, you’ll see how the workflow pulls AI visibility + keyword gaps from SE Ranking, scores the opportunities, and drops a prioritized backlog into Google Sheets.

The Problem: SEO Gap Research Turns Into Spreadsheet Sprawl

Competitive SEO research is supposed to create clarity. In practice, it creates piles. You check where competitors outrank you, then you cross-reference search volume, then you sanity-check difficulty, then you try to understand if AI search is also favoring them (ChatGPT, Perplexity, Gemini). Somewhere in that mess, good ideas die because they never get prioritized. And frankly, most teams don’t lose because they lack data. They lose because they can’t turn data into a short, confident list.

It adds up fast. Here’s where it breaks down in real life.

  • Opportunity research takes a few hours, then goes stale the moment rankings shift.
  • AI search visibility gets checked “when we have time,” so it never truly impacts the roadmap.
  • Keyword lists get copied around, which means duplicate work and missed context.
  • Prioritization becomes opinion-based because you’re not scoring gaps consistently.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: SE Ranking to Google Sheets, ranked SEO gaps fast

The Solution: SE Ranking → Scored Gap List in Google Sheets

This workflow turns SE Ranking competitive findings into a ranked, decision-ready backlog inside Google Sheets. You start by setting your domain, your competitor, and a region (like US or UK). The workflow pulls your AI search visibility and your competitor’s visibility across ChatGPT, Perplexity, and Gemini, then compares them to identify where you are losing share. Next, it grabs the competitor’s top prompts and top keywords, pulls in backlink authority signals, and fetches keyword metrics like volume and difficulty for the gaps. Finally, a scoring step prioritizes each opportunity as HIGH, MEDIUM, or LOW and writes the full list to a spreadsheet, complete with recommendations you can hand to a writer.

The workflow begins with a manual trigger (or any trigger you prefer), then runs a series of SE Ranking calls with built-in waits to avoid throttling. After it merges the AI visibility and keyword data, it scores the gaps and exports them to Google Sheets so your content plan has a clear starting point.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you review two competitors every week and you track three AI engines (ChatGPT, Perplexity, Gemini) plus keyword metrics. Manually, that’s often about 2 hours per competitor once you collect exports, clean them up, and argue about priority, so you can burn most of a morning. With this workflow, you trigger a run, wait for the API calls and scoring, and get a ready-to-sort Google Sheet in roughly 10 minutes. That’s several hours back each week, and the output is consistent every time.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • SE Ranking for AI visibility, keyword, and backlink data
  • Google Sheets to store and share ranked gaps
  • SE Ranking API token (get it from your SE Ranking account API settings)

Skill level: Intermediate. You’ll paste API credentials, edit a configuration node, and map a few fields to your sheet.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

You kick it off with a trigger. The workflow includes a manual launch so you can run it on demand during planning, but you can also swap in a schedule or a webhook if you want weekly updates.

Your domain and competitor get set once. A configuration step stores the domain, rival domain, and “source” region. That same config controls thresholds later (for example, where volume is “worth it” for your team).

SE Ranking pulls the competitive inputs. It collects your AI visibility and the competitor’s visibility across ChatGPT, Perplexity, and Gemini, then merges the streams to compute AI opportunity gaps. Wait nodes are used between calls so you don’t trip rate limits when you run bigger comparisons.

Opportunities get enriched, scored, and exported. The workflow retrieves competitor top prompts, top keywords, and backlink power, then fetches volume and difficulty for the final keyword set. A scoring step assigns priority (HIGH, MEDIUM, LOW) and writes the ranked rows into Google Sheets, ready for your backlog.

You can easily modify the region source to match your market (US, UK, DE, FR, and so on) based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Manual Trigger

Start the workflow with a manual run so you can validate the AI search gap insights before scheduling or production use.

  1. Add and open Manual Launch Trigger to serve as the workflow entry point.
  2. Connect Manual Launch Trigger to Set Initial Parameters as shown in the execution flow.
  3. Verify the execution order in the canvas matches: Manual Launch TriggerSet Initial Parameters.

Step 2: Connect SE Ranking

This workflow makes extensive use of SE Ranking API calls for AI search statistics, keyword discovery, backlink metrics, and prompt data.

  1. Open Fetch Own AI Stats GPT and confirm Resource is set to aiSearch with expressions like {{ $json.scope }} and {{ $json.your_domain }}.
  2. Repeat for all SE Ranking nodes: Fetch Own AI Stats Perplex, Fetch Own AI Stats Gemini, Fetch Rival AI Stats GPT, Fetch Rival AI Stats Perplex, Fetch Rival AI Stats Gemini, Retrieve Rival Top Prompts, Retrieve Rival Top Keywords, Fetch Rival Backlink Power, and Fetch Gap Keyword Metrics.
  3. Credential Required: Connect your seRankingApi credentials on each SE Ranking node.
  4. Confirm the parallel branch behavior: Compute AI Opportunity Gaps outputs to both Fetch Rival Backlink Power and Pause Throttle G in parallel.
Tip: Because there are 10+ SE Ranking calls and 7 wait nodes, keep your API rate limits in mind and retain all Pause Throttle APause Throttle G nodes to prevent throttling.

Step 3: Set Up Parameter Inputs and Throttling

Define the base inputs used across all requests and keep the throttling sequence intact for stable API responses.

  1. In Set Initial Parameters, set your_domain to seranking.com, source to us, scope to base_domain, and competitor_domain to semrush.com.
  2. Ensure Fetch Own AI Stats GPT uses the direct expressions from the trigger payload: {{ $json.scope }}, {{ $json.your_domain }}, and {{ $json.source }}.
  3. Confirm the throttling chain: Fetch Own AI Stats GPTPause Throttle AFetch Own AI Stats PerplexPause Throttle BFetch Own AI Stats GeminiPause Throttle C.
  4. Check the competitor chain: Fetch Own AI Stats GeminiPause Throttle CFetch Rival AI Stats GPTPause Throttle DFetch Rival AI Stats PerplexPause Throttle EFetch Rival AI Stats Gemini.
⚠️ Common Pitfall: Removing or shortening the Pause Throttle nodes can trigger SE Ranking rate limits and cause incomplete AI visibility data.

Step 4: Set Up Processing and Merging Logic

These nodes calculate AI visibility gaps, parse prompts and keywords, and merge data for final opportunity scoring.

  1. Verify Combine AI Visibility is set to Mode combine and Combination Mode mergeByPosition to align rival engine responses.
  2. Confirm Compute AI Opportunity Gaps references the prior nodes and returns gap metrics and opportunity scores as defined in its JavaScript.
  3. Check the prompt branch: Retrieve Rival Top Prompts outputs to both Parse Leading Prompts and Pause Throttle F in parallel, then Pause Throttle FRetrieve Rival Top KeywordsParse Leading Keywords.
  4. Ensure Merge Prompt Keyword Sets receives both Parse Leading Prompts and Parse Leading Keywords, then flows into Assemble Keyword List.
  5. In Fetch Gap Keyword Metrics, keep Keywords set to =seo and Source to {{ $('Set Initial Parameters').first().json.source }}.
  6. Confirm Fetch Rival AI Stats Perplex outputs to both Combine AI Visibility and Pause Throttle E in parallel.
  7. Ensure Unify Insight Streams combines Fetch Gap Keyword Metrics and Fetch Rival Backlink Power before Score Final Opportunities.

Step 5: Configure the Output Destination

Send the final ranked opportunities into Google Sheets for reporting and analysis.

  1. Open Update Google Spreadsheet and set Operation to appendOrUpdate.
  2. Set the Document to [YOUR_ID] and Sheet to Sheet1 (gid 0), matching the node settings.
  3. Credential Required: Connect your googleSheetsOAuth2Api credentials.
  4. Keep Columns mapping set to autoMapInputData to write the fields from Score Final Opportunities automatically.

Step 6: Test and Activate Your Workflow

Run a controlled test to confirm the insights pipeline and sheet update are working before enabling production use.

  1. Click Execute Workflow from Manual Launch Trigger to run the entire sequence.
  2. Verify outputs at Compute AI Opportunity Gaps, Assemble Keyword List, and Score Final Opportunities to confirm rankings and opportunity scores are populated.
  3. Check Update Google Spreadsheet to confirm new rows are appended with fields like rank, analysis_date, and opportunity_score.
  4. Once validated, switch the workflow to Active to use it in production runs.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • SE Ranking credentials can expire or need specific permissions. If things break, check your SE Ranking API token status in your account settings first.
  • If you’re using Wait nodes or external processing, timing varies. Bump up the wait duration if downstream scoring nodes run before SE Ranking returns complete datasets.
  • Default prompts in AI nodes are generic. Add your brand voice and scoring philosophy early or you will keep second-guessing the recommendations in the sheet.

Frequently Asked Questions

How long does it take to set up this SEO gap automation?

About 30 minutes if your SE Ranking token and Google Sheet are ready.

Do I need coding skills to automate SEO gap scoring?

No. You’ll connect credentials and adjust a few configuration fields in n8n.

Is n8n free to use for this SEO gap automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API usage if you keep the AI recommendation step enabled.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this SEO gap automation workflow for different regions?

Yes, and it’s one of the best tweaks to make. Change the “source” value in the configuration step to match your market (us, uk, de, fr, and so on). You can also adjust the scoring weights and the volume/difficulty thresholds in the code steps so the HIGH/MEDIUM/LOW labels reflect how your team actually prioritizes work.

Why is my SE Ranking connection failing in this workflow?

Most of the time it’s an expired or incorrect API token saved in n8n. Regenerate the token in your SE Ranking account, then update the credential used by the SE Ranking community nodes. If it still fails, check that the account has API access enabled and that you’re not hitting rate limits when comparing large keyword sets.

How many keywords can this SEO gap automation handle?

On n8n Cloud Starter, you’re mainly limited by monthly executions and how often you run the workflow, not by a hard keyword cap. If you self-host, there’s no execution limit (it depends on your server). In practice, most teams start with a few hundred gap keywords per run, then refine filters so the sheet stays readable and fast to act on.

Is this SEO gap automation better than using Zapier or Make?

Usually, yes, because this workflow needs branching, merging, waits, and scoring logic that gets awkward (and expensive) in simpler automation tools. n8n also lets you self-host, which matters if you want to run this weekly without watching task limits. Zapier or Make can still work if you only want a basic “pull report, append to sheet” flow and you don’t care about prioritization. The moment you want consistent scoring, plus AI visibility comparisons, you’ll appreciate n8n’s flexibility. Talk to an automation expert if you want help choosing.

Once this is running, you stop treating competitive research like a one-off project. You get a living, ranked list your team can execute on, week after week.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal