# Automate product Hunt lead generation with Apify: n8n workflow

> Started by another system calling it, and works across Gmail, Google Sheets and n8n data table.

Source: https://millionrounds.com/workflow/automate-product-hunt-lead-generation-with-apify (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)

# Automate product Hunt lead generation with Apify

Started by another system calling it, and works across Gmail, Google Sheets and n8n data table. 49 steps, 9 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-product-hunt-lead-generation-with-apify)

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

**9** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 2 Logic 28 Service 19

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

- 1 **Schedule Trigger1** Schedule trigger *Starts it*
- 2 **Receive Apify Webhook2** Webhook *Starts it*
- 3 **Build Config2** Code *Logic*
- 4 **Check Schedule Trigger2** If *Logic*
- 5 **Fetch Webhook Status2** Data Table *Service*
- 6 **Create Daily Log Sheet2** Google Sheets *Service*
- 7 **Fetch RUNS Data2** Data Table *Service*
- 8 **Check Webhook Exists2** If *Logic*
- 9 **Extract Sheet Info2** Code *Logic*
- 10 **Update Run Status2** Code *Logic*
- 11 **Check Weekly Run (Monday)2** If *Logic*
- 12 **Create External Webhook2** Http Request *Service*
- 13 **Store Sheet Metadata2** Data Table *Service*
- 14 **Save Updated RUNS Data1** Data Table *Service*
- 15 **Run Actor "Weekly Top Products"2** Http Request *Service*
- 16 **Run Actor "Daily Top Products"2** Http Request *Service*
- 17 **Mark Webhook as Created2** Data Table *Service*
- 18 **Switch** Switch *Logic*
- 19 **Combine Run IDs2** Code *Logic*
- 20 **Extract Dataset IDs2** Code *Logic*
- 21 **Store Run Data2** Data Table *Service*
- 22 **Fetch Dataset Items2** Http Request *Service*
- 23 **Deduplicate2** Code *Logic*
- 24 **Loop Over Sub Items2** Split In Batches *Logic*
- 25 **Aggregate Batch Results2** Aggregate *Logic*
- 26 **HTTP Request** Http Request *Service*
- 27 **Get Daily Activities to Sheet2** Google Sheets *Service*
- 28 **If** If *Logic*
- 29 **Summarize Daily Stats2** Code *Logic*
- 30 **Map Category by Topic2** Code *Logic*
- 31 **Log Daily Summary to Sheet2** Google Sheets *Service*
- 32 **Prepare Scraper Payload1** Code *Logic*
- 33 **Clear Old Run Data2** Data Table *Service*
- 34 **Get Contact Scraper1** Http Request *Service*
- 35 **If1** If *Logic*
- 36 **Prepare Request Body2** Code *Logic*
- 37 **Get Sheet Metadata2** Data Table *Service*
- 38 **Parse Sheet IDs2** Code *Logic*
- 39 **Check if Skipped2** If *Logic*
- 40 **Prepare Error Row2** Code *Logic*
- 41 **Format API Result for Sheet2** Code *Logic*
- 42 **Log API Result to Google Sheet2** Google Sheets *Service*
- 43 **Check Owner Email Exists2** If *Logic*
- 44 **Prepare CC** Set *Logic*
- 45 **Handle No Email** Code *Logic*
- 46 **Send a message** Gmail *Service*
- 47 **Verify Email Sent Successfully2** If *Logic*
- 48 **Handle Email Failed** Code *Logic*
- 49 **Handle Email Success** Code *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 49, with 9 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, n8n data table
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 49 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 49 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%2Fautomate-product-hunt-lead-generation-with-apify)
- **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)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

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

- [**Automate social fan-out, marketplace outreach, and CRM alerts** 49 steps · Google Sheets, Salesforce](https://millionrounds.com/workflow/automate-social-fan-out-marketplace-outreach-and-crm-alerts)
- [**Run a full lead-to-meeting pipeline with Google Sheets** 52 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/run-a-full-lead-to-meeting-pipeline-with-google-sheets)
- [**Gmail Cold Email Sequence with Google Sheets Tracking** 55 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/gmail-cold-email-sequence-with-google-sheets-tracking)
- [**Automate business partner outreach with Google Maps and OpenAI** 55 steps · calls a model · Apify, Google Drive](https://millionrounds.com/workflow/automate-business-partner-outreach-with-google-maps-and-open)
- [**Automated lead nurturing with Gemini and Telegram** 42 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/automated-lead-nurturing-with-gemini-and-telegram)
- [**Smart email outreach sequence – AI-powered & customizable** 56 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/smart-email-outreach-sequence-ai-powered-and-customizable)
