Automation library · Lead generation

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

49 stepsLarge: read it before trusting it with anything live
9Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 2Logic 28Service 19

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

  1. 1Schedule Trigger1Schedule triggerStarts it
  2. 2Receive Apify Webhook2WebhookStarts it
  3. 3Build Config2CodeLogic
  4. 4Check Schedule Trigger2IfLogic
  5. 5Fetch Webhook Status2Data TableService
  6. 6Create Daily Log Sheet2Google SheetsService
  7. 7Fetch RUNS Data2Data TableService
  8. 8Check Webhook Exists2IfLogic
  9. 9Extract Sheet Info2CodeLogic
  10. 10Update Run Status2CodeLogic
  11. 11Check Weekly Run (Monday)2IfLogic
  12. 12Create External Webhook2Http RequestService
  13. 13Store Sheet Metadata2Data TableService
  14. 14Save Updated RUNS Data1Data TableService
  15. 15Run Actor "Weekly Top Products"2Http RequestService
  16. 16Run Actor "Daily Top Products"2Http RequestService
  17. 17Mark Webhook as Created2Data TableService
  18. 18SwitchSwitchLogic
  19. 19Combine Run IDs2CodeLogic
  20. 20Extract Dataset IDs2CodeLogic
  21. 21Store Run Data2Data TableService
  22. 22Fetch Dataset Items2Http RequestService
  23. 23Deduplicate2CodeLogic
  24. 24Loop Over Sub Items2Split In BatchesLogic
  25. 25Aggregate Batch Results2AggregateLogic
  26. 26HTTP RequestHttp RequestService
  27. 27Get Daily Activities to Sheet2Google SheetsService
  28. 28IfIfLogic
  29. 29Summarize Daily Stats2CodeLogic
  30. 30Map Category by Topic2CodeLogic
  31. 31Log Daily Summary to Sheet2Google SheetsService
  32. 32Prepare Scraper Payload1CodeLogic
  33. 33Clear Old Run Data2Data TableService
  34. 34Get Contact Scraper1Http RequestService
  35. 35If1IfLogic
  36. 36Prepare Request Body2CodeLogic
  37. 37Get Sheet Metadata2Data TableService
  38. 38Parse Sheet IDs2CodeLogic
  39. 39Check if Skipped2IfLogic
  40. 40Prepare Error Row2CodeLogic
  41. 41Format API Result for Sheet2CodeLogic
  42. 42Log API Result to Google Sheet2Google SheetsService
  43. 43Check Owner Email Exists2IfLogic
  44. 44Prepare CCSetLogic
  45. 45Handle No EmailCodeLogic
  46. 46Send a messageGmailService
  47. 47Verify Email Sent Successfully2IfLogic
  48. 48Handle Email FailedCodeLogic
  49. 49Handle Email SuccessCodeLogic

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.