# Lead workflow: Yelp & Trustpilot scraping + OpenAI analysis: n8n workflow

> Started by someone submitting a form, and works across Gmail and Google Sheets. It hands the judgement calls to Claude and Gemini.

Source: https://millionrounds.com/workflow/lead-workflow-yelp-and-trustpilot-scraping-openai-analysis (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)

# Lead workflow: Yelp & Trustpilot scraping + OpenAI analysis

Started by someone submitting a form, and works across Gmail and Google Sheets. It hands the judgement calls to Claude and Gemini. 30 steps, 4 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Claude, Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flead-workflow-yelp-and-trustpilot-scraping-openai-analysis)

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

**4** Branches: places the flow splits

**4** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 4 Logic 14 Service 11

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

- 1 **Form Trigger - Get User Input** Form trigger *Starts it*
- 2 **Gemini - Location AI Model** Lm Chat Google Gemini *Model*
- 3 **Claude - Email AI Model** Lm Chat Anthropic *Model*
- 4 **AI Location Analyzer** Agent *Model*
- 5 **AI Generate Email Content** Agent *Model*
- 6 **Split Sub-locations** Code *Logic*
- 7 **Parse Email JSON** Code *Logic*
- 8 **Loop Yelp Locations** Split In Batches *Logic*
- 9 **Send Outreach Email** Gmail *Service*
- 10 **Clean Unique Websites** Code *Logic*
- 11 **Yelp Scraper** Http Request *Service*
- 12 **Loop Trustpilot URLs** Split In Batches *Logic*
- 13 **Read Yelp Sheet Websites** Google Sheets *Service*
- 14 **Check Yelp Scrape Progress** Http Request *Service*
- 15 **Trigger Trustpilot Scraper** Http Request *Service*
- 16 **Make Trustpilot URLs** Code *Logic*
- 17 **Wait (1 min) Yelp Completion** Wait *Logic*
- 18 **Check Trustpilot Scrape Progress** Http Request *Service*
- 19 **Remove Duplicate TP URLs** Code *Logic*
- 20 **Verify Yelp Ready** If *Logic*
- 21 **Verify Trustpilot Scraper Ready** If *Logic*
- 22 **If Yelp Has Records** If *Logic*
- 23 **If Trustpilot Has Records** If *Logic*
- 24 **Wait (1 min) Trustpilot Completion** Wait *Logic*
- 25 **Fetch Yelp Results** Http Request *Service*
- 26 **Download Trustpilot Data** Http Request *Service*
- 27 **Save Yelp Data to Sheet** Google Sheets *Service*
- 28 **Save Trustpilot Data to Sheet** Google Sheets *Service*
- 29 **Read Emails from Trustpilot Sheet** Google Sheets *Service*
- 30 **Get Unique Emails** Code *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 30, with 4 branches, 4 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** Claude, Gemini

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

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

How long does it take to set up?

Take your time. At 30 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 30 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%2Flead-workflow-yelp-and-trustpilot-scraping-openai-analysis)
- **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.

- [**Automated LinkedIn lead enrichment pipeline with Google Sheets** 30 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automated-linkedin-lead-enrichment-pipeline-with-google-shee)
- [**Generate and research sales leads with Jina AI and OpenAI** 30 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/generate-and-research-sales-leads-with-jina-ai-and-openai)
- [**Lead generation and qualification with OpenAI** 30 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/lead-generation-and-qualification-with-openai)
- [**AI-Powered Cold Calling Automation with Google Sheets** 30 steps · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-cold-calling-automation-with-google-sheets)
- [**Triage Gmail, draft replies and log leads with OpenAI** 30 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/triage-gmail-draft-replies-and-log-leads-with-openai)
- [**Automated lead generation & AI research with Apollo** 31 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/automated-lead-generation-and-ai-research-with-apollo)
