Skip to main content

Competitor intelligence agent: SERP monitoring + summary with Thordata + OpenAI

Workflow preview

Workflow preview
100%
Competitor intelligence agent: SERP monitoring + summary with Thordata + OpenAI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who this is for? This workflow is designed for: Marketing analysts , SEO specialists , and content strategists who want automated intelligence on their online competitors. Growth teams that need qu...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequesttool, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.informationextractor

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ranjan Dailata.

Original n8n.io source

1.1 Workflow description

Title
Competitor intelligence agent: SERP monitoring + summary with Thordata + OpenAI
Workflow name
Competitor intelligence agent: SERP monitoring + summary with Thordata + OpenAI

Who this is for?

This workflow is designed for:

  • Marketing analysts, SEO specialists, and content strategists who want automated intelligence on their online competitors.
  • Growth teams that need quick insights from SERP (Search Engine Results Pages) without manual data scraping.
  • Agencies managing multiple clients’ SEO presence and tracking competitive positioning in real-time.

What problem is this workflow solving?

Manual competitor research is time-consuming, fragmented, and often lacks actionable insights. This workflow automates the entire process by:

  • Fetching SERP results from multiple search engines (Google, Bing, Yandex, DuckDuckGo) using Thordata’s Scraper API.
  • Using OpenAI GPT-4.1-mini to analyze, summarize, and extract keyword opportunities, topic clusters, and competitor weaknesses.
  • Producing structured, JSON-based insights ready for dashboards or reports.

Essentially, it transforms raw SERP data into strategic marketing intelligence — saving hours of research time.

What this workflow does

Here’s a step-by-step overview of how the workflow operates:

Step 1: Manual Trigger

Initiates the process on demand when you click “Execute Workflow.”

Step 2: Set the Input Query

The “Set Input Fields” node defines your search query, such as:

> “Top SEO strategies for e-commerce in 2025”

Step 3: Multi-Engine SERP Fetching

Four HTTP request tools send the query to Thordata Scraper API to retrieve results from:

  • Google
  • Bing
  • Yandex
  • DuckDuckGo

Each uses Bearer Authentication configured via “Thordata SERP Bearer Auth Account.”

Step 4: AI Agent Processing

The LangChain AI Agent orchestrates the data flow, combining inputs and preparing them for structured analysis.

Step 5: SEO Analysis
  • The SEO Analyst node (powered by GPT-4.1-mini) parses SERP results into a structured schema, extracting:

    • Competitor domains
    • Page titles & content types
    • Ranking positions
    • Keyword overlaps
    • Traffic share estimations
    • Strengths and weaknesses
Step 6: Summarization

The Summarize the content node distills complex data into a concise executive summary using GPT-4.1-mini.

Step 7: Keyword & Topic Extraction

The Keyword and Topic Analysis node extracts:

  • Primary and secondary keywords
  • Topic clusters and content gaps
  • SEO strength scores
  • Competitor insights
Step 8: Output Formatting

The Structured Output Parser ensures results are clean, validated JSON objects for further integration (e.g., Google Sheets, Notion, or dashboards).

4. Setup

Prerequisites
  • n8n Cloud or Self-Hosted instance
  • Thordata Scraper API Key (for SERP data retrieval)
  • OpenAI API Key (for GPT-based reasoning)
Setup Steps
  1. Add Credentials

    • Go to Credentials → Add New → HTTP Bearer Auth → Paste your Thordata API token.
    • Add OpenAI API Credentials for the GPT model.
  2. Import the Workflow

    • Copy the provided JSON or upload it into your n8n instance.
  3. Set Input

    • In the “Set the Input Fields” node, replace the example query with your desired topic, e.g.: “Google Search for Top SEO strategies for e-commerce in 2025”
  4. Execute

    • Click “Execute Workflow” to run the analysis.

How to customize this workflow to your needs

Modify Search Query

Change the search_query variable in the Set Node to any target keyword or topic.

Change AI Model

In the OpenAI Chat Model nodes, you can switch from gpt-4.1-mini to another model for better quality or lower cost.

Extend Analysis

Edit the JSON schema in the “Information Extractor” nodes to include:

  • Sentiment analysis of top pages
  • SERP volatility metrics
  • Content freshness indicators
Export Results

Connect the output to:

  • Google Sheets / Airtable for analytics
  • Notion / Slack for team reporting
  • Webhook / Database for automated storage

Summary

This workflow creates an AI-powered Competitor Intelligence System inside n8n by blending:

  • Real-time SERP scraping (Thordata)
  • Automated AI reasoning (OpenAI GPT-4.1-mini)
  • Structured data extraction (LangChain Information Extractors)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Bing Search

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 4 - Google Search

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 5 - Yandex Search

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 6 - DuckDuckGo Search

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 9 - Set the Input Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Summarize the content

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 11 - OpenAI Chat Model For Summarization

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 12 - Keyword and Topic Analysis

Type / Role
@n8n/n8n-nodes-langchain.informationExtractor - informationExtractor
Config choices
Version 1.2

Block 13 - OpenAI Chat Model for Keyword and Topic Analysis

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - SEO Analyst

Type / Role
@n8n/n8n-nodes-langchain.informationExtractor - informationExtractor
Config choices
Version 1.2

Block 15 - OpenAI Chat Model for SEO Analyst

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 16 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 17 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Append or update row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 21 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 22 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Competitor intelligence agent: SERP monitoring + summary with Thordata + OpenAI
Complexity advanced
Nodes 23
Categories Market Research, AI Summarization
Author Ranjan Dailata
Published 28 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10252/10252.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Competitor intelligence agent: SERP monitoring + summary with Thordata + OpenAI do?

Who this is for? This workflow is designed for: Marketing analysts , SEO specialists , and content strategists who want automated intelligence on their online competitors. Growth teams that need qu...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.