Automation library · Lead generation

Enrich and score leads with Claude and PDL

Started by another system calling it, and works across Apify, Gmail, HubSpot and Slack. It hands the judgement calls to Claude, Gemini and one other. 23 steps, 1 branch: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude, Gemini

23 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 1Model 6Logic 7Service 9

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

  1. 1Anthropic Chat ModelLm Chat AnthropicModel
  2. 2WebhookWebhookStarts it
  3. 3ICP & Use CaseGoogle Docs ToolService
  4. 4AI ReasoningTool ThinkModel
  5. 5AI AgentAgentModel
  6. 6Validate & Parse InputCodeLogic
  7. 7Parse & Structure OutputCodeLogic
  8. 8PDL EnrichHttp RequestService
  9. 9Merge All SourcesMergeLogic
  10. 10Route by ScoreSwitchLogic
  11. 11Individual ResearchPerplexityService
  12. 12Company ResearchPerplexityService
  13. 13LinkedIn Profile ScraperApifyService
  14. 14Merge Enrichment DataCodeLogic
  15. 15Format for CRMCodeLogic
  16. 16Format Hot Lead SlackGoogle GeminiModel
  17. 17Format Hot Lead EmailGoogle GeminiModel
  18. 18Format Warm Lead SlackGoogle GeminiModel
  19. 19Upsert to HubSpot CRMHubspotService
  20. 20Send Hot Lead Slack AlertSlackService
  21. 21Parse Email JSONCodeLogic
  22. 22Send Warm Lead to DigestSlackService
  23. 23Send Hot Lead EmailGmailService

How it's built

Starts on
Another system calling it
Steps
23, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Apify, Gmail, HubSpot, Slack
Model
Claude, Gemini, Perplexity

Questions

What does it need to run?

An n8n account, plus your own Apify, Gmail, HubSpot and Slack 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 another system calling it.

Does it use AI?

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

How long does it take to set up?

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