Automation library · Content

LinkedIn post generator with OpenAI and Gmail

Started by a clock, and works across Gmail, Google Drive and Notion. It hands the judgement calls to OpenAI. 26 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 6Logic 10Service 9

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

  1. 1Start WorkflowSchedule triggerStarts it
  2. 24.1Lm Chat Open AiModel
  3. 3Structured Output ParserOutput Parser StructuredModel
  4. 4ThinkTool ThinkModel
  5. 5Retrieve KeywordsNotionService
  6. 6Research AgentAgentModel
  7. 7Linkedin CopywriterAgentModel
  8. 8Image Prompt AgentAgentModel
  9. 9Prepare QueryCodeLogic
  10. 10Create Selected_Articles ArrayCodeLogic
  11. 11Image GenerationHttp RequestService
  12. 12Determine Nb of resultsHttp RequestService
  13. 13End of LoopIfLogic
  14. 14Convert to imageConvert To FileService
  15. 15Set TotalSetLogic
  16. 16Split ArticlesSplit OutLogic
  17. 17Set PageSetLogic
  18. 18Google DriveGoogle DriveService
  19. 19Loop Over ItemsSplit In BatchesLogic
  20. 20News API First Request - Page NHttp RequestService
  21. 21NotionNotionService
  22. 22GmailGmailService
  23. 23Extract News ContentHttp RequestService
  24. 24Split Out1Split OutLogic
  25. 25AggregateAggregateLogic
  26. 26Edit FieldsSetLogic

How it's built

Starts on
A clock
Steps
26, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Notion
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Notion accounts, and a key for OpenAI. 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 OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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