Automation library · Content

Scrape high-engagement LinkedIn posts and auto-post

Started by a clock, and works across Google Sheets and LinkedIn. It hands the judgement calls to Gemini. 17 steps, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

17 stepsMedium: a working afternoon
0Branches: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Model 4Logic 6Service 5

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

  1. 1Google Gemini Chat ModelLm Chat Google GeminiModel
  2. 2LinkedIn Content Automation SchedulerSchedule triggerStarts it
  3. 3New Post Data TriggerGoogle Sheets triggerStarts it
  4. 4JSON Output ParserOutput Parser StructuredModel
  5. 5LinkedIn Content Strategy AIAgentModel
  6. 6Fetch LinkedIn Profile URLsGoogle SheetsService
  7. 7Filter Recent Posts (3 Days)FilterLogic
  8. 8Generate an imageGoogle GeminiModel
  9. 9Process Profiles in BatchesSplit In BatchesLogic
  10. 10Aggregate Trending ContentAggregateLogic
  11. 11Publish to LinkedInLinked InService
  12. 12Scrape LinkedIn Posts APIHttp RequestService
  13. 13Extract Analyzed Post URLsCodeLogic
  14. 14Rate Limiting DelayWaitLogic
  15. 15Mark Posts as AnalyzedGoogle SheetsService
  16. 16Filter High-Engagement PostsFilterLogic
  17. 17Save Viral Posts to SheetsGoogle SheetsService

How it's built

Starts on
A clock
Steps
17, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Google Sheets, LinkedIn
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Google Sheets and LinkedIn accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

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

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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