Skip to main content

Generate Brave Search Goggles with DataForSEO, Firecrawl, OpenAI and Postgres

Workflow preview

Workflow preview
100%
Generate Brave Search Goggles with DataForSEO, Firecrawl, OpenAI and Postgres preview
Open on n8n.io

1. Workflow Overview

Who’s it for Business owners, industry specialists, and AI developers building domain specific search experiences. It generates custom search filters to boost technical authorities and block lead g...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-dataforseo.dataforseo, n8n-nodes-base.manualtrigger, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.postgres, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequest

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate Brave Search Goggles with DataForSEO, Firecrawl, OpenAI and Postgres
Workflow name
Generate Brave Search Goggles with DataForSEO, Firecrawl, OpenAI and Postgres

Who’s it for

Business owners, industry specialists, and AI developers building domain-specific search experiences. It generates custom search filters to boost technical authorities and block lead-gen aggregators, requiring no advanced SEO expertise. Pre-configured for the Dutch plastering industry, but universally adaptable.

What it does

Automates the creation of custom Brave Search Goggles to ground LLMs and AI agents in noise-free, high-authority industry content. This strict filtering ensures RAG pipelines consume pre-optimized, expert-verified data for accurate question answering and reduced hallucinations.

How it works

  1. Domain Intersection: Uses DataForSEO to identify high-value search terms by extracting exact keyword overlaps between top competitors.
  2. SERP & Mapping: Fetches the Top 100 Google results for these terms and uses Firecrawl to map the internal architecture ("Power Folders") of the ranking domains.
  3. AI Auditing: An OpenAI GPT-4o agent evaluates each domain's structure, classifying them (e.g., Manufacturer, Retailer, Aggregator) and assigning strict Goggle rules (boost, downrank, discard) based on technical depth.
  4. Live Deployment: Stores rules in Postgres, formats them into valid Brave Goggle syntax via a custom SQL View, and automatically syncs to a public GitHub Gist.

Requirements

  • Postgres: Stores rules, audit trails, and generates the Goggle syntax.
  • DataForSEO API: Extracts competitor intersections and live SERP data.
  • OpenAI API: Powers the domain classification agent.
  • Firecrawl API: Maps internal domain architectures.
  • GitHub Account: Hosts the live Goggle file via Gists.

How to adapt the AI Auditor for other niches

To pivot this workflow to a new industry (e.g., Healthcare or Legal), update the System Prompt inside the Information Extraction Agent. Adjust the AI's persona, redefine which domain types represent true authority (to boost), and explicitly define your industry's specific noise (to discard).

PS

Goggles must be submitted to Brave Search before they can be used with the API. Visit search.brave.com/goggles/create to register your Goggle.

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Sticky Note5

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

Block 7 - Sticky Note6

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

Block 8 - Get SERP Data for SEO

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

Block 9 - Manual Start Trigger

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

Block 10 - Parse Domain and Path

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

Block 11 - SQL-Based Data Merge

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

Block 12 - Execute Postgres Query

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 13 - Use OpenAI GPT-4o

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

Block 14 - Post to DataForSEO API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 15 - Process Intersection Results

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

Block 16 - Run SQL Data Fetch

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 17 - Information Extraction Agent

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

Block 18 - If Audit Status Pending

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

Block 19 - Split Rules

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

Block 20 - Format Data for SQL

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

Block 21 - Optimize AI Prompts

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

Block 22 - Verify AI Process

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

Block 23 - If Complete Status Is True

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

Block 24 - Set Environment Variables

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

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

3. Summary Table

Workflow Generate Brave Search Goggles with DataForSEO, Firecrawl, OpenAI and Postgres
Complexity advanced
Nodes 61
Categories Market Research, AI RAG
Author Stephan Koning
Published 29 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15390/15390.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 Generate Brave Search Goggles with DataForSEO, Firecrawl, OpenAI and Postgres do?

Who’s it for Business owners, industry specialists, and AI developers building domain specific search experiences. It generates custom search filters to boost technical authorities and block lead g...

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 RAG use case.