Skip to main content

Structured data extract & data mining with Bright Data & Google Gemini

Workflow preview

Workflow preview
100%
Structured data extract & data mining with Bright Data & Google Gemini 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? The Structured Data Extract & Data Mining workflow is crafted for researchers, content analysts, SEO strategists, and AI developers who need to transform semi structured web data (...

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.stickynote, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.set, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.informationextractor, n8n-nodes-base.function

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
Structured data extract & data mining with Bright Data & Google Gemini
Workflow name
Structured data extract & data mining with Bright Data & Google Gemini

Who this is for?

The Structured Data Extract & Data Mining workflow is crafted for researchers, content analysts, SEO strategists, and AI developers who need to transform semi-structured web data (like markdown content or scraped HTML) into actionable structured datasets.

It is ideal for:

  • Content Analysts - Organizing and mining large volumes of markdown or HTML content.

  • SEO & Trend Researchers - Exploring topics by location and category.

  • AI Engineers & NLP Developers - Looking to automate insight extraction from unstructured inputs.

  • Growth Marketers - Tracking topic-level trends for strategic campaigns.

  • Automation Specialists - Streamlining workflows from scrape to storage.

What problem is this workflow solving?

Extracting insights from markdown or HTML documents typically requires manual review, formatting, and parsing. This becomes unscalable when dealing with large datasets or when real-time response is needed. Additionally, trend and topic extraction usually involves external tools, custom scripts, and inconsistent formatting.

This workflow solves:

  • Automatic text extraction from markdown or structured content.

  • Location and category-based trend mining with semantic grouping.

  • AI-driven topic extraction and summarization

  • Real-time notification via webhook with rich structured payloads.

  • Persistent storage of mined data to disk for audits or further processing.

What this workflow does

  • Receives input: Sets the URL for the data extraction and analysis.

  • Uses Bright Data's Web Unlocker to extract content from relevant sites.

  • A Markdown/Text Extractor node parses the content into clean plaintext

  • The cleaned data is passed to Google Gemini to:

    • Identify trends by location and category

    • Extract key topics and themes

    • Format the response into structured JSON

    • The structured insights are sent via Webhook Notification to external systems (e.g., Slack, Web apps, Zapier)

    • The final output is saved to disk

Setup

  • Sign up at Bright Data.
  • Navigate to Proxies & Scraping and create a new Web Unlocker zone by selecting Web Unlocker API under Scraping Solutions.
  • In n8n, configure the Header Auth account under Credentials (Generic Auth Type: Header Authentication). The Value field should be set with the Bearer XXXXXXXXXXXXXX. The XXXXXXXXXXXXXX should be replaced by the Web Unlocker Token.
  • A Google Gemini API key (or access through Vertex AI or proxy).
  • Update the Set URL and Bright Data Zone for setting the brand content URL and the Bright Data Zone name.
  • Update the Webhook HTTP Request node with the Webhook endpoint of your choice.

How to customize this workflow to your needs

  • Update Source : Update the workflow input to read from Google Sheet or Airbase for dynamically tracking multiple brands or topics.

  • Gemini Prompt Customization :

    • Extract trends within a custom category (e.g., E-commerce design patterns in the US)

    • Output topics with popularity metrics

    • Structure the output as per your database schema (e.g., [{ topic, trend_score, location }])

  • Webhook Output : Send notifications to -

    • Slack – with AI summaries in rich blocks

    • Internal APIs – for use in dashboards

    • Zapier/Make – for multi-step automation

  • Persistence

    • Save output to:

      • Remote FTP or SFTP storage
      • Amazon S3, Google Cloud Storage etc.

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 ‘Test workflow’

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

Block 2 - Sticky Note

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

Block 3 - Sticky Note1

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

Block 4 - Markdown to Textual Data Extractor

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

Block 5 - Set URL and Bright Data Zone

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

Block 6 - Initiate a Webhook Notification for Markdown to Textual Data Extraction

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

Block 7 - Initiate a Webhook Notification for AI Sentiment Analyzer

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

Block 8 - Google Gemini Chat Model for Data Extract

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

Block 9 - Google Gemini Chat Model for Sentiment Analyzer

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

Block 10 - Perform Bright Data Web Request

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

Block 11 - Topic Extractor with the structured response

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

Block 12 - Trends by location and category with the structured response

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

Block 13 - Google Gemini Chat Model

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

Block 14 - Initiate a Webhook Notification for trends by location and category

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

Block 15 - Create a binary file for topics

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

Block 16 - Write the topics file to disk

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

Block 17 - Write the trends file to disk

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

Block 18 - Create a binary data for tends

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

3. Summary Table

Workflow Structured data extract & data mining with Bright Data & Google Gemini
Complexity advanced
Nodes 18
Categories Market Research, AI Summarization
Author Ranjan Dailata
Published 03 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3853/3853.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 Structured data extract & data mining with Bright Data & Google Gemini do?

Who this is for? The Structured Data Extract & Data Mining workflow is crafted for researchers, content analysts, SEO strategists, and AI developers who need to transform semi structured web data (...

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.