Automation library · Lead generation

Send AI-personalized outreach emails from HubSpot

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

LargeCalls a model: Claude

27 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
4Services it connects to

The flow

Starts it 1Model 2Logic 11Service 13

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

  1. 1HubSpot Contact WebhookWebhookStarts it
  2. 2Claude Sonnet 4 (Writer)Lm Chat AnthropicModel
  3. 3Fetch HubSpot ContactHubspotService
  4. 4Draft Outreach Email (Claude)AgentModel
  5. 5Log Handles to SheetGoogle SheetsService
  6. 6Error Notify (Telegram)TelegramService
  7. 7Parse Email + Lead TagCodeLogic
  8. 8Has Social Handle?IfLogic
  9. 9Send Email (Gmail)GmailService
  10. 10Lead Detected?IfLogic
  11. 11Trigger Profile Scrape (Phantombuster)Http RequestService
  12. 12Trigger Tweet Scrape (Phantombuster)Http RequestService
  13. 13Notify Lead (Telegram)TelegramService
  14. 14Hold for Profile JobWaitLogic
  15. 15Hold for Tweet JobWaitLogic
  16. 16Read Profile Job OutputHttp RequestService
  17. 17Read Tweet Job OutputHttp RequestService
  18. 18Pick Profile Result URLCodeLogic
  19. 19Pick Tweet Result URLCodeLogic
  20. 20Download Profile JSONHttp RequestService
  21. 21Download Tweet JSONHttp RequestService
  22. 22Parse Profile FileExtract From FileService
  23. 23Parse Tweet FileExtract From FileService
  24. 24Shape Profile FieldsSetLogic
  25. 25Shape Tweet FieldsSetLogic
  26. 26Merge Profile + TweetsMergeLogic
  27. 27Flatten Into One ObjectCodeLogic

How it's built

Starts on
Another system calling it
Steps
27, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, HubSpot, Telegram
Model
Claude

Questions

What does it need to run?

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