Automation library · Lead generation

Enrich Salesforce accounts with LinkedIn

Started by an event in a connected app, and works across Salesforce. It hands the judgement calls to OpenAI. 28 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

28 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 1Logic 21Service 5

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

  1. 1SF: On Account CreatedSalesforce triggerStarts it
  2. 2SF: Get AccountSalesforceService
  3. 3Init Crawl ParamsSetLogic
  4. 4Prep LinkedIn Search InputsSetLogic
  5. 5Init GlobalsCodeLogic
  6. 6IF LInkedin URL Missing?IfLogic
  7. 7Seed Root Crawl ItemMergeLogic
  8. 8DDG Search (LinkedIn)Http RequestService
  9. 9Use Provided URL (Fallback)CodeLogic
  10. 10Fetch HTML PageHttp RequestService
  11. 11Parse LinkedIn URLCodeLogic
  12. 12Merge LinkedIn URL BranchesMergeLogic
  13. 13Attach URL/Depth to HTMLCodeLogic
  14. 14Fetch LinkedIn HTML1Http RequestService
  15. 15Extract Body & LinksHtmlLogic
  16. 16Extract LinkedIn BodyHtmlLogic
  17. 17Queue & Dedup LinksCodeLogic
  18. 18Parse LinkedIn Company InfoCodeLogic
  19. 19IF Crawl Depth OK?IfLogic
  20. 20Merge Web Pages + LinkedIn JSONMergeLogic
  21. 21Requeue Link ItemCodeLogic
  22. 22Store Page DataSetLogic
  23. 23Combine & Chunk for LLMCodeLogic
  24. 24Loop Links (Batches)Split In BatchesLogic
  25. 25Collect Pages & Emit When DoneCodeLogic
  26. 26Build LLM PromptCodeLogic
  27. 27OpenAI: Generate InsightsOpen AiModel
  28. 28SalesforceSalesforceService

How it's built

Starts on
An event in a connected app
Steps
28, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Salesforce
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Salesforce account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

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 28 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 28 steps before you point it at anything that matters.