Google SERP Extraction and Summarization with Bright Data and Google Gemini - n8n Workflow

Use this powerful n8n workflow to automate Google Search results extraction via Bright Data. Clean, summarize, and structure the data using the Gemini AI model within specialized n8n node capabilities.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • SEO Professionals: Needing large-scale, automated analysis of search engine results pages (SERPs).

  • Market Researchers: Requiring summarized competitive data from Google searches.

  • Data Engineers: Looking for robust n8n templates integrating external scraping APIs (Bright Data) with advanced AI processing.

  • n8n Automation Specialists: Seeking an example of a complex n8n workflow combining HTTP requests, specialized AI nodes, and custom agents.

Overview

This comprehensive n8n workflow demonstrates an advanced use case combining high-volume web data extraction with large language model (LLM) processing. The central goal is to perform a Google search using the Bright Data Web Scraper API, extract the raw HTML SERP data, clean it up, and then use the Google Gemini model for summarization and final formatting.

By leveraging specific n8n node components from the LangChain library, this automation transforms raw, noisy HTML into concise, actionable intelligence. If you need a powerful, repeatable mechanism for market intelligence, this n8n template provides a full solution from trigger to final notification. The use of specialized AI nodes ensures high-quality data processing that traditional scraping alone cannot achieve. Every step of this n8n workflow is designed for efficiency and accuracy.

How it Works

This automation is initiated by a manual n8n trigger, making it easy to test or integrate into a larger scheduled n8n workflow.


  1. Define Query: The workflow starts at the ‘Set Google Search Query’ n8n node, where the target searchquery (e.g., 'Bright Data') and the zone (e.g., 'serpapi1') for the Bright Data API are defined.

  2. Fetch SERP Data: The ‘Perform Google Search Request’ n8n node sends a POST request to the Bright Data API. This step uses secure HTTP Header Authentication to scrape the target Google search results page.

  3. Data Cleaning: The raw HTML output is fed into the ‘Google Search Data Extractor’ n8n node, which acts as an information extractor. Paired with the ‘Google Gemini Chat Model’, this n8n node strips out all HTML, CSS, and scripts, leaving only clean textual data relevant to the search results.

  4. Summarization: The cleaned text proceeds to the ‘Summarization Chain’ n8n node. Using the second instance of the Gemini model (‘Google Gemini Chat Model For Summarization’), a concise summary of the extensive search results is generated.

  5. AI Agent Formatting: The summary and extracted text are passed to the ‘Google Search Expert AI Agent’. This sophisticated n8n node uses the ‘Google Gemini Chat Model1’ to execute the final task: formatting the result and pushing it to a third-party application.

  6. Final Output: The agent utilizes the ‘Webhook HTTP Request’ n8n tool to POST the final, structured JSON containing the search summary to the specified webhook URL.

Installation Guide

To deploy this n8n workflow template successfully, follow these steps:


  1. Import the n8n workflow: Copy the provided JSON code and import it into your n8n instance via the 'Workflows' tab using the 'New' -> 'Import from JSON' option.

  2. Set up Credentials:

Bright Data API: Configure the HTTP Header Authentication credential used by the ‘Perform Google Search Request’ n8n node with your Bright Data API key.
Google Gemini (PaLM) API: Configure the API key credentials for all three Google Gemini n8n node instances.

  1. Customize Initial Data: In the ‘Set Google Search Query’ n8n node, update the search_query to your desired search term.

  2. Update Webhook Destination: In the ‘Webhook HTTP Request’ n8n node, update the URL to your desired target endpoint for receiving the structured data (e.g., Slack, database, internal system).

  3. Activate and Test: Activate the n8n workflow and run a test execution using the ‘When clicking ‘Test workflow’’ n8n trigger.

Node Details


  • When clicking ‘Test workflow’ (Manual Trigger): The initiating n8n trigger for the entire process, allowing for easy testing and manual runs.

  • Set Google Search Query (Set n8n node): Defines input parameters, specifically searchquery (the target Google query) and zone (the Bright Data scraping zone).

  • Perform Google Search Request (HTTP Request n8n node): Executes the secure API call to Bright Data, requesting the SERP results based on the defined query. Uses HTTP Header Auth credentials.

  • Google Search Data Extractor (Information Extractor n8n node): Cleans the raw HTML search results. Key configuration: Uses a System Prompt to act as an expert HTML extractor, stripping unwanted code.

  • Google Gemini Chat Model (Language Model n8n node): Provides the LLM backbone for the Data Extractor, enabling intelligent data cleaning.

  • Summarization Chain (Chain Summarization n8n node): Receives the clean text and generates a summary using the connected Gemini model.

  • Google Search Expert AI Agent (Agent n8n node): A specialized n8n node that formats the cleaned and summarized data. Key configuration: Defines a prompt setting its role as a 'Google Search Expert' and specifies the data input.

  • Webhook HTTP Request (Tool HTTP Request n8n node): The final action tool used by the AI Agent. It sends a POST request, structuring the output with the key field searchsummary containing the LLM's summarized response.

Related n8n Workflows

Free

Nodes: 9 Nodes
Updated: December 26 2025
View all
Created by
Ranjan Dailata
Ranjan Dailata

Featured*