Automated LinkedIn Carousel Posting with AI and Post Nitro - n8n Workflow

Use this powerful n8n workflow to automatically generate professional LinkedIn carousel posts using Google Gemini AI and Post Nitro, triggering daily or via manual form submission.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content Creators and Marketers: Automating their daily social media output.
Technical Professionals: Looking for advanced examples of using n8n node components like Code, HTTP requests, and AI.
Agencies: Needing ready-made n8n templates for high-volume LinkedIn publishing.
Anyone utilizing the Gemini LLM and Post Nitro platform for content design.

Overview

Maintaining a consistent presence on professional platforms like LinkedIn requires significant effort, particularly when creating engaging formats like carousels. This sophisticated n8n workflow completely removes the manual burden. It provides dual flexibility: running automatically every day using an n8n trigger to fetch and curate trending tech news, or manually via an n8n form trigger for specific topics.

By leveraging the Gemini AI, the system first selects the most relevant news topic and then transforms it into structured slide content compatible with Post Nitro. Post Nitro handles the visual design, creating a PDF carousel, which the n8n automation then expertly uploads and publishes to your LinkedIn profile. This comprehensive solution demonstrates the power of combining multiple services within a single, seamless n8n workflow.

How it Works

This automation starts with one of two n8n trigger options: a daily '6:00 AM Trigger' or a manual 'On form submission' trigger.


  1. News Fetching (Automated Path): The scheduled n8n trigger initiates an HTTP request to fetch the TechRadar RSS feed. A custom Code n8n node ('Parse HTML') then meticulously extracts and cleans the article titles and descriptions from the complex XML data.

  2. AI Curation: The 'Decide which News to Choose' n8n node (using the Gemini LLM) analyzes the list of titles and selects the most relevant item based on predefined criteria (e.g., n8n Automation, AI, Technology), returning only the index number.

  3. Input Standardization: Whether triggered manually or automatically, the selected content flows to the 'Get Title and Description' Code n8n node, which standardizes the input variables for the subsequent steps.

  4. Carousel Content Generation: The 'Gemini Generate' n8n node uses the input topic to produce a structured JSON output, defining the text for the starting, body, and ending slides, adhering strictly to the Post Nitro schema.

  5. Design & PDF Creation: The cleaned JSON is sent to the PostNitro 'ImportSlides embedPost' n8n node, which renders the content onto a specified template and returns a URL to the resulting PDF file.

  6. LinkedIn Upload Sequence: A series of HTTP Request n8n node calls manage the official LinkedIn document upload protocol. This includes getting the User URN, initializing the upload to receive a document ID and upload URL, downloading the Post Nitro PDF, and finally performing a PUT request to upload the binary PDF data to LinkedIn.

  7. Final Posting: A second Gemini n8n node ('Gemini Generate1') creates the final, engaging commentary text for the post. The last n8n node, 'Post to LinkedIn' (HTTP Request), publishes the carousel using the generated commentary and the uploaded document ID.

Installation Guide

To deploy this advanced n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and paste it directly into your n8n canvas using the 'New' -> 'Import from JSON' option.

  2. Install Community Node: This n8n workflow relies on the Post Nitro community node. Install it via the n8n settings: Settings -> Community Nodes -> Install a Community Node using the package name @postnitro/n8n-nodes-postnitro-ai.

  3. Credentials Setup:

Google Gemini (PaLM) API: Connect your Google Gemini credentials to all four Gemini n8n node instances.
Post Nitro API: Configure the 'PostNitro Embed' credentials, ensuring you input your API Key, Template ID, and Brand ID into the 'ImportSlides embedPost' n8n node settings.
* LinkedIn OAuth2 API: Set up your LinkedIn OAuth2 credentials and connect them to the respective HTTP Request n8n node calls for URN lookup and posting.

  1. Configuration: If using the automated n8n trigger, review the 'Decide which News to Choose' n8n node prompt to adjust the AI's relevance criteria to match your personal brand or niche focus.

  2. Activate: Save the n8n workflow and toggle it to 'Active' to enable the scheduled 6:00 AM run or the manual form trigger via its webhook URL.

Node Details

Schedule Trigger / Form Trigger: These n8n trigger nodes are the starting points. The Schedule trigger runs daily at 6:00 AM, while the Form trigger allows manual, immediate execution via a web form interface.
TechRadar News (HTTP Request): Fetches the raw RSS feed XML data from TechRadar.
Parse HTML (Code n8n node): Contains custom JavaScript to parse the retrieved XML into a usable JSON array of news items, essential for handling the non-standard RSS structure.
Decide which News to Choose (Gemini Chain LLM): This language model n8n node uses AI to perform initial content moderation, selecting the best topic index number for generation.
Gemini Generate (Google Gemini): The core content creation n8n node. It generates the specific, structured JSON required for the Post Nitro carousel based on the input article's title and description.
ImportSlides embedPost (PostNitro n8n node): Takes the structured JSON slides data and communicates with Post Nitro's API to render the PDF carousel, returning the download URL.
Download PDF (HTTP Request): Downloads the binary PDF data from the Post Nitro URL, storing it as binary data named my.pdf within the n8n flow.
Upload PDF / Get Upload URL (HTTP Request): A critical sequence of LinkedIn-specific HTTP Request n8n node calls necessary for securely uploading the document and obtaining the required document ID.
Gemini Generate1 (Google Gemini): Generates the human-friendly, engaging text commentary that will accompany the published carousel on LinkedIn.
Post to LinkedIn (HTTP Request): The final n8n node that executes the publication, combining the AI-generated commentary and the LinkedIn document ID.

Related n8n Workflows

Free

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

Automation Engineer | n8n + AI + MERN = 💥

Featured*