Skip to main content

Generate and schedule LinkedIn posts with Google Sheets, OpenAI

Workflow preview

Workflow preview
100%
Generate and schedule LinkedIn posts with Google Sheets, OpenAI preview
Open on n8n.io

1. Workflow Overview

Who is this for? This workflow is designed for content creators, social media managers, digital marketers, and business owners who want to automate their LinkedIn content creation and publishing pr...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.agenttool, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by SpaGreen Creative.

Original n8n.io source

1.1 Workflow description

Title
Generate and schedule LinkedIn posts with Google Sheets, OpenAI
Workflow name
Generate and schedule LinkedIn posts with Google Sheets, OpenAI

Who is this for?

This workflow is designed for content creators, social media managers, digital marketers, and business owners who want to automate their LinkedIn content creation and publishing process. It's especially valuable for those who struggle with consistently creating engaging content or want to maintain a regular posting schedule without manual effort.

What this Workflow Does / Key Features

  • Automatically runs every 6 hours to generate and post LinkedIn content
  • Retrieves content topics from a Google Sheet that haven't been processed yet
  • Uses AI to research trending topics and create detailed content frameworks
  • Generates engaging LinkedIn post content based on those topics
  • Creates professional images to accompany posts using AI
  • Develops optimized hashtags to improve post visibility
  • Posts the complete content package to both LinkedIn profiles and company pages
  • Updates the Google Sheet to track which topics have been processed

Requirements

  • Google Sheets OAuth2 API credentials for accessing your content spreadsheet
  • LinkedIn OAuth2 API credentials for posting to profiles and pages
  • OpenAI API credentials for content generation and image creation
  • Google Gemini (PaLM) API credentials for AI processing
  • Mistral Cloud API credentials for trend analysis
  • A Google Sheet with specific columns: SL, Topic, Status, row_number

Workflow Components Explained

  • Schedule Trigger: Automatically starts the workflow every 6 hours
  • Get row(s) in sheet: Retrieves topics from your Google Sheet that haven't been processed
  • Loop Over Items: Processes topics one at a time to avoid overwhelming the system
  • Content topic generator: Creates detailed content topics with titles, rationale, and hooks
  • AI Agent Tool: Gathers trending topics from external sources
  • Content creator: Writes the actual LinkedIn post content based on the topic
  • OpenAI: Creates images to accompany the LinkedIn posts
  • SEO: Generates relevant hashtags for the LinkedIn posts
  • Merge: Combines the post content, image, and hashtags into a single package
  • LinkedIn page & LinkedIn profile: Posts the content to both a LinkedIn company page and personal profile
  • Update row in sheet: Marks the processed topic as "checked" in the Google Sheet

Support & Help

Support & Help

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Content creator

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 3 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 4 - Content topic generator

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 5 - AI Agent Tool

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 2.2

Block 6 - Topic

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 9 - SEO

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 10 - LinkedIn page

Type / Role
n8n-nodes-base.linkedIn - linkedIn
Config choices
Version 1

Block 11 - LinkedIn profile

Type / Role
n8n-nodes-base.linkedIn - linkedIn
Config choices
Version 1

Block 12 - HTTP (google trends)

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 13 - HTTP (taplio)

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 14 - HTTP (google trends)1

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 15 - Structured Output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 16 - Structured Output1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 17 - OpenAI Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 18 - OpenAI Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Update Status row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate and schedule LinkedIn posts with Google Sheets, OpenAI
Complexity advanced
Nodes 26
Categories Content Creation, Multimodal AI
Author SpaGreen Creative
Published 25 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13681/13681.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate and schedule LinkedIn posts with Google Sheets, OpenAI do?

Who is this for? This workflow is designed for content creators, social media managers, digital marketers, and business owners who want to automate their LinkedIn content creation and publishing pr...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.