Automate social media content with AI for Instagram, Facebook, LinkedIn & X

Go to Workflow
15,408 views
Built by LukaszB LukaszB
Created on June 05, 2026

Description

AI Social Media Content Automation – n8n Workflow

This workflow is built for creators, solopreneurs, SaaS founders, and agencies looking to automate their social media content process from idea to publication. It combines the power of OpenAI, Google Sheets, and official APIs for Instagram, Facebook, X (Twitter), and LinkedIn to deliver fully automated, brand-consistent social media posts — including text, images, hashtags, CTAs, and scheduling.

No more switching tools, rewriting content, or forgetting to post. Just set it up once and let your brand grow automatically.

🔧 What the Workflow Does
Generates platform-specific post ideas based on your brand tone.
Selects the best idea (or lets you manually input one).
Writes tailored posts for Instagram, Facebook, X, and LinkedIn.
Auto-generates platform-specific visuals using OpenAI (DALL·E) and uploads to Cloudinary.
Publishes content directly using official platform APIs.
Logs all actions to Google Sheets and optionally sends a summary email via Gmail.

⚙️ How It Works
Trigger the workflow manually, on a schedule, or from a chatbot.
AI generates multiple post ideas and filters the best one.
Based on the selected idea, it generates full posts for each platform.
Custom visuals are created using OpenAI and uploaded to Cloudinary.
Final post content is merged and sent to Instagram, Facebook, X, and LinkedIn.
Logs and optional reports are created in Google Sheets and Gmail.

🛠️ Setup Steps
Set up your accounts and credentials: OpenAI, Cloudinary, Gmail, Meta, LinkedIn, X, and Google Sheets.
Import the workflow and subworkflow (Get Brand Brief) into n8n.
Replace all placeholders (sheet IDs, access tokens, profile/page IDs, brand brief URLs).
Optionally personalize prompts and output templates to match your brand voice.
Setup time: ~30–45 minutes (including credentials and testing).

Detailed configuration notes are included in sticky nodes throughout the workflow.

📦 Included in Your Package
JSON workflow file (main flow + brand brief subflow)
Google Sheets templates for history logging
Setup documentation (Markdown & PDF)
Placeholder reference sheet

Nodes Used (15)

AI Agent
@n8n/n8n-nodes-langchain.agent
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Facebook Graph API
n8n-nodes-base.facebookGraphApi
Gmail
n8n-nodes-base.gmail
Google Docs
n8n-nodes-base.googleDocs
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
LinkedIn
n8n-nodes-base.linkedIn
Notion
n8n-nodes-base.notion
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
X (Formerly Twitter)
n8n-nodes-base.twitter