# AI-powered social media content generator & publisher: n8n workflow

> Started by someone submitting a form, and works across LinkedIn and X. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/ai-powered-social-media-content-generator-and-publisher (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-powered social media content generator & publisher

Started by someone submitting a form, and works across LinkedIn and X. It hands the judgement calls to Gemini. 20 steps: a working afternoon to understand properly.

Medium Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-social-media-content-generator-and-publisher)

**20 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 8 Service 8

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **Split Form Input** Set *Logic*
- 5 **AI Agent** Agent *Model*
- 6 **Split Data** Set *Logic*
- 7 **Aggregate** Aggregate *Logic*
- 8 **Data for AI** Set *Logic*
- 9 **Upload Image** Form *Service*
- 10 **Nest Top Meta** Set *Logic*
- 11 **Rename Image Binary Top Image** Code *Logic*
- 12 **X** Twitter *Service*
- 13 **Publish to LinkedIn** Linked In *Service*
- 14 **Publish to Facebook** Facebook Graph Api *Service*
- 15 **Upload Image to imgbb.com** Http Request *Service*
- 16 **Edit Fields** Set *Logic*
- 17 **Merge1** Merge *Logic*
- 18 **Image for Instagram** Http Request *Service*
- 19 **Form** Form *Service*
- 20 **Publish to Instagram** Facebook Graph Api *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 20
- **Size:** Medium: a working afternoon
- **Connects to:** LinkedIn, X
- **Model:** Gemini

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 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 20 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-powered-social-media-content-generator-and-publisher)
- **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.

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

- [**Blog post of website auto posting to social media with Gemini** 20 steps · calls a model · LinkedIn, RSS](https://millionrounds.com/workflow/blog-post-of-website-auto-posting-to-social-media-with-gemin)
- [**Create and publish social posts with Gemini and LinkedIn** 20 steps · calls a model · LinkedIn, X](https://millionrounds.com/workflow/create-and-publish-social-posts-with-gemini-and-linkedin)
- [**LinkedIn content factory with OpenAI and Replicate** 20 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/linkedin-content-factory-with-openai-and-replicate)
- [**Promote your YouTube video on X with OpenAI and Discord** 20 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/promote-your-youtube-video-on-x-with-openai-and-discord)
- [**Rewrite viral LinkedIn posts in your voice with Gemini** 20 steps · calls a model · LinkedIn, Telegram](https://millionrounds.com/workflow/rewrite-viral-linkedin-posts-in-your-voice-with-gemini)
- [**Scrape blog articles into AI-generated LinkedIn posts** 20 steps · calls a model · LinkedIn](https://millionrounds.com/workflow/scrape-blog-articles-into-ai-generated-linkedin-posts)
