Automation library · Content

Create LinkedIn news posts with Gemini and OpenAI

Started by a clock, and works across Gmail and Slack. It hands the judgement calls to Gemini and OpenAI. 18 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini, OpenAI

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

The flow

Starts it 1Model 3Logic 4Service 10

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

  1. 1Scheduled Workflow TriggerSchedule triggerStarts it
  2. 2Fetch Latest News ArticlesHttp RequestService
  3. 3Validate News AvailabilityIfLogic
  4. 4AI News Quality FilterGoogle GeminiModel
  5. 5Notify for not availability of newsGmailService
  6. 6Prepare Filter News dataCodeLogic
  7. 7Check Content RelevanceIfLogic
  8. 8Generate LinkedIn Post ContentGoogle GeminiModel
  9. 9Notify not relevent data for publishingGmailService
  10. 10Clean AI Response DataCodeLogic
  11. 11Generate AI Post ImageOpen AiModel
  12. 12Get ProfileInfoHttp RequestService
  13. 13Register LinkedIn Media UploadHttp RequestService
  14. 14Extrect Binary to Base 64Extract From FileService
  15. 15Extrect Base64 to fileConvert To FileService
  16. 16Put Image on Linkedin APIHttp RequestService
  17. 17Create Post on LinkedinHttp RequestService
  18. 18Notify on SuccessSlackService

How it's built

Starts on
A clock
Steps
18, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Slack
Model
Gemini, OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Slack 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 a clock.

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?

Plan an afternoon. 18 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 18 steps before you point it at anything that matters.