Skip to main content

Web research assistant: automated search & scraping with Gemini AI and spreadsheet reports

Workflow preview

Workflow preview
100%
Web research assistant: automated search & scraping with Gemini AI and spreadsheet reports preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

️ IMPORTANT: This template requires self hosted n8n hosting due to the use of community nodes (MCP tools). It will not work on n8n Cloud. Make sure you have access to a self hosted n8n instance be...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-mcp.mcpclienttool, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlesheets, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Web research assistant: automated search & scraping with Gemini AI and spreadsheet reports
Workflow name
Web research assistant: automated search & scraping with Gemini AI and spreadsheet reports

⚠️ IMPORTANT: This template requires self-hosted n8n hosting due to the use of community nodes (MCP tools). It will not work on n8n Cloud. Make sure you have access to a self-hosted n8n instance before using this template.

Overview

This workflow automation allows a Google Gemini-powered AI Agent to orchestrate multi-source web intelligence using MCP (Model Context Protocol) tools such as Firecrawl, Brave Search, and Apify.

The system allows users to interact with the agent in natural language, which then leverages various external data collection tools, processes the results, and automatically organizes them into structured spreadsheets.

With built-in memory, flexible tool execution, and conversational capabilities, this workflow acts as a multi-agent research assistant, capable of retrieving, synthesizing, and delivering actionable insights in real time.

How the system works

AI Agent + MCP Pipeline

  1. User Interaction A chat message is received and forwarded to the AI Agent.

  2. AI Orchestration The agent, powered by Google Gemini, decides which MCP tools to invoke based on the query.

    • Firecrawl-MCP: Recursive web crawling and content extraction.
    • Brave-MCP: Real-time web search with structured results.
    • Apify-MCP: Automation of web scraping tasks with scalable execution.
  3. Memory Management A memory module stores context across conversations, ensuring multi-turn reasoning and task continuity.

  4. Spreadsheet automation Results are structured in a new, automatically created Google Spreadsheet, enriched with formatting and additional metadata.

  5. Data processing The workflow generates the spreadsheet content, updates the sheet, and improves results via HTTP requests and field edits.

  6. Delivery of results Users receive a structured and contextualized dataset ready for review, analysis, or integration into other systems.

Configuration instructions

Estimated setup time: 45 minutes

Prerequisites

  • Self-hosted n8n instance (v0.200.0 or higher recommended)
  • Google Gemini API key
  • MCP-compatible nodes (Firecrawl, Brave, Apify) configured
  • Google Sheets credentials for spreadsheet automation

Detailed configuration steps

Step 1: Configuring the AI Agent

  • AI Agent node:
    • Select Google Gemini as the LLM model
    • Configure your Google Gemini API key in the n8n credentials
    • Set the system prompt to guide the agent's behavior
    • Connect the Simple Memory node to enable context tracking

Step 2: Integrating MCP Tools

  • Firecrawl-MCP Configuration:

    • Install the @n8n/n8n-nodes-firecrawl-mcp package
    • Configure your Firecrawl API key
    • Set crawling parameters (depth, CSS selectors)
  • Brave-MCP configuration:

    • Install the @n8n/n8n-nodes-brave-mcp package
    • Add your Brave Search API key
    • Configure search filters (region, language, SafeSearch)
  • Apify-MCP configuration:

    • Install the @n8n/n8n-nodes-apify-mcp package
    • Configure your Apify credentials
    • Select the appropriate actors for your use cases

Step 3: Spreadsheet automation

  • “Create Spreadsheet” node:

    • Configure Google Sheets authentication (OAuth2 or Service Account)
    • Set the file name with dynamic timestamps
    • Specify the destination folder in Google Drive
  • “Generate Spreadsheet Content” node:

    • Transform the agent's outputs into tabular format
    • Define the columns: URL, Title, Description, Source, Timestamp
    • Configure data formatting (dates, links, metadata)
  • “Update Spreadsheet” node:

    • Insert the data into the created sheet
    • Apply automatic formatting (headers, colors, column widths)
    • Add summary formulas if necessary

Step 4: Post-processing and delivery

  • “Data Enrichment Request” node (formerly “HTTP Request1”):

    • Configure optional API calls to enrich the data
    • Add additional metadata (geolocation, sentiment, categorization)
    • Manage errors and timeouts
  • “Edit Fields” node:

    • Refine the final dataset (metadata, tags, filters)
    • Clean and normalize the data
    • Prepare the final response for the user

