Skip to main content

Extract and analyze web data with Bright Data & Google Gemini

Workflow preview

Workflow preview
100%
Extract and analyze web data 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

This workflow performs structured data extraction and data mining from a web page by combining the capabilities of Bright Data and Google Gemini. How it Works This workflow focuses on extracting st...

Best for

  • Engineering 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 Amit Mehta.

Original n8n.io source

1.1 Workflow description

Title
Extract and analyze web data with Bright Data & Google Gemini
Workflow name
Extract and analyze web data with Bright Data & Google Gemini

This workflow performs structured data extraction and data mining from a web page by combining the capabilities of Bright Data and Google Gemini.

How it Works

This workflow focuses on extracting structured data from a web page using Bright Data's Web Unlocker Product. It then uses n8n's AI capabilities, specifically Google Gemini Flash Exp, for information extraction and custom sentiment analysis. The results are sent to webhooks and saved as local files.

Use Cases
  • Data Mining: Automating the process of extracting and analyzing data from websites.

  • Web Scraping: Gathering structured data for market research, competitive analysis, or content aggregation.

  • Sentiment Analysis: Performing custom sentiment analysis on unstructured text.

Setup Instructions
  1. Bright Data Credentials: You need to have an account and a Web Unlocker zone with Bright Data. Update the Header Auth account credentials in the Perform Bright Data Web Request node.

  2. Google Gemini Credentials: Provide your Google Gemini(PaLM) Api account credentials for the AI-related nodes.

  3. Configure URL and Zone: In the Set URL and Bright Data Zone node, set the web URL you want to scrape and your Bright Data zone.

  4. Update Webhook: Update the Webhook Notification URL in the relevant HTTP Request nodes.

Workflow Logic
  1. Trigger: The workflow is triggered manually.

  2. Set Parameters: It sets the target URL and the Bright Data zone.

  3. Web Request: The workflow performs a web request to the specified URL using Bright Data's Web Unlocker. The output is formatted as markdown.

  4. Data Extraction & Analysis: The markdown content is then processed by multiple AI nodes to:

    • Extract textual data from the markdown.

    • Perform topic analysis with a structured response.

    • Analyze trends by location and category with a structured response.

  5. Output: The extracted data and analysis are sent to webhooks and saved as JSON files on disk.

Node Descriptions
Node Name Description
When clicking 'Test workflow' A manual trigger node to start the workflow.
Set URL and Bright Data Zone A Set node to define the URL to be scraped and the Bright Data zone to be used.
Perform Bright Data Web Request An httpRequest node that performs the web request to Bright Data's API to retrieve the content.
Markdown to Textual Data Extractor An AI node that uses Google Gemini to convert markdown content into plain text.
Google Gemini Chat Model A node representing the Google Gemini model used for the data extraction.
Topic Extractor with the structured response An AI node that performs topic analysis and outputs the results in a structured JSON format.
Trends by location and category with the structured response An AI node that analyzes and clusters emerging trends by location and category, outputting a structured JSON.
Initiate a Webhook Notification... These nodes send the output of the AI analysis to a webhook.
Create a binary file... Function nodes that convert the JSON output into binary format for writing to a file.
Write the topics/trends file to disk readWriteFile nodes that save the binary data to a local file (d:\topics.json and d:\trends.json).
Customization Tips
  • Change the web URL in the Set URL and Bright Data Zone node to scrape different websites.

  • Modify the AI prompts in the AI nodes to customize the analysis (e.g., change the sentiment analysis criteria).

  • Adjust the output path in the readWriteFile nodes to save the files to a different location.

Suggested Sticky Notes for Workflow
  • Note: "This workflow deals with the structured data extraction by utilizing Bright Data Web Unlocker Product... Please make sure to set the web URL of your interest within the 'Set URL and Bright Data Zone' node and update the Webhook Notification URL".

  • LLM Usages: "Google Gemini Flash Exp model is being used... Information Extraction is being used for the handling the custom sentiment analysis with the structured response".

Required Files
  • 1GOrjyc9mtZCMvCr_Structured_Data_Extract,Data_Mining_with_Bright_Data&_Google_Gemini.json: The main n8n workflow export for this automation.
Testing Tips
  • Run the workflow and check the webhook to verify that the extracted data is being sent correctly.

  • Confirm that the d:\topics.json and d:\trends.json files are created on your disk with the expected structured data.

Suggested Tags & Categories
  • Engineering

  • AI

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 Extract and analyze web data with Bright Data & Google Gemini
Complexity advanced
Nodes 18
Categories Engineering, AI Summarization
Author Amit Mehta
Published 18 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8714/8714.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 Extract and analyze web data with Bright Data & Google Gemini do?

This workflow performs structured data extraction and data mining from a web page by combining the capabilities of Bright Data and Google Gemini. How it Works This workflow focuses on extracting st...

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