πŸ“Š Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

⚑ 218 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping.

Who this is for

What problem this workflow solves

Tracking competitor keywords manually is slow and inconsistent.

Most SEO tools provide limited API access or lack contextual keyword analysis.

This workflow solves that by:

What this workflow does

  1. Trigger β€” Manually start the workflow or schedule it to run periodically.

  2. Input Setup β€” Define the website URL and target country (e.g., https://dev.to, france).

  3. Data Scraping (Decodo) β€” Fetch competitor web content and metadata.

  4. Keyword Analysis (OpenAI GPT-4.1-mini)

    • Extract primary and secondary keywords.
    • Identify focus topics and semantic entities.
    • Generate a keyword density summary and SEO strength score.
    • Recommend optimization and internal linking opportunities.
  5. Data Structuring β€” Clean and convert GPT output into JSON format.

  6. Data Storage (Google Sheets) β€” Append structured keyword data to a Google Sheet for long-term tracking.

Setup

Prerequisites

If you are new to Decode, please signup on this link visit.decodo.com

Make sure to install the Decodo Community node.

DecodoCommunityNode.png

  1. Create a Google Sheet

    • Add columns for: primary_keywords, seo_strength_score, keyword_density_summary, etc.
    • Share with your n8n Google account.
  2. Connect Credentials

    • Add credentials for:

      • Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard
      • OpenAI API (for GPT-4o-mini)
      • Google Sheets OAuth2
  3. Configure Input Fields

    • Edit the β€œSet Input Fields” node to set your target site and region.
  4. Run the Workflow

    • Click Execute Workflow in n8n.
    • View structured results in your connected Google Sheet.

How to customize this workflow

Summary

This workflow automates competitor keyword research using:

It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

πŸ”— Nodes Used

Google Sheets, Basic LLM Chain, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup