Generate and schedule LinkedIn, X, and Instagram posts with OpenAI agents
Needs changesWhat this workflow does
This AI workflow has 26 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model. It also calls api.openai.com, api.linkedin.com and api.twitter.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Normalize Input (Edit Fields (Set)): sets 6 fields: topic, industry, targetAudience…
- Agent 1 - Trend Research AI (AI Agent): runs an AI agent, with model: OpenAI - Agent 1 Model
- JS - Parse & Validate Trend Report (Code): runs custom JavaScript code
- Wait: pauses before continuing
- Agent 2 - Content Generation AI (AI Agent): runs an AI agent, with model: OpenAI - Agent 2 Model
- JS - Parse & Validate Content Bundle (Code): runs custom JavaScript code
- Gate - Content Generation Succeeded? (Filter): keeps only the items that match a condition
- DALL-E - Generate LinkedIn Image (HTTP Request): calls api.openai.com (POST)
- DALL-E - Generate Twitter Image (HTTP Request): calls api.openai.com (POST)
- DALL-E - Generate Instagram Image (HTTP Request): calls api.openai.com (POST)
…plus 12 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Facebook + Google Sheets templates (127) · Other OpenAI + Facebook templates (107)
HTTP calls to: api.openai.com, api.linkedin.com, api.twitter.com, sheets.googleapis.com, api.sendgrid.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Agent 1 - Trend Research AI (v1.6), Agent 2 - Content Generation AI (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| 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
From the author
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…