Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn
Needs changesNeeds 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 to replace before upgrading
| Removed in 3.0 | Replace 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)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - n8n Form Trigger
n8n-nodes-base.formTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - X (Formerly Twitter)
n8n-nodes-base.twitter - LinkedIn
n8n-nodes-base.linkedIn - Merge
n8n-nodes-base.merge - n8n Form
n8n-nodes-base.form - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Function
n8n-nodes-base.function - OpenAI
n8n-nodes-base.openAi - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack
What it does
💼 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 a title or trending posts. - 🗓️ Posting directly to LinkedIn and X (formerly Twitter). - 📊 Pulling high-performing LinkedIn posts to inspire new ideas. - ✍️ Saving AI-generated drafts to Google Sheets for review. - 🔔 Notifying your team on Slack when drafts are ready. Steps to set up: 1. Add your API keys for Google Gemini or OpenAI. 2. Set up your LinkedIn, X (Twitter), Google Sheets, and Slack credentials. 3. Customize prompt logic or post filters if needed. 4. Schedule the idea generation module or trigger it manually. 5. Start generating and posting consistent, high-quality content with zero manual effort!