Templates / Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn

Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn

Needs changes

by Nurseflow · 5,823 views · created 2025-07-12 · Social Media, Multimodal AI

Needs changes. This template uses 3 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), Function (legacy), OpenAI (legacy). 3 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when someone submits an n8n form (“post”) (plus 1 other trigger). Along the way it connects Google Gemini Chat Model, X (Formerly Twitter), LinkedIn and Google Sheets and 1 more. It also calls api.apify.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“post”) (plus 1 other trigger).

  1. Generate AI Content (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; output parser: Format AI Output
  2. Fetch LinkedIn Posts (HTTP Request): calls api.apify.com
  3. Post to X (X (Formerly Twitter)): uses X (Formerly Twitter)
  4. Post to LinkedIn (LinkedIn): uses LinkedIn
  5. Filter High Engagement Posts (Function): runs custom JavaScript (legacy Function node)
  6. Append Linkedin And X Publishing Responses (Merge): merges the data from its input branches
  7. Generate Post Ideas (OpenAI) (OpenAI): uses OpenAI
  8. Show Confirmation (n8n Form): shows the next form page
  9. Save Drafts to Google Sheets (Google Sheets): append
  10. Notify Reviewer (Slack) (Slack): uses Slack

Services it uses

Google Gemini Chat ModelX (Formerly Twitter)LinkedInGoogle SheetsSlack

HTTP calls to: api.apify.com

Before you upgrade to n8n 3.0

3 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • AI Agent v1 (old agent modes) in Generate AI Content (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Function (legacy) in Filter High Engagement Posts: replace with Code node, mode 'Run Once for All Items'.
  • OpenAI (legacy) in Generate Post Ideas (OpenAI): replace with OpenAI node (AI section).
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Generate AI Content (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Function (legacy)
Filter High Engagement Posts
Code node, mode 'Run Once for All Items'
OpenAI (legacy)
Generate Post Ideas (OpenAI)
OpenAI node (AI section)

Nodes used (14)

From the author

💼 LinkedIn Content Machine – AI-Powered Post Generator & Scheduler for X and LinkedIn How it works: This end-to-end workflow automates your personal or brand content strategy by: - 🧠 Using Google Gemini or OpenAI to generate engaging LinkedIn/X content from…

Excerpt from Nurseflow's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.