Automation library · Content

AI-powered LinkedIn post automation with Gemini and OpenAI

Started by an incoming Telegram message, and works across LinkedIn and Telegram. It hands the judgement calls to Gemini and OpenAI. 33 steps, 4 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAI

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

The flow

Starts it 3Model 6Logic 13Service 11

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

  1. 1Google Gemini Chat ModelLm Chat Google GeminiModel
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3Telegram TriggerTelegram triggerStarts it
  4. 4On form submissionForm triggerStarts it
  5. 5OpenAI Chat ModelLm Chat Open AiModel
  6. 6Code in JavaScriptCodeLogic
  7. 7IfIfLogic
  8. 8Edit FieldsSetLogic
  9. 9Get Viral post Apify ScraperHttp RequestService
  10. 10Generate post for manual topicAgentModel
  11. 11Message a modelGoogle GeminiModel
  12. 12Posts FormatCodeLogic
  13. 13Send message and wait for responseTelegramService
  14. 14Code in JavaScript2CodeLogic
  15. 15SwitchSwitchLogic
  16. 16If1IfLogic
  17. 17HTTP Request – Image TaskHttp RequestService
  18. 18Viral Post GeneratorGoogle GeminiModel
  19. 19Simple TextCodeLogic
  20. 20Perplexity1Http RequestService
  21. 21Code in JavaScript1CodeLogic
  22. 22Set Task InfoSetLogic
  23. 23PerplexityHttp RequestService
  24. 24Create a postLinked InService
  25. 25HTTP Request - Get StatusHttp RequestService
  26. 26Post GeneratorChain LlmModel
  27. 27Send a text messageTelegramService
  28. 28Switch1SwitchLogic
  29. 29Set Finished ResultSetLogic
  30. 30WaitWaitLogic
  31. 31Download Result ImageHttp RequestService
  32. 32Create a post1Linked InService
  33. 33Send a text message1TelegramService

How it's built

Starts on
An incoming Telegram message
Steps
33, with 4 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
LinkedIn, Telegram
Model
Gemini, OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

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

How long does it take to set up?

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