Automation library · Content

LinkedIn content automation: AI post creation & images

Started by a change in a Google Sheet, and works across Gmail, Google Sheets and LinkedIn. It hands the judgement calls to OpenAI and a local model. 14 steps, 1 branch: a working afternoon to understand properly.

MediumCalls a model: OpenAI, a local model

14 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 5Logic 4Service 4

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

  1. 1Google Sheets TriggerGoogle Sheets triggerStarts it
  2. 2Message a model in OllamaOllama ToolModel
  3. 3Ollama Chat ModelLm Chat OllamaModel
  4. 4FilterFilterLogic
  5. 5Image PromptOllamaModel
  6. 6Content GeneratorAgentModel
  7. 7Code in JavaScriptCodeLogic
  8. 8Generate imageOpen AiModel
  9. 9Add the post to the sheetGoogle SheetsService
  10. 10SearchTavilyService
  11. 11Create a postLinked InService
  12. 12Approval EmailGmailService
  13. 13chat inputCodeLogic
  14. 14Approved?IfLogic

How it's built

Starts on
A change in a Google Sheet
Steps
14, with 1 branch
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, LinkedIn
Model
OpenAI, a local model

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and LinkedIn accounts, and a key for OpenAI and a local model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a change in a Google Sheet.

Does it use AI?

Yes. It calls OpenAI and a local model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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