Automation library · Research and reporting

LinkedIn Auto-Engagement with OpenRouter and Google Sheets

Started by an event in a connected app, and works across Google Sheets and Telegram. It hands the judgement calls to OpenRouter. 23 steps, 1 branch, 3 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenRouter

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

The flow

Starts it 1Model 7Logic 6Service 9

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

  1. 1Extract Post ItemsCodeLogic
  2. 2Filter Recent PostsCodeLogic
  3. 3Count Post CharactersChain LlmModel
  4. 4Filter Eligible PostsIfLogic
  5. 5Character Counter LLMLm Chat Open RouterModel
  6. 6Character Count ParserOutput Parser StructuredModel
  7. 7Generate AI CommentAgentModel
  8. 8Analyze Post SentimentSentiment AnalysisModel
  9. 9Leave Reaction on PostHttp RequestService
  10. 10Process Posts in BatchesSplit In BatchesLogic
  11. 11Log Eligible PostsGoogle SheetsService
  12. 12Update Sentiment AnalysisGoogle SheetsService
  13. 13Log Successful CommentGoogle SheetsService
  14. 14Post Comment to LinkedInHttp RequestService
  15. 15Log Comment ErrorGoogle SheetsService
  16. 16Wait After ReactionWaitLogic
  17. 17Wait After Comment ErrorWaitLogic
  18. 18Sentiment Analysis LLMLm Chat Open RouterModel
  19. 19Comment Generation LLMLm Chat Open RouterModel
  20. 20Send Completion NotificationTelegramService
  21. 21Get LinkedIn Post DetailsHttp RequestService
  22. 22When clicking ‘Execute workflow’Manual triggerStarts it
  23. 23LinkedIn SearchHttp RequestService

How it's built

Starts on
An event in a connected app
Steps
23, with 1 branch, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Telegram
Model
OpenRouter

Questions

What does it need to run?

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