# AI social media governance with OpenAI and LinkedIn: n8n workflow

> Started by another system calling it, and works across Email, LinkedIn and Postgres. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/ai-social-media-governance-with-openai-and-linkedin (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)

# AI social media governance with OpenAI and LinkedIn

Started by another system calling it, and works across Email, LinkedIn and Postgres. It hands the judgement calls to OpenAI. 14 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenAI

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

**14 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 3 Model 1 Logic 4 Service 6

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

- 1 **Manual Trigger** Manual trigger *Starts it*
- 2 **Approve** Webhook *Starts it*
- 3 **Scheduler** Cron *Starts it*
- 4 **Set Config** Set *Logic*
- 5 **Validate Token** Function *Logic*
- 6 **Fetch Approved** Postgres *Service*
- 7 **Generate Content** Open Ai *Model*
- 8 **Mark Approved** Postgres *Service*
- 9 **Post LinkedIn** Linked In *Service*
- 10 **Parse AI** Function *Logic*
- 11 **Mark Published** Postgres *Service*
- 12 **Check Confidence** If *Logic*
- 13 **Store in DB** Postgres *Service*
- 14 **Send Email** Email Send *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 14, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Email, LinkedIn, Postgres
- **Model:** OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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?

Plan an afternoon. 14 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 14 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-social-media-governance-with-openai-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.

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

## Workflows like it

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

- [**Analyze legal contracts with OpenAI and Slack** 14 steps · calls a model · Email, Google Calendar](https://millionrounds.com/workflow/analyze-legal-contracts-with-openai-and-slack)
- [**Create consulting client onboarding tasks with OpenAI** 14 steps · calls a model · Email, Google Calendar](https://millionrounds.com/workflow/create-consulting-client-onboarding-tasks-with-openai)
- [**Create scheduled LinkedIn posts with Telegram** 14 steps · calls a model · LinkedIn, Telegram](https://millionrounds.com/workflow/create-scheduled-linkedin-posts-with-telegram)
- [**Generate & schedule social posts with Gemini and OpenAI** 14 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/generate-and-schedule-social-posts-with-gemini-and-openai)
- [**Reduce meeting no-shows with Gemini and WhatsApp** 14 steps · calls a model · Email, Twilio](https://millionrounds.com/workflow/reduce-meeting-no-shows-with-gemini-and-whatsapp)
- [**Smart email responder workflow with Gemini and Gmail** 14 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/smart-email-responder-workflow-with-gemini-and-gmail)
