Templates / Generate and publish LinkedIn posts with OpenAI, Gmail, and Google Sheets

Generate and publish LinkedIn posts with OpenAI, Gmail, and Google Sheets

Ready for 3.0

by Dr. Firas ✓ · 109 views · created 2026-07-28 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 24 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Google Sheets, Gmail and LinkedIn.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Configuration (Edit Fields (Set)): sets 10 fields: niche, audience, num_ideas…
  2. Extract Reply Number & Correlation ID (Edit Fields (Set)): sets 3 fields: correlationId, selectedNumber, replierEmail
  3. Generate LinkedIn Post Ideas (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Ideas Output Parser
  4. Get Row by Correlation ID (Google Sheets): uses Google Sheets
  5. Prepare Ideas Email & Log Data (Edit Fields (Set)): sets 12 fields: correlationId, niche, audience…
  6. Route by Approval Stage (Switch): routes items into 2 branches
  7. Log Idea Batch to Tracking Sheet (Google Sheets): append
  8. Prepare Draft Request (Edit Fields (Set)): sets 9 fields: correlationId, niche, audience…
  9. Select Final Draft to Publish (Edit Fields (Set)): sets 6 fields: correlationId, selectedTopic, finalPost…
  10. Email Ideas for Approval (Gmail): uses Gmail

…plus 7 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelGoogle SheetsGmailLinkedIn

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (11)

From the author

Quick overview This workflow generates LinkedIn post ideas and drafts with OpenAI, routes approvals through Gmail replies, tracks each content cycle in Google Sheets, and publishes the selected draft to LinkedIn as a person or organization. How it works 1.…

Excerpt from Dr. Firas'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.