Structure of generated Google Sheets

Default columns

Column Description Type
URL Data source URL Hyperlink
Title Page/resource title Text
Description Description or content excerpt Long text
Source MCP tool used (Brave/Firecrawl/Apify) Text
Timestamp Date/time of collection Date/Time
Metadata Additional data (JSON) Text

Automatic formatting

  • Headings: Bold font, colored background
  • URLs: Formatted as clickable links
  • Dates: Standardized ISO 8601 format
  • Columns: Width automatically adjusted to content

Use cases

Business and enterprise

  • Competitive analysis combining search, crawling, and structured scraping
  • Market trend research with multi-source aggregation
  • Automated reporting pipelines for business intelligence

Research and academia

  • Literature discovery across multiple sources
  • Data collection for research projects
  • Automated bibliographic extraction from online sources

Engineering and development

  • Discovery of APIs and documentation
  • Aggregation of product information from multiple platforms
  • Scalable structured scraping for datasets

Personal productivity

  • Automated creation of newsletters or knowledge hubs
  • Personal research assistant compiling spreadsheets from various online data

Key features

Multi-source intelligence

  • Firecrawl for deep crawling
  • Brave for real-time search
  • Apify for structured web scraping

AI-driven orchestration

  • Google Gemini for reasoning and tool selection
  • Memory for multi-turn interactions
  • Context-based adaptive workflows

Structured data output

  • Automatic spreadsheet creation
  • Data enrichment and formatting
  • Ready-to-use datasets for reporting

Performance and scalability

  • Handles multiple simultaneous tool calls
  • Scalable web data extraction
  • Real-time aggregation from multiple MCPs

Security and privacy

  • Secure authentication based on API keys
  • Data managed in Google Sheets / n8n
  • Configurable retention and deletion policies

Technical architecture

Workflow

User query → AI agent (Gemini) → MCP tools (Firecrawl / Brave / Apify) → Aggregated results → Spreadsheet creation → Data processing → Results delivery

Supported data types

  • Text and metadata from crawled web pages
  • Search results from Brave queries
  • Structured data from Apify scrapers
  • Tabular reports via Google Sheets

Integration options

Chat interfaces

  • Web widget for conversational queries
  • Slack/Teams chatbot integration
  • REST API access points

Data sources

  • Websites (via Firecrawl/Apify)
  • Search engines (via Brave)
  • APIs (via HTTP Request enrichment)

Performance specifications

  • Query response: < 5 seconds (search tasks)
  • Crawl capacity: Thousands of pages per run
  • Spreadsheet automation: Real-time creation and updates
  • Accuracy: > 90% when using combined sources

Advanced configuration options

Customization

  • Set custom prompts for the AI Agent
  • Adjust the spreadsheet schema for reporting needs
  • Configure retries for failed tool runs

Analytics and monitoring

  • Track tool usage and costs
  • Monitor crawl and search success rates
  • Log queries and outputs for auditing

Troubleshooting and support

  • Timeouts: Manually re-run failed MCP executions
  • Data gaps: Validate Firecrawl/Apify selectors
  • Spreadsheet errors: Check Google Sheets API quotas

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 chat message received

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

Block 2 - Simple Memory

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

Block 3 - Google Gemini Chat Model

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

Block 4 - Firecrawl list

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 5 - Firecrawl execute

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 6 - Brave list

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 7 - Brave execute

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 8 - Apify list

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 9 - Apify execute

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 10 - Data Enrichment Request

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

Block 11 - Gemini Research Orchestrator

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 12 - Create Research Report

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 13 - Format Research Data

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

Block 14 - Populate Research Report

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

Block 15 - Finalize Output Data

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - Sticky Note3

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

Block 20 - Sticky Note4

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

Block 21 - Sticky Note5

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

Block 22 - Sticky Note6

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

Block 23 - Sticky Note7

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

3. Summary Table

Workflow Web research assistant: automated search & scraping with Gemini AI and spreadsheet reports
Complexity advanced
Nodes 23
Categories Market Research, AI Chatbot
Author franck fambou
Published 03 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8218/8218.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 Web research assistant: automated search & scraping with Gemini AI and spreadsheet reports do?

️ IMPORTANT: This template requires self hosted n8n hosting due to the use of community nodes (MCP tools). It will not work on n8n Cloud. Make sure you have access to a self hosted n8n instance be...

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