# Automate blog & LinkedIn content creation with OpenAI: n8n workflow

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

Source: https://millionrounds.com/workflow/automate-blog-and-linkedin-content-creation-with-openai (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)

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-blog-and-linkedin-content-creation-with-openai)

**23 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 2 Model 2 Logic 8 Service 11

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

- 1 **Cron (Schedule)** Cron *Starts it*
- 2 **Error Trigger (Any Node Fails)** Error trigger *Starts it*
- 3 **Set (Configs)** Set *Logic*
- 4 **Failure Message** Gmail *Service*
- 5 **Notion → Query Ideas DB (all)** Notion *Service*
- 6 **Filter Unpublished + Map** Code *Logic*
- 7 **Split In Batches (1)** Split In Batches *Logic*
- 8 **Count Eligible** Code *Logic*
- 9 **Normalize Arrays** Code *Logic*
- 10 **IF (Has Eligible?)** If *Logic*
- 11 **Content Creator** Open Ai *Model*
- 12 **Send a message** Gmail *Service*
- 13 **Parse & Validate JSON** Code *Logic*
- 14 **Create a Article Database Page** Notion *Service*
- 15 **If LinkedIn Published Check** If *Logic*
- 16 **Image prompt generator** Open Ai *Model*
- 17 **Draft Email** Gmail *Service*
- 18 **Replicate Image Prediction** Http Request *Service*
- 19 **Draft Update Database** Notion *Service*
- 20 **Download Image** Http Request *Service*
- 21 **Create a post** Linked In *Service*
- 22 **Published Email** Gmail *Service*
- 23 **Update a database page** Notion *Service*

## 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.

## 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%2Fautomate-blog-and-linkedin-content-creation-with-openai)
- **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)[LinkedIn](https://millionrounds.com/workflows?service=LinkedIn#library)[Notion](https://millionrounds.com/workflows?service=Notion#library)

## Workflows like it

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

- [**Automate LinkedIn posts with Google Sheets** 23 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-linkedin-posts-with-google-sheets)
- [**Automate WordPress SEO optimization with Yoast SEO** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-wordpress-seo-optimization-with-yoast-seo)
- [**Bulk YouTube channel content analysis with Apify and DeepSeek** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/bulk-youtube-channel-content-analysis-with-apify-and-deepsee)
- [**Create AI news LinkedIn posts from Google Trends with Tavily** 23 steps · calls a model · LinkedIn](https://millionrounds.com/workflow/create-ai-news-linkedin-posts-from-google-trends-with-tavily)
- [**Publish RSS articles to WordPress and social media platforms** 23 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/publish-rss-articles-to-wordpress-and-social-media-platforms)
- [**Create short social video clips from webinars with WayinVideo** 23 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/create-short-social-video-clips-from-webinars-with-wayinvide)
