πŸ“± Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents

⚑ 378 views Β· πŸ“± Social Media & Email Marketing

πŸ’‘ Pro Tip β€” Heads up β€” if this workflow’s Instagram scraping breaks (it happens whenever Meta updates their frontend), ScraperNode is a community node that handles profiles, posts, reels, and comments without any HTML parsing.

View All Scrapers

Description

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

πŸ”— Nodes Used

HTTP Request, Webhook, Schedule Trigger, Filter, AI Agent, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup