Skip to main content

Comprehensive SEO keyword research with OpenAI & DataForSEO analytics to NocoDB

Workflow preview

Workflow preview
100%
Comprehensive SEO keyword research with OpenAI & DataForSEO analytics to NocoDB preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Powered SEO Keyword Research Workflow with n8n automates comprehensive keyword research for content creation ![Workflow Overview](https://github.com/philrox/n8n workflows/blob/main/AI Power...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent, n8n-nodes-dataforseo.dataforseo, n8n-nodes-base.splitout, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Comprehensive SEO keyword research with OpenAI & DataForSEO analytics to NocoDB
Workflow name
Comprehensive SEO keyword research with OpenAI & DataForSEO analytics to NocoDB

AI-Powered SEO Keyword Research Workflow with n8n

> automates comprehensive keyword research for content creation

Table of Contents

  1. Introduction
  2. Workflow Architecture
  3. NocoDB Integration
  4. Data Flow
  5. Core Components
  6. Setup Requirements
  7. Possible Improvements

Introduction

This n8n workflow automates SEO keyword research using AI and data-driven analytics. It combines OpenAI's language models with DataForSEO's analytics to generate comprehensive keyword strategies for content creation. The workflow is triggered by a webhook from NocoDB, processes the input data through multiple stages, and returns a detailed content brief with optimized keywords.

Workflow Architecture

The workflow follows a structured process:

  1. Input Collection: Receives data via webhook from NocoDB
  2. Topic Expansion: Generates keywords using AI
  3. Keyword Metrics Analysis: Gathers search volume, CPC, and difficulty metrics
  4. Competitor Analysis: Analyzes competitor content for ranking keywords
  5. Final Strategy Creation: Combines all data to generate a comprehensive keyword strategy
  6. Output Storage: Saves results back to NocoDB and sends notifications

NocoDB Integration

Database Structure

The workflow integrates with two tables in NocoDB:

Input Table Schema

This table collects the input parameters for the keyword research:

Field Name Type Description
ID Auto Number Unique identifier
Primary Topic Text The main keyword/topic to research
Competitor URLs Text Comma-separated list of competitor websites
Target Audience Single Select Description of the target audience (Solopreneurs, Marketing Managers, etc.)
Content Type Single Select Type of content (Blog, Product page, etc.)
Location Single Select Target geographic location
Language Single Select Target language for keywords
Status Single Select Workflow status (Pending, Started, Done)
Start Research Checkbox Active Workflow when you set this to true

Output Table Schema

This table stores the generated keyword strategy:

Field Name Type Description
ID Auto Number Unique identifier
primary_topic_used Text The topic that was researched
report_content Long Text The complete keyword strategy in Markdown format
generatedAt Datetime Automatically generated by NocoDb

Webhook Settings

NocoDB Webhook Settings

Data Flow

The workflow handles data in the following sequence:

  1. Webhook Trigger: Receives input from NocoDB when a new keyword research request is created
  2. Field Extraction: Extracts primary topic, competitor URLs, audience, and other parameters
  3. AI Topic Expansion: Uses OpenAI to generate related keywords, categorized by type and intent
  4. Keyword Analysis: Sends primary keywords to DataForSEO to get search volume, CPC, and difficulty
  5. Competitor Research: Analyzes competitor pages to identify their keyword rankings
  6. Strategy Generation: Combines all data to create a comprehensive keyword strategy
  7. Storage & Notification: Saves the strategy to NocoDB and sends a notification to Slack

Core Components

1. Topic Expansion

This component uses OpenAI and a structured output parser to generate:

  • 20 primary keywords
  • 30 long-tail keywords with search intent
  • 15 question-based keywords
  • 10 related topics

2. DataForSEO Integration

Two API endpoints are used:

  • Search Volume & CPC: Gets monthly search volume and cost-per-click data
  • Keyword Difficulty: Evaluates how difficult it would be to rank for each keyword

3. Competitor Analysis

This component:

  • Analyzes competitor URLs to identify which keywords they rank for
  • Identifies content gaps or opportunities
  • Determines the search intent their content targets

4. Final Keyword Strategy

The AI-generated strategy includes:

  • Top 10 primary keywords with metrics
  • 15 long-tail opportunities with low competition
  • 5 question-based keywords to address in content
  • Content structure recommendations
  • 3 potential content titles optimized for SEO

Setup Requirements

To use this workflow, you'll need:

  1. n8n Instance: Either cloud or self-hosted
  2. NocoDB Account: For data input and storage
  3. API Keys:
    • OpenAI API key
    • DataForSEO API credentials
    • Slack API token (for notifications)
  4. Database Setup: Create the required tables in NocoDB as described above

Possible Improvements

The workflow could be enhanced with the following improvements:

Enhanced Keyword Strategy

  • Add topic clustering to group related keywords
  • Enhance the final output with more specific content structure suggestions
  • Include word count recommendations for each content section

Additional Data Sources

  • Integrate Google Search Console data for existing content optimization
  • Add Google Trends data to identify rising topics
  • Include sentiment analysis for different keyword groups

Improved Competitor Analysis

  • Analyze content length and structure from top-ranking pages
  • Identify common backlink sources for competitor content
  • Extract content headings to better understand content organization

Automation Enhancements

  • Add scheduling capabilities to run updates on existing content
  • Implement content performance tracking over time
  • Create alert thresholds for changes in keyword difficulty or search volume

Example Output

Here is an example Output the Workflow generated based on the following inputs.

Inputs:

  • Primary Topic: AI Automation
  • Competitor URLs: n8n.io, zapier.com, make.com
  • Target Audience: Small Business Owners
  • Content Type: Landing Page
  • Location: United States
  • Language: English

Output: Final Keyword Strategy


The workflow provides a powerful automation for content marketers and SEO specialists to develop data-driven keyword strategies with minimal manual effort.

> Original Workflow: AI-Powered SEO Keyword Research Automation - The vibe Marketer

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 - OpenAI Chat Model

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

Block 2 - Structured Output Parser

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

Block 3 - Topic Expansion

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

Block 4 - Competitor Analysis

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

Block 5 - Keyword Difficulty

Type / Role
n8n-nodes-dataforseo.dataForSeo - dataForSeo
Config choices
Version 1

Block 6 - Search Volume & CPC

Type / Role
n8n-nodes-dataforseo.dataForSeo - dataForSeo
Config choices
Version 1

Block 7 - split primary keywords

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

Block 8 - OpenAI Chat Model2

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

Block 9 - Keyword Ranking per URL

Type / Role
n8n-nodes-dataforseo.dataForSeo - dataForSeo
Config choices
Version 1

Block 10 - Final Keyword Strategy

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

Block 11 - Get Input from NocoDB

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

Block 12 - Split the Competitor URLs

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

Block 13 - Set relevant fields

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

Block 14 - OpenAI Chat Model1

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

Block 15 - Format Json and add Competitor URLs

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

Block 16 - Aggregate SV & CPC

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

Block 17 - Aggregate KWD

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

Block 18 - Merge SV, CPC & KWD

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

Block 19 - Merge Topic Expansion, SV, CPC & KWD

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

Block 20 - Aggregate Competitor Analysis

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

Block 21 - Merge Everything

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

Block 22 - Write Content Brief

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

Block 23 - Update Status - Done

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

Block 24 - Send Notification

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Comprehensive SEO keyword research with OpenAI & DataForSEO analytics to NocoDB
Complexity advanced
Nodes 34
Categories Market Research, Multimodal AI
Author phil
Published 06 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3908/3908.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 Comprehensive SEO keyword research with OpenAI & DataForSEO analytics to NocoDB do?

AI Powered SEO Keyword Research Workflow with n8n automates comprehensive keyword research for content creation ![Workflow Overview](https://github.com/philrox/n8n workflows/blob/main/AI Power...

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, Multimodal AI use case.