Skip to main content

Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents

Workflow preview

Workflow preview
100%
Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents preview
Open on n8n.io

1. Workflow Overview

This workflow orchestrates three specialized AI agents in sequence to research trends, generate platform specific content (captions + images), and schedule posts across LinkedIn, X (Twitter), and I...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.code, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents
Workflow name
Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents

This workflow orchestrates three specialized AI agents in sequence to research trends, generate platform-specific content (captions + images), and schedule posts across LinkedIn, X (Twitter), and Instagram.

Who's it for

• Social media managers handling multiple brands • Marketing teams needing consistent content pipelines • Creators automating their content calendar • Agencies managing high-volume posting schedules

How it works

  1. A topic/industry keyword is submitted via webhook or schedule
  2. Agent 1 (Research): Searches current trends, extracts insights & hashtags
  3. Agent 2 (Content Gen): Produces platform-specific captions + image prompts
  4. Agent 3 (Scheduling): Posts to LinkedIn, X, and Instagram via their APIs
  5. All activity is logged to a Google Sheet tracker

How to set up

  1. Import this workflow into n8n
  2. Set credentials: OpenAI, LinkedIn OAuth2, Twitter OAuth2, Instagram Graph API, Google Sheets OAuth2, SendGrid (optional alerts)
  3. Replace YOUR_SHEET_ID placeholder in the Google Sheet node
  4. Replace YOUR_INSTAGRAM_ACCOUNT_ID, YOUR_LINKEDIN_PERSON_URN placeholders
  5. Activate the workflow

Requirements

• OpenAI API key (GPT-4.1 mini or better) • LinkedIn OAuth2 credentials • Twitter/X OAuth2 credentials • Instagram Graph API credentials (Business account) • Google Sheets OAuth2 • Optional: Stable Diffusion / DALL-E for image generation

How to customize

• Swap OpenAI model in all AI nodes • Adjust character limits per platform in Agent 2 prompt • Modify posting schedule in the Schedule Trigger node • Add Slack/email notifications on post confirmation • Extend the Google Sheet columns for additional metadata

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 - Sticky Note - Overview

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

Block 2 - Sticky Note - Section 1

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

Block 3 - Sticky Note - Section 2

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

Block 4 - Sticky Note - Section 3

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

Block 5 - Sticky Note - Section 4

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

Block 6 - Webhook - Content Request

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1.1

Block 7 - Schedule Trigger - Content Calendar

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

Block 8 - Normalize Input

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

Block 9 - Agent 1 - Trend Research AI

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

Block 10 - OpenAI - Agent 1 Model

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

Block 11 - JS - Parse & Validate Trend Report

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Wait - Rate Limit Agent 1

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

Block 13 - Agent 2 - Content Generation AI

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

Block 14 - OpenAI - Agent 2 Model

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

Block 15 - JS - Parse & Validate Content Bundle

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Gate - Content Generation Succeeded?

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 17 - DALL-E - Generate LinkedIn Image

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

Block 18 - DALL-E - Generate Twitter Image

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

Block 19 - DALL-E - Generate Instagram Image

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

Block 20 - JS - Merge Image URLs into Bundle

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Wait - Rate Limit Agent 2

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

Block 22 - Agent 3 - Post to LinkedIn

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

Block 23 - Agent 3 - Post to X (Twitter)

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

Block 24 - Agent 3 - Create Instagram Container

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

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

3. Summary Table

Workflow Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents
Complexity advanced
Nodes 31
Categories Social Media, Multimodal AI
Author Oneclick AI Squad
Published 20 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15162/15162.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, X, and Instagram posts with OpenAI agents do?

This workflow orchestrates three specialized AI agents in sequence to research trends, generate platform specific content (captions + images), and schedule posts across LinkedIn, X (Twitter), and I...

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.