Automation library ยท Lead generation

Automate lead enrichment & personalized outreach with HubSpot

Started by another system calling it, and works across Gmail, Google Sheets and HubSpot. It hands the judgement calls to OpenAI. 24 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 10Service 11

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

  1. 1๐Ÿ”— HubSpot Contact WebhookWebhookStarts it
  2. 2๐Ÿค– OpenAI Language ModelLm Chat Open AiModel
  3. 3๐Ÿ‘ค Fetch ContactHubspotService
  4. 4๐Ÿง  Generate Personalized EmailAgentModel
  5. 5๐Ÿ“ Update Sheet with Users Twitter/LinkedInGoogle SheetsService
  6. 6โœ‚๏ธ Parse Email ContentCodeLogic
  7. 7โœ… Validate Twitter/LinkedIn ExistsIfLogic
  8. 8๐Ÿ“ง Sends EmailGmailService
  9. 9๐Ÿš€ Launch Profile ScraperHttp RequestService
  10. 10๐ŸŽฏ Launch Tweet ScraperHttp RequestService
  11. 11โณ Wait for Profile ProcessingWaitLogic
  12. 12โณ Wait for Tweet ProcessingWaitLogic
  13. 13๐Ÿ“Š Fetch Profile ResultsHttp RequestService
  14. 14๐Ÿ“Š Fetch Tweet ResultsHttp RequestService
  15. 15๐Ÿ” Extract Profile URLCodeLogic
  16. 16๐Ÿ” Extract Tweet URLCodeLogic
  17. 17๐Ÿ“ฅ Download Profile DataHttp RequestService
  18. 18๐Ÿ“‹ Download Tweet JSONHttp RequestService
  19. 19๐Ÿ“‹ Parse Profile JSONExtract From FileService
  20. 20๐Ÿ“‹ Parse Tweet JSONExtract From FileService
  21. 21๐Ÿท๏ธ Format Profile FieldsSetLogic
  22. 22๐Ÿท๏ธ Format Tweet FieldsSetLogic
  23. 23๐Ÿ”„ Merge Data StreamsMergeLogic
  24. 24๐Ÿงฉ Combine All DataCodeLogic

How it's built

Starts on
Another system calling it
Steps
24, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, HubSpot
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and HubSpot accounts, and a key for OpenAI. 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?

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

How long does it take to set up?

Take your time. At 24 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 24 steps before you point it at anything that matters.