# Generate & schedule social media posts with OpenAI: n8n workflow

> Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenRouter.

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

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

# Generate & schedule social media posts with OpenAI

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenRouter. 23 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenRouter

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

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

**4** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 3 Logic 10 Service 8

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Wait for User Topic Reply** Telegram trigger *Starts it*
- 3 **Structure AI Output** Output Parser Structured *Model*
- 4 **Web Research Tool (Optional)** Tavily Tool *Service*
- 5 **AI Language Model** Lm Chat Open Router *Model*
- 6 **Create Schedule Timestamp** Code *Logic*
- 7 **Validate Reply Format** If *Logic*
- 8 **AI Content Generator** Agent *Model*
- 9 **Request Content Topic via Telegram** Telegram *Service*
- 10 **Parse User Input** Code *Logic*
- 11 **Validate Generated Content** Code *Logic*
- 12 **Input Validation Check** If *Logic*
- 13 **Content Quality Gate** If *Logic*
- 14 **Send Input Error Message** Telegram *Service*
- 15 **Format Content Preview** Code *Logic*
- 16 **Send Generation Error** Telegram *Service*
- 17 **Send Preview & Await Approval** Telegram *Service*
- 18 **Merge Approval Data** Merge *Logic*
- 19 **Check User Approval** If *Logic*
- 20 **Split Posts for Publishing** Split Out *Logic*
- 21 **Send Cancellation Notice** Telegram *Service*
- 22 **Publish to Social Platforms** Upload Post *Service*
- 23 **Send Success Notification** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 23, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** OpenRouter

## Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenRouter. 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%2Fgenerate-and-schedule-social-media-posts-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.

[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

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

- [**Agent personnel with OpenAI and Gmail** 24 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/agent-personnel-with-openai-and-gmail)
- [**Automate tenant rent collection with Sheets and Gmail** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-tenant-rent-collection-with-sheets-and-gmail)
- [**Personal assistant for calendar & tasks with OpenAI** 22 steps · calls a model · Google Calendar, Google Tasks](https://millionrounds.com/workflow/personal-assistant-for-calendar-and-tasks-with-openai)
- [**Schedule motivational YouTube Shorts with Google Drive** 22 steps · calls a model · Airtable, Google Cloud Storage](https://millionrounds.com/workflow/schedule-motivational-youtube-shorts-with-google-drive)
- [**Send rent reminders and weekly AI summaries with OpenAI** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-rent-reminders-and-weekly-ai-summaries-with-openai)
- [**Smart email classifier & auto-responder with Azure OpenAI** 22 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/smart-email-classifier-and-auto-responder-with-azure-openai)
