Automated Multi-Platform Social Post Generation with Gemini AI - n8n Workflow

Generate, review, and auto-publish platform-specific social media posts for X, LinkedIn, Threads, and Reddit based on any web article using this advanced n8n workflow and Gemini AI.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content marketers needing to maximize reach from blog posts.
Automation specialists looking for advanced AI-driven n8n templates.
Technical writers who publish n8n workflow documentation or tutorials.
Digital agencies managing multi-channel content deployment using n8n.

Overview

This robust n8n workflow solves the complex and time-consuming problem of manually adapting content for different social platforms. By simply inputting a URL (e.g., an n8n workflow article), the system leverages the power of Google Gemini AI to analyze the content and generate unique, platform-specific copy (including generating Spanish content for LinkedIn and Threads, as defined in the AI Agent instructions). The n8n workflow also automatically captures a dynamic screenshot of the source article for visual engagement.

A crucial feature of this n8n workflow is the integrated human-in-the-loop review step, ensuring brand consistency and quality before any content is posted publicly. This powerful configuration of n8n node types transforms publishing efficiency, making this a highly valuable n8n template for any content team.

How it Works


  1. Start: The n8n workflow is initiated manually using the Manual Trigger n8n node, ideal for controlled execution.

  2. Input Setup: The Set Input Data n8n node defines critical workflow variables, including the target workflow_url and API keys required for publishing (Upload Post) and image generation (ScreenshotOne).

  3. AI Content Generation: The core intelligence resides in the Social Media Agent n8n node. This agent uses the Google Gemini Chat Model and a sophisticated prompt to analyze the target URL (via an internal HTTP request), generate platform-specific post text, and enforce a specific 'n8n Evangelist' persona. The Structured Output Parser ensures the output is consistently formatted JSON.

  4. Manual Approval (The n8n Trigger Pause): The generated content is routed to the Wait to approve by user n8n node. This pauses the n8n workflow execution and presents a web form detailing all four planned posts (LinkedIn, X, Threads, Reddit) for human review. The workflow will not proceed until a decision is submitted.

  5. Flow Control: The If approved publish n8n node checks the decision value. If the decision is 'approve', the publishing branches are activated.

  6. Multi-Platform Publication: If approved, four parallel n8n nodes handle the publication: Upload Post X, Upload Post Threads, and Upload Post Linkedin utilize the upload-post service, dynamically including the AI-generated text and a screenshot image of the original n8n workflow URL. The Upload Post Reddit n8n node publishes the content directly to the 'n8n' subreddit, completing the comprehensive content cycle.

Installation Guide


  1. Import: Copy the provided n8n workflow JSON code and import it into your n8n instance.

  2. Credentials: You will need to set up three credential types:

Google Gemini (PaLM) API: Required for the Google Gemini Chat Model n8n node to allow the AI agent to function.
Upload Post API: Necessary for the Upload Post X, Threads, and Linkedin n8n nodes for publishing to those platforms.
* Reddit OAuth2 API: Required for the Upload Post Reddit n8n node.

  1. Configure API Keys: In the Set Input Data n8n node, update the placeholders for upload-postuser and ScreenshotOneAPI_KEY with your actual values.

  2. Test: Run the n8n workflow using the Manual Trigger to ensure the AI generates the content correctly and the approval pause is triggered.

Node Details

Manual Trigger: The initial n8n trigger that starts the automation. It is used to execute this n8n workflow on demand.
Set Input Data: Essential utility n8n node for setting the dynamic variables, including the source article URL (workflow_url) and various API keys, making this n8n template easily configurable.
Social Media Agent: A powerful LangChain n8n node that leverages AI to create tailored content. It defines the persona, extraction logic (to find the workflow image), and dictates the content requirements for each social channel. It uses the HTTP Request Tool internally.
Google Gemini Chat Model: The underlying language model used by the agent, configured here using the powerful gemini-2.5-pro-preview-06-05 model.
Wait to approve by user: A critical 'human-in-the-loop' n8n node. It pauses the n8n trigger and provides a review form displaying all generated posts before final publication, ensuring quality control.
If approved publish: A core flow control n8n node that checks the output of the Wait node. The remainder of the n8n workflow proceeds only if the decision is 'approve'.


  • Upload Post X, Threads, Linkedin: These n8n node implementations use the Upload Post service to reliably send the AI-generated text and dynamically captured screenshot to the respective platforms.

Related n8n Workflows

Free

Nodes: 10 Nodes
Updated: December 26 2025
View all
Created by

Follow me in linkedin: https://www.linkedin.com/in/juan-carlos-cavero-gracia/

Featured*