Use this comprehensive n8n workflow to automate publishing WordPress content to X, LinkedIn, Facebook, and Instagram. It uses an n8n node AI chain to generate platform-optimized captions and images.
Download this n8n workflow template and start using it instantly.
Managing content syndication across X, LinkedIn, Facebook, and Instagram is time-consuming. This sophisticated n8n workflow solves this by fully automating the process, ensuring brand consistency while adhering to platform-specific best practices. Instead of manually drafting unique captions for each channel, this n8n template uses a specialized LangChain setup powered by OpenRouter and OpenAI to ingest a WordPress article and output four distinct, highly optimized captions, alongside two custom-sized images (one for Instagram, one for Facebook/LinkedIn).
This specific n8n workflow not only generates the content but handles the entire publishing sequence via dedicated n8n node connections and uses Google Sheets to manage and track which posts have been successfully published on which platform, making it a complete, end-to-end automation solution.
The automation begins with the execution of the n8n trigger, which initiates the flow, typically when clicking ‘Test workflow’ or when scheduled.
To implement this n8n workflow template, follow these steps:
Sticky Note3) and update the 'Google Sheets' n8n node to point to your new document ID. Ensure you populate the 'POST ID' column with the WordPress ID you wish to process. Manual Trigger (n8n trigger): Starts the n8n workflow execution.
Google Sheets (n8n node): Initially retrieves the row containing the WordPress post ID and its row number. It is used repeatedly later to mark completion statuses (X OK, Facebook Ok, etc.).
Get Post (WordPress n8n node): Fetches the full title and content from the specified WordPress post, providing the raw material for the AI.
Social Media Manager (LangChain n8n node): The core intelligence. This n8n node takes the WordPress content and uses sophisticated prompts to generate four distinct social media captions tailored for X, Facebook, LinkedIn, and Instagram, leveraging the connected OpenRouter Chat Model.
Structured Output Parser (LangChain n8n node): Ensures the AI output from the preceding n8n node strictly conforms to a JSON schema, separating the captions for each platform.
OpenAi (Image Generation n8n node): Two instances are used to generate visual content: one optimized for Instagram (square) and one for Facebook/LinkedIn (horizontal), based on the generated captions.
Publish on X (Twitter n8n node): Publishes the short, impactful caption to Twitter/X.
Publish on Facebook (Facebook Graph API n8n node): Posts the generated image, caption, and link to the Facebook page.
Use this powerful n8n workflow to automatically read RSS feeds, repurpose content using an AI agent, publish articles to WordPress, and syndicate them across five social media platforms, saving time and maximizing reach.

Deploy a powerful n8n workflow integrating a Telegram bot, Google Gemini AI, and vector memory (RAG) to automate drafting and publishing social media posts on LinkedIn and X.

Use this robust n8n workflow to automatically publish generated HTML content as a GitHub Gist and retrieve a direct, previewable URL using the htmlpreview service. Perfect for report sharing.

Learn how to use this simple n8n workflow to automate publishing articles directly to a Medium publication using the dedicated Medium n8n node. Get started with n8n templates.

Automate cross-posting images and videos to X, Instagram, Facebook, and more using a custom n8n workflow. Simplify content distribution and content management with this robust n8n template.

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza







































