# Automate social media content with Facebook and LinkedIn: n8n workflow

> Started by someone opening a chat with it, and works across Gmail, Google Docs, Google Sheets, LinkedIn and two others.

Source: https://millionrounds.com/workflow/automate-social-media-content-with-facebook-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)

# Automate social media content with Facebook and LinkedIn

Started by someone opening a chat with it, and works across Gmail, Google Docs, Google Sheets, LinkedIn and two others. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 50 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

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

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

**0** Branches: places the flow splits

**0** Loops or waits

**6** Services it connects to

## The flow

Starts it 4 Model 15 Logic 14 Service 17

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Get_Brand_Brief** Tool Workflow *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 5 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 6 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 7 **When chat message received** Chat trigger *Starts it*
- 8 **OpenAI Chat Model3** Lm Chat Open Ai *Model*
- 9 **Google Sheets** Google Sheets Tool *Service*
- 10 **Get_Brand_Brief1** Tool Workflow *Model*
- 11 **Check Examples1** Google Sheets Tool *Service*
- 12 **Simple Memory** Memory Buffer Window *Model*
- 13 **Social Media Content1** Output Parser Structured *Model*
- 14 **Google Docs** Google Docs *Service*
- 15 **Schedule Trigger** Schedule trigger *Starts it*
- 16 **AI Content creator** Agent *Model*
- 17 **Idea creator** Chain Llm *Model*
- 18 **Get Brief** Execute Workflow *Logic*
- 19 **Notion** Notion *Service*
- 20 **Edit Fields** Set *Logic*
- 21 **AI Agent** Agent *Model*
- 22 **LinkedIn Image generator** Open Ai *Model*
- 23 **IG Image generator** Open Ai *Model*
- 24 **Edit Fields4** Set *Logic*
- 25 **FB Image generator** Open Ai *Model*
- 26 **Edit Fields5** Set *Logic*
- 27 **X Image generator** Open Ai *Model*
- 28 **Edit Fields7** Set *Logic*
- 29 **Edit Fields6** Set *Logic*
- 30 **Add Examples** Google Sheets *Service*
- 31 **Aggregate** Aggregate *Logic*
- 32 **Add to History** Google Sheets *Service*
- 33 **Post image Cloudianry LIn** Http Request *Service*
- 34 **Post image Cloudianry IG** Http Request *Service*
- 35 **Merge3** Merge *Logic*
- 36 **Post image Cloudianry FB** Http Request *Service*
- 37 **Merge4** Merge *Logic*
- 38 **Post image Cloudianry X** Http Request *Service*
- 39 **Merge6** Merge *Logic*
- 40 **Merge5** Merge *Logic*
- 41 **Edit Fields1** Set *Logic*
- 42 **HTTP Request** Http Request *Service*
- 43 **Upload media to Instagram** Facebook Graph Api *Service*
- 44 **Facebook Post** Facebook Graph Api *Service*
- 45 **X** Twitter *Service*
- 46 **LinkedIn** Linked In *Service*
- 47 **Publish Post on IG** Facebook Graph Api *Service*
- 48 **Merge** Merge *Logic*
- 49 **Aggregate1** Aggregate *Logic*
- 50 **Gmail** Gmail *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 50
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Docs, Google Sheets, LinkedIn, Notion, X
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Docs, Google Sheets, LinkedIn, Notion and X accounts, and a key for OpenAI. 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 OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 50 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 50 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-social-media-content-with-facebook-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.

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

## Workflows like it

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

- [**Viral videos into new content with Gemini and OpenAI** 50 steps · calls a model · Google Sheets, S3](https://millionrounds.com/workflow/viral-videos-into-new-content-with-gemini-and-openai)
- [**WordPress auto-blogging pro - content automation machine** 50 steps · calls a model · Google Docs, Google Drive](https://millionrounds.com/workflow/wordpress-auto-blogging-pro-content-automation-machine)
- [**AI SEO Blog Automation for WordPress with OpenAI** 48 steps · calls a model · Google Sheets, WordPress](https://millionrounds.com/workflow/ai-seo-blog-automation-for-wordpress-with-openai)
- [**Create & approve POV videos with OpenAI and OpenRouter** 53 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/create-and-approve-pov-videos-with-openai-and-openrouter)
- [**AI Agents Generate Content & Automate Posting** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-content-and-automate-posting)
- [**AI Agents Generate Content & Automate Posting** 46 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-agents-generate-content-and-automate-posting-2)
