Templates / Automated company research & lead enrichment with GPT-4o and Google Sheets

Automated company research & lead enrichment with GPT-4o and Google Sheets

Needs changes

by Candra Reza ✓ · 3,525 views · created 2025-08-01 · Lead Generation, AI Chatbot

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

What this workflow does

This AI workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model, SerpApi (Google Search) and Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Get rows to enrich (Google Sheets): uses Google Sheets
  2. Input (Edit Fields (Set)): sets 2 fields: company_input, row_number
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. AI company researcher (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (Get website content, SerpAPI - Search Google); output parser: Structured Output Parser
  5. Merge: merges the data from its input branches
  6. AI Researcher Output Data (Edit Fields (Set)): sets 9 fields: domain, linkedinUrl, market…
  7. Google Sheets: update
  8. Search Google with ScrapingBee (Call n8n Workflow Tool): uses Call n8n Workflow Tool

Services it uses

OpenAI Chat ModelSerpApi (Google Search)Google Sheets

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • SerpApi (Google Search) in SerpAPI - Search Google: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
  • AI Agent v1 (old agent modes) in AI company researcher (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
SerpApi (Google Search)
SerpAPI - Search Google
No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node
AI Agent v1 (old agent modes)
AI company researcher (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

Supercharge your sales and marketing with this AI-powered workflow! 🚀 Stop wasting hours on manual company research. This template deploys an autonomous AI agent that takes a list of company names from a Google Sheet, scours the web to find critical…

Excerpt from Candra Reza'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.