Skip to main content

Search & enrich: Smart keyword analysis with Decodo + OpenAI GPT-4.1-mini

Workflow preview

Workflow preview
100%
Search & enrich: Smart keyword analysis with Decodo + OpenAI GPT-4.1-mini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Disclaimer Please note This workflow is only available on n8n self hosted as it's making use of the community node for the Decodo Web Scraping ![Search & Enrich: Smart Keyword Analysis with Decodo ...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.function, n8n-nodes-base.readwritefile, n8n-nodes-base.stickynote, @decodo/n8n-nodes-decodo.decodo, n8n-nodes-base.splitinbatches, @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
Search & enrich: Smart keyword analysis with Decodo + OpenAI GPT-4.1-mini
Workflow name
Search & enrich: Smart keyword analysis with Decodo + OpenAI GPT-4.1-mini

Disclaimer

Please note - This workflow is only available on n8n self-hosted as it's making use of the community node for the Decodo Web Scraping

This workflow automates intelligent keyword and topic extraction from Google Search results, combining Decodo’s advanced scraping engine with OpenAI GPT-4.1-mini’s semantic analysis capabilities. The result is a fully automated keyword enrichment pipeline that gathers, analyzes, and stores SEO-relevant insights.

Who this is for

This workflow is ideal for:

  • SEO professionals who want to extract high-value keywords from competitors.
  • Digital marketers aiming to automate topic discovery and keyword clustering.
  • Content strategists building data-driven content calendars.
  • AI automation engineers designing scalable web intelligence and enrichment pipelines.
  • Growth teams performing market and search intent research with minimal effort.

What problem this workflow solves

Manual keyword research is time-consuming and often incomplete. Traditional keyword tools only provide surface-level data and fail to uncover contextual topics or semantic relationships hidden in search results.

This workflow solves that by:

  • Automatically scraping live Google Search results for any keyword.
  • Extracting meaningful topics, related terms, and entities using AI.
  • Enriching your keyword list with semantic intelligence to improve SEO and content planning.
  • Storing structured results directly in n8n Data Tables for trend tracking or export.

What this workflow does

Here’s a breakdown of the flow:

  1. Set the Input Fields – Define your search query and target geo (e.g., “Pizza” in “India”).
  2. Decodo Google Search – Fetches organic search results using Decodo’s web scraping API.
  3. Return Organic Results – Extracts the list of organic results and passes them downstream.
  4. Loop Over Each Result – Iterates through every search result description.
  5. Extract Keywords and Topics – Uses OpenAI GPT-4.1-mini to identify relevant keywords, entities, and thematic topics from each snippet.
  6. Data Enrichment Logic – Checks whether each result already exists in the n8n Data Table (based on URL).
  7. Insert or Skip – If a record doesn’t exist, inserts the extracted data into the table.
  8. Store Results – Saves both enriched search data and Decodo’s original response to disk.

End Result: A structured and deduplicated dataset containing URLs, keywords, and key topics — ready for SEO tracking or further analytics.

Setup

Pre-requisite

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

Please make sure to install the n8n custom node for Decodo.

Import and Configure the Workflow

  1. Open n8n and import the JSON template.

  2. Add your credentials:

    • Decodo API Key under Decodo Credentials account.
    • OpenAI API Key under OpenAI Account.

Define Input Parameters

  • Modify the Set node to define:

    • search_query: your keyword or topic (e.g., “AI tools for marketing”)
    • geo: the target region (e.g., “United States”)

Configure Output

  • The workflow writes two outputs:

    1. Enriched keyword data → Stored in n8n Data Table (DecodoGoogleSearchResults).
    2. Raw Decodo response → Saved locally in JSON format.

Execute

Click Execute Workflow or schedule it for recurring keyword enrichment (e.g., weekly trend tracking).

How to customize this workflow

  • Change AI Model — Replace gpt-4.1-mini with gemini-1.5-pro or claude-3-opus for testing different reasoning strengths.
  • Expand the Schema — Add extra fields like keyword difficulty, page type, or author info.
  • Add Sentiment Analysis — Chain a second AI node to assess tone (positive, neutral, or promotional).
  • Export to Sheets or DB — Replace the Data Table node with Google Sheets, Notion, Airtable, or MySQL connectors.
  • Multi-Language Research — Pass a locale parameter in the Decodo node to gather insights in specific languages.
  • Automate Alerts — Add a Slack or Email node to notify your team when high-value topics appear.

Summary

Search & Enrich is a low-code AI-powered keyword intelligence engine that automates research and enrichment for SEO, content, and digital marketing.

By combining Decodo’s real-time SERP scraping with OpenAI’s contextual understanding, the workflow transforms raw search results into structured, actionable keyword insights. It eliminates repetitive research work, enhances content strategy, and keeps your keyword database continuously enriched — all within n8n.

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 - When clicking ‘Execute workflow’

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

Block 2 - Set the Input Fields

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

Block 3 - Create a Binary Response

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

Block 4 - Write the Structured Google Search Results to Disk

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

Block 5 - Sticky Note

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

Block 6 - Google Search with Decodo

Type / Role
@decodo/n8n-nodes-decodo.decodo - decodo
Config choices
Version 1

Block 7 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 8 - Extract Keywords and Topics

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

Block 9 - Sticky Note1

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

Block 10 - OpenAI Chat Model for Keywords and Topics

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

Block 11 - Sticky Note2

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

Block 12 - Return the Organic Search Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Insert row on Data Table

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

Block 14 - Sticky Note3

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

Block 15 - If row exists

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

Block 16 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Sticky Note5

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

3. Summary Table

Workflow Search & enrich: Smart keyword analysis with Decodo + OpenAI GPT-4.1-mini
Complexity advanced
Nodes 17
Categories Market Research, AI Summarization
Author Ranjan Dailata
Published 09 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10648/10648.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 Search & enrich: Smart keyword analysis with Decodo + OpenAI GPT-4.1-mini do?

Disclaimer Please note This workflow is only available on n8n self hosted as it's making use of the community node for the Decodo Web Scraping ![Search & Enrich: Smart Keyword Analysis with Decodo ...

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.