# Agentic B2B lead enrichment from Google Search to Google Sheets: n8n workflow

> Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/agentic-b2b-lead-enrichment-from-google-search-to-google-she (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# Agentic B2B lead enrichment from Google Search to Google Sheets

Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini. 27 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fagentic-b2b-lead-enrichment-from-google-search-to-google-she)

**27 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 6 Logic 14 Service 6

The steps in the order they run, from what starts it.

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 4 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 5 **Edit Fields** Set *Logic*
- 6 **Home Page Analyst** Chain Llm *Model*
- 7 **Contact Page Scan Agent** Chain Llm *Model*
- 8 **Linked In Agent** Chain Llm *Model*
- 9 **Serper Search** Http Request *Service*
- 10 **Format output** Code *Logic*
- 11 **output combiner** Code *Logic*
- 12 **Linked in Details** Code *Logic*
- 13 **parse search results** Code *Logic*
- 14 **filter redirecting links** If *Logic*
- 15 **Merge** Merge *Logic*
- 16 **Merge1** Merge *Logic*
- 17 **Normalize leads** Code *Logic*
- 18 **HTTP Request1** Http Request *Service*
- 19 **Filter Linked In specific link** If *Logic*
- 20 **Format for Sheets** Code *Logic*
- 21 **Loop Over Items** Split In Batches *Logic*
- 22 **convert scrapable link** Code *Logic*
- 23 **Append row in sheet** Google Sheets *Service*
- 24 **Send a message** Gmail *Service*
- 25 **Wait** Wait *Logic*
- 26 **LinkedIN scraper** Http Request *Service*
- 27 **Fetch Homepage** Http Request *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 27, with 2 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 27 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fagentic-b2b-lead-enrichment-from-google-search-to-google-she)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**AI prospect researcher +ISCP only need company name and domain** 27 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/ai-prospect-researcher-iscp-only-need-company-name-and-domai)
- [**Domain outbound: automate lead extraction, and targeted outreach** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/domain-outbound-automate-lead-extraction-and-targeted-outrea)
- [**Generate and enrich local business leads with Decodo** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-and-enrich-local-business-leads-with-decodo)
- [**Generate and qualify B2B leads from Telegram with Google Maps** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-and-qualify-b2b-leads-from-telegram-with-google-map)
- [**Send AI-personalized outreach emails from HubSpot** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-ai-personalized-outreach-emails-from-hubspot)
- [**Audit CRM lead data quality with Google Sheets and NeverBounce** 27 steps · Google Sheets](https://millionrounds.com/workflow/audit-crm-lead-data-quality-with-google-sheets-and-neverboun)
