Track Competitor SEO Keywords with Decodo + GPT-4.1-mini + Google Sheets
This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping.
Who this is for
SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence.
Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls.
Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting.
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:
Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis.
What this workflow does
Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. 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. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking.
Setup
Prerequisites
n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2
Make sure to install the Decodo Community node.
Create a Google Sheet
Add columns for: primary_keywords, seo_strength_score, keyword_density_summary, etc. Share with your n8n Google account.
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
Configure Input Fields
Edit the “Set Input Fields” node to set your target site and region.
Run the Workflow
Click Execute Workflow in n8n. View structured results in your connected Google Sheet.
How to customize this workflow
Track Multiple Competitors** → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node.
Add Language Detection** → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts.
Enhance the SEO Report** → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks.
Integrate Visualization** → Connect your Google Sheet to Looker Studio for SEO performance dashboards.
Schedule Auto-Runs** → Use the Cron Node to run weekly or monthly for competitor keyword refreshes.
Summary
This workflow automates competitor keyword research using:
Decodo** for intelligent web scraping OpenAI GPT-4.1-mini** for keyword and SEO analysis Google Sheets** for live tracking and reporting
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.
Related Templates
Automate Customer Support & Calendar Bookings with OpenAI GPT and Google Calendar
Website AI Agent with Calendar Integration Categories: AI Agents, Website Integration, Calendar Automation This workfl...
Sync Zendesk tickets to your HubSpot contacts
This workflow automatically syncs your Zendesk tickets to your HubSpot contacts. Every 5 minutes, your HubSpot account c...
Get Qualified Leads in One Click from Apollo to Airtable
You Don’t Need More Tools. You Just Need the Right Leads. Why spend $1,000s on lead gen when your perfect leads are alre...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments