Automated social media content creation with OpenAI, LinkedIn & Twitter approval
Needs changesWhat this workflow does
This AI workflow has 16 nodes and runs when someone submits an n8n form (“What do you feel like posting about today?”). Along the way it connects OpenAI Chat Model, LinkedIn, Gmail and X (Formerly Twitter) and 3 more.
How it runs
Trigger: When someone submits an n8n form (“What do you feel like posting about today?”).
- Social Media Content Factory (AI Agent): runs an AI agent, with model: gpt-4o LLM; output parser: Social Media Content
- Prepare Content Review Email (AI Agent): runs an AI agent, with model: gpt-4o-mini
- Gmail: send and wait for a reply
- Is Content Approved? (If): checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Generate an image (OpenAI): work with image
- HTTP Request: calls an HTTP API
- LinkedIn: uses LinkedIn
- Create Tweet (X (Formerly Twitter)): uses X (Formerly Twitter)
- Create a post (LinkedIn): uses LinkedIn
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Social Media Content Factory (v1.7), Prepare Content Review Email (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Social Media Content Factory (v1.7), Prepare Content Review Email (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - LinkedIn
n8n-nodes-base.linkedIn - Gmail
n8n-nodes-base.gmail - n8n Form Trigger
n8n-nodes-base.formTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - X (Formerly Twitter)
n8n-nodes-base.twitter - OpenAI
@n8n/n8n-nodes-langchain.openAi - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest
From the author
Whether you’re a product manager, developer, or simply curious about workflow automation, you’re in the right place. This n8n workflow is designed to help you streamline and automate your social media content creation, approval, and publishing process—all…