Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Agent 1 - Trend Research AI (v1.6), Agent 2 - Content Generation AI (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Wait
n8n-nodes-base.wait - Filter
n8n-nodes-base.filter - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
What it does
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 YOURSHEETID placeholder in the Google Sheet node 4. Replace YOURINSTAGRAMACCOUNTID, YOURLINKEDINPERSONURN 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