Automation library · Content

Automate blog & LinkedIn content creation with OpenAI

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

LargeCalls a model: OpenAI

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

The flow

Starts it 2Model 2Logic 8Service 11

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

  1. 1Cron (Schedule)CronStarts it
  2. 2Error Trigger (Any Node Fails)Error triggerStarts it
  3. 3Set (Configs)SetLogic
  4. 4Failure MessageGmailService
  5. 5Notion → Query Ideas DB (all)NotionService
  6. 6Filter Unpublished + MapCodeLogic
  7. 7Split In Batches (1)Split In BatchesLogic
  8. 8Count EligibleCodeLogic
  9. 9Normalize ArraysCodeLogic
  10. 10IF (Has Eligible?)IfLogic
  11. 11Content CreatorOpen AiModel
  12. 12Send a messageGmailService
  13. 13Parse & Validate JSONCodeLogic
  14. 14Create a Article Database PageNotionService
  15. 15If LinkedIn Published CheckIfLogic
  16. 16Image prompt generatorOpen AiModel
  17. 17Draft EmailGmailService
  18. 18Replicate Image PredictionHttp RequestService
  19. 19Draft Update DatabaseNotionService
  20. 20Download ImageHttp RequestService
  21. 21Create a postLinked InService
  22. 22Published EmailGmailService
  23. 23Update a database pageNotionService

How it's built

Starts on
A clock
Steps
23, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, LinkedIn, Notion
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, LinkedIn 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 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.