# AI-optimized content posting to X, Discord & LinkedIn: n8n workflow

> Started by someone opening a chat with it, and works across Discord, LinkedIn and X. It hands the judgement calls to OpenRouter.

Source: https://millionrounds.com/workflow/ai-optimized-content-posting-to-x-discord-and-linkedin (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)

# AI-optimized content posting to X, Discord & LinkedIn

Started by someone opening a chat with it, and works across Discord, LinkedIn and X. It hands the judgement calls to OpenRouter. 9 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-optimized-content-posting-to-x-discord-and-linkedin)

**9 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 2 Service 3

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

- 1 **Generate Content** Lm Chat Open Router *Model*
- 2 **Output Parser** Output Parser Structured *Model*
- 3 **Chat Input Trigger** Chat trigger *Starts it*
- 4 **AI Content Optimizer** Chain Llm *Model*
- 5 **Split Platform Content** Split Out *Logic*
- 6 **Route to Platform** Switch *Logic*
- 7 **Post to X** Twitter *Service*
- 8 **Post to Discord** Discord *Service*
- 9 **Post to LinkedIn** Linked In *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 9, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Discord, LinkedIn, X
- **Model:** OpenRouter

## Questions

What does it need to run?

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

What starts it?

It starts on someone opening a chat with it.

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?

Plan an afternoon. 9 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 9 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%2Fai-optimized-content-posting-to-x-discord-and-linkedin)
- **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.

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

## Workflows like it

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

- [**Automate Social media content poster with Gemini** 9 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/automate-social-media-content-poster-with-gemini)
- [**Automate social media headlines with Bright Data** 9 steps · calls a model · LinkedIn, X](https://millionrounds.com/workflow/automate-social-media-headlines-with-bright-data)
- [**Automated Notion to LinkedIn post publisher with OpenAI** 9 steps · calls a model · LinkedIn, Notion](https://millionrounds.com/workflow/automated-notion-to-linkedin-post-publisher-with-openai)
- [**Create daily social posts with OpenAI and Slack** 9 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/create-daily-social-posts-with-openai-and-slack)
- [**Create professional LinkedIn posts from Telegram messages** 9 steps · calls a model · LinkedIn, Telegram](https://millionrounds.com/workflow/create-professional-linkedin-posts-from-telegram-messages)
- [**LinkedIn post agent with OpenAI** 9 steps · calls a model · LinkedIn](https://millionrounds.com/workflow/linkedin-post-agent-with-openai)
