πŸ“Š Comprehensive SEO keyword research with OpenAI & DataForSEO analytics to NocoDB

⚑ 8,471 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” For competitive intelligence, ScraperNode can automate the data collection β€” Yelp reviews, Glassdoor company data, and Crunchbase profiles all return structured JSON you can feed straight into this workflow.

View All Scrapers

Description

AI-Powered SEO Keyword Research Workflow with n8n

> automates comprehensive keyword research for content creation

Workflow Overview

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 NameTypeDescription
IDAuto NumberUnique identifier
Primary TopicTextThe main keyword/topic to research
Competitor URLsTextComma-separated list of competitor websites
Target AudienceSingle SelectDescription of the target audience (Solopreneurs, Marketing Managers, etc.)
Content TypeSingle SelectType of content (Blog, Product page, etc.)
LocationSingle SelectTarget geographic location
LanguageSingle SelectTarget language for keywords
StatusSingle SelectWorkflow status (Pending, Started, Done)
Start ResearchCheckboxActive Workflow when you set this to true

Input Table Screenshot

Output Table Schema

This table stores the generated keyword strategy:

Field NameTypeDescription
IDAuto NumberUnique identifier
primary_topic_usedTextThe topic that was researched
report_contentLong TextThe complete keyword strategy in Markdown format
generatedAtDatetimeAutomatically generated by NocoDb

Output Table Screenshot

Webhook Settings

NocoDB Webhook Settings

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 Start Slack Notification
  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:

2. DataForSEO Integration

Two API endpoints are used:

3. Competitor Analysis

This component:

4. Final Keyword Strategy

The AI-generated strategy includes:

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

Additional Data Sources

Improved Competitor Analysis

Automation Enhancements


Example Output

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

Inputs:

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

πŸ”— Nodes Used

Slack, Webhook, NocoDB, AI Agent, OpenAI Chat Model, Structured Output Parser

πŸ“₯ Import

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

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