Skip to main content

Automate LinkedIn content creation with OpenAI, Google Sheets & LinkedIn API

Workflow preview

Workflow preview
100%
Automate LinkedIn content creation with OpenAI, Google Sheets & LinkedIn API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Build a completely automated LinkedIn content engine using n8n, OpenAI, Google Sheets, and the LinkedIn API. This workflow reads unpublished topics from a Google Sheet, generates engaging AI powere...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.merge, n8n-nodes-base.linkedin, n8n-nodes-base.splitout, @n8n/n8n-nodes-langchain.openai, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Muhammad Qaisar Mehmood.

Original n8n.io source

1.1 Workflow description

Title
Automate LinkedIn content creation with OpenAI, Google Sheets & LinkedIn API
Workflow name
Automate LinkedIn content creation with OpenAI, Google Sheets & LinkedIn API

Build a completely automated LinkedIn content engine using n8n, OpenAI, Google Sheets, and the LinkedIn API. This workflow reads unpublished topics from a Google Sheet, generates engaging AI-powered post content and a relevant image, and publishes directly to LinkedIn — no manual effort required.

How It Works

  1. This system uses a scheduled trigger (e.g., daily at 9 AM) to:
  2. Fetch the first Unpublished topic from your Google Sheet.
  3. Generate a compelling, SEO-optimized post description using OpenAI.
  4. Create a marketing image that includes the topic title visually.
  5. Merge the content and image.
  6. Publish the post to your LinkedIn profile.
  7. Update the sheet to mark the topic as Published.

Prerequisites

1.A Google Sheet with two columns: Topics and Status 2.A verified LinkedIn developer account and app 3.OpenAI API key 4.n8n cloud or self-hosted instance 5.LinkedIn OAuth2 credentials in n8n 6.Google Sheets OAuth2 credentials in n8n

Google Sheet Example

Topics Status
How to Automate LinkedIn Unpublished
Top AI Tools for Marketers Unpublished

Step-by-Step Setup

  1. Clone or import the provided n8n workflow.
  2. Create a Google Sheet with your post topics and mark them as Unpublished
  3. Set up OAuth2 credentials in n8n for Google Sheets and LinkedIn.
  4. Use the Schedule Trigger node to control posting frequency.
  5. Adjust the OpenAI prompt to better match your tone.
  6. Add a test topic and verify it generates, posts, and updates correctly.

Customization Tips

  1. Change posting frequency (daily/hourly) in the Schedule Trigger.
  2. Modify the OpenAI prompt for different tones (professional, fun, educational).
  3. Use a different image generation model or remove image generation if not needed.
  4. Add approval steps before publishing, using Telegram/Slack/email nodes.

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 - Structured Output Parser

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

Block 2 - Get row(s) in sheet1

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

Block 3 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 4 - Merge

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

Block 5 - Create a post

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

Block 6 - Split Row

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

Block 7 - Generate Image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 8 - OpenAI Chat Model

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

Block 9 - AI Agent

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

Block 10 - Schedule Trigger1

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

Block 11 - Mark as Published

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

Block 12 - Sticky Note

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

Block 13 - Sticky Note1

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note5

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

Block 17 - Sticky Note6

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

Block 18 - Sticky Note7

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

3. Summary Table

Workflow Automate LinkedIn content creation with OpenAI, Google Sheets & LinkedIn API
Complexity advanced
Nodes 18
Categories Social Media, Multimodal AI
Author Muhammad Qaisar Mehmood
Published 19 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6182/6182.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 Automate LinkedIn content creation with OpenAI, Google Sheets & LinkedIn API do?

Build a completely automated LinkedIn content engine using n8n, OpenAI, Google Sheets, and the LinkedIn API. This workflow reads unpublished topics from a Google Sheet, generates engaging AI powere...

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 Social Media, Multimodal AI use case.