Templates / Enrich company data from Google Sheet with OpenAI Agent and ScrapingBee

Enrich company data from Google Sheet with OpenAI Agent and ScrapingBee

Needs changes

by Dataki ✓ · 9,592 views · created 2024-10-16 · Lead Generation, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Google Sheets. It also calls app.scrapingbee.com over HTTP.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Get rows from Google Sheet (Google Sheets): uses Google Sheets
  2. Set company url (Edit Fields (Set)): sets 1 field: url
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. ScrapingBee : Scrape company's homepage data (HTTP Request): calls app.scrapingbee.com
  5. Update Company's Row on Google Sheet (Google Sheets): update
  6. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Call n8n workflow : Scrape companies homepage content); output parser: Structured Output Parser
  7. HTML to Markdown (Markdown): converts between Markdown and HTML

Services it uses

OpenAI Chat ModelGoogle Sheets

HTTP calls to: app.scrapingbee.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

This workflow demonstrates how to enrich data from a list of companies in a spreadsheet. While this workflow is production-ready if all steps are followed, adding error handling would enhance its robustness. Important notes - Check legal regulations: This…

Excerpt from Dataki's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.