Automation library · Content

LinkedIn content factory with OpenAI and Replicate

Started by an event in a connected app, and works across Google Sheets and LinkedIn. It hands the judgement calls to OpenAI. 20 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

20 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 8Logic 5Service 6

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2SerpAPITool Serp ApiModel
  3. 3SerpAPI1Tool Serp ApiModel
  4. 4OpenAI Chat Model1Lm Chat Open AiModel
  5. 5When clicking ‘Execute workflow’Manual triggerStarts it
  6. 6Structured Output ParserOutput Parser StructuredModel
  7. 7Structured Output Parser1Output Parser StructuredModel
  8. 83. Generate LinkedIn Post Content with AIAgentModel
  9. 92. Research Topic & Find Viral Angle with AIAgentModel
  10. 101. Get Pending Topic from Google SheetsGoogle SheetsService
  11. 114. Generate Branded Image PromptCodeLogic
  12. 124.1. Generate Branded Image PromptCodeLogic
  13. 135a. Start Image Generation (Replicate)Http RequestService
  14. 145b. Check Image StatusHttp RequestService
  15. 15IfIfLogic
  16. 166. Download Generated ImageHttp RequestService
  17. 17WaitWaitLogic
  18. 187. Publish Post to LinkedInLinked InService
  19. 19Edit FieldsSetLogic
  20. 208.Update Google SheetsGoogle SheetsService

How it's built

Starts on
An event in a connected app
Steps
20, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Sheets, LinkedIn
Model
OpenAI

Questions

What does it need to run?

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

How long does it take to set up?

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