# Generate LinkedIn posts with OpenAI and Gemini: n8n workflow

> Started by a clock, and works across Gmail, Google Sheets and LinkedIn. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/generate-linkedin-posts-with-openai-and-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Generate LinkedIn posts with OpenAI and Gemini

Started by a clock, and works across Gmail, Google Sheets and LinkedIn. It hands the judgement calls to Gemini and OpenAI. 15 steps, 3 branches: a working afternoon to understand properly.

Medium Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-linkedin-posts-with-openai-and-gemini)

**15 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 3 Service 8

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Get Data from Sheets** Google Sheets *Service*
- 4 **Generate Post Content** Chain Llm *Model*
- 5 **Switch** Switch *Logic*
- 6 **Generate Post Image** Google Gemini *Model*
- 7 **Send Content Confirmation** Gmail *Service*
- 8 **Upload a File** Upload To Url *Service*
- 9 **Content Confirmation Logic** Switch *Logic*
- 10 **Is Image Required?** If *Logic*
- 11 **Update Status to Canceled** Google Sheets *Service*
- 12 **Download a File** Upload To Url *Service*
- 13 **Post Without Image** Linked In *Service*
- 14 **Post With Image** Linked In *Service*
- 15 **Update Google Sheet** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 15, with 3 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Google Sheets, LinkedIn
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and LinkedIn 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. 15 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 15 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-linkedin-posts-with-openai-and-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[LinkedIn](https://millionrounds.com/workflows?service=LinkedIn#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI News & Content Curator with OpenAI and OpenRouter** 15 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-news-and-content-curator-with-openai-and-openrouter)
- [**AI Viral Video Producer: Ideation to Veo3 Generation** 15 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-viral-video-producer-ideation-to-veo3-generation)
- [**AI agent creates content to be picked by ChatGPT, Gemini, Google** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-agent-creates-content-to-be-picked-by-chatgpt-gemini-goog)
- [**AI agent creates content to be picked by ChatGPT, Gemini, Google** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-agent-creates-content-to-be-picked-by-chatgpt-gemini-goog-2)
- [**Auto-curate & post LinkedIn company page with RSS and Gemini** 15 steps · calls a model · LinkedIn, RSS](https://millionrounds.com/workflow/auto-curate-and-post-linkedin-company-page-with-rss-and-gemi)
- [**Automate SEO research & content gap analysis with OpenAI** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-seo-research-and-content-gap-analysis-with-openai)
