Automate Social Media Content Publishing: AI Factory for X, Instagram, Facebook & More
detail.loadingPreview
Unleash your social media potential! This AI-powered factory automates content creation and publishing across X, Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts using Langchain and n8n.
🚀Ready to Deploy This Workflow?
About This Workflow
How it works
This n8n workflow acts as an automated social media content publishing factory, leveraging Langchain and various integrated services to streamline your social media presence.
It begins by listening for chat messages via a Chat Trigger node. The incoming prompt is then processed by a series of toolWorkflow nodes, each designed to generate content for a specific social media platform: X (Twitter), Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts.
For image creation, the workflow utilizes httpRequest nodes to interact with pollinations.ai for prompt-based image generation, and then imgbb.com for hosting.
System prompts and social media schemas are fetched from Google Docs, allowing for dynamic content generation and customization. An OpenAI LLM (gpt-4o-mini) is employed for text generation and refinement.
Finally, the generated content is published to the respective platforms using dedicated n8n nodes for X (Twitter), Facebook, and LinkedIn, and httpRequest nodes for Instagram. The workflow includes a Gmail node to send notifications about the published content.
Key Features
- AI-powered content generation for multiple social media platforms.
- Dynamic system prompt and schema composition from Google Docs.
- Image generation via
pollinations.aiand hosting onimgbb.com. - Automated publishing to X (Twitter), Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts.
- Customizable content based on user prompts and LLM outputs.
How To Use
- Configure Credentials: Ensure you have valid API keys and credentials set up for:
- OpenAI (
OpenAi account) - ImgBB (
IMGBB_API_KEYenvironment variable) - Google Docs (
Google Docs account) - Social Media platforms (Twitter, Facebook Graph API, LinkedIn)
- OpenAI (
- Set up Triggers: Configure the
When chat message receivednode with your desired chat integration. - Define Prompts & Schemas: Update the Google Docs URLs in the
Social Media SchemaandSocial Media System Promptnodes with your actual document links. - Customize Social Media Tools: For each
toolWorkflownode (X, Instagram, etc.), ensure therouteparameter matches your intended platform and review thedescription. - Configure Image Generation: Update the
pollinations.aihttpRequestnode with your desired image prompt logic. Configure theSave Image to imgbb.comnode with yourIMGBB_API_KEYenvironment variable. - Review Platform Publishing Nodes: Verify that the
Gmail,X Post,Instragram Post,Facebook Post, andLinkedIn Postnodes are correctly configured with your platform credentials and output field mappings. - Test and Deploy: Execute the workflow and monitor its output. Adjust parameters and content as needed.
Apps Used
Workflow JSON
{
"id": "482da9c5-dc6d-476d-b266-8664a09b248d",
"name": "Automate Social Media Content Publishing: AI Factory for X, Instagram, Facebook & More",
"nodes": 0,
"category": "Social Media",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 482da9c5-dc6d...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Integrations
- Google Sheets + Schedule Trigger(394 workflows)
- Google Sheets + Split Out(277 workflows)
- Gmail + Schedule Trigger(270 workflows)
- Google Sheets + Slack(268 workflows)
- Gmail + Google Sheets(245 workflows)
- Google Drive + Google Sheets(203 workflows)
- Form Trigger + Google Sheets(163 workflows)
- Google Drive + Google Drive Trigger(135 workflows)
- Google Drive + Split Out(134 workflows)
- Gmail + Split Out(132 workflows)
Related Workflows
Discover more workflows you might like
AI-Powered Historical POV Video Generation
Automate the creation of engaging, short-form viral historical POV videos using AI. This workflow leverages an LLM node to generate detailed scene prompts for historical breakthroughs, perfect for educational content channels.
Automate Bluesky Image Posts: Upload & Publish with n8n
Effortlessly publish image posts to Bluesky from any URL. Automate uploads, craft captions, and connect your credentials. Save time on social media.
Automate Notion to LinkedIn: Daily Post Scheduling & Publishing
Effortlessly schedule and publish daily posts from Notion to LinkedIn. Save time and boost your social media presence with this automation.
Automate LinkedIn Posts from Notion with AI Enhancements
Schedule and auto-post content from Notion to LinkedIn daily. AI refines text & images for maximum engagement. Save hours!
Automate YouTube Video Uploads & Playlist Management
Effortlessly upload videos to YouTube and auto-create/add them to playlists. Save time and boost your content strategy.
Automated Bluesky Direct Message to New Followers
Automatically send a personalized welcome DM to new followers on Bluesky.