Generate platform-optimized social media content across 6 platforms with GPT-4o
Needs changesWhat this workflow does
This AI workflow has 57 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Gmail, Google Docs, OpenAI Chat Model and X (Formerly Twitter) and 5 more. It also calls api.imgbb.com and graph.facebook.com over HTTP.
How it runs
Trigger: When a chat message arrives (plus 1 other trigger).
- 🤖Social Media Router Agent (AI Agent): runs an AI agent, with model: gpt-4o; 6 tools (Short, Facebook, LinkedIn, X-Twiter…); memory: Window Buffer Memory
- Social Media System Prompt (Google Docs): get
- Social Media Schema (Google Docs): get
- Merge: merges the data from its input branches
- File Id (Edit Fields (Set)): sets 1 field: output
- System Prompt (Edit Fields (Set)): sets 2 fields: system_prompt_doc_id, system_prompt
- Schema (Edit Fields (Set)): sets 2 fields: schema, platform
- Compose Prompt & Schema (Edit Fields (Set)): sets 7 fields: route, user_prompt, system_config.system…
- Get Social Post from Google Drive (Google Drive): download
- Parse System Prompt (Code): runs custom JavaScript code
…plus 31 more steps. See the full node list below.
Services it uses
HTTP calls to: api.imgbb.com, graph.facebook.com
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- AI Agent v1 (old agent modes) in Social Media Content Creator (v1.7), Prepare Email Contents (v1.7), 🤖Social Media Router Agent (v1.7)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- SerpApi (Google Search) in SerpAPI: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Social Media Content Creator (v1.7), Prepare Email Contents (v1.7), 🤖Social Media Router Agent (v1.7), Prepare Social Media Email Contents (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| SerpApi (Google Search) SerpAPI | No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node |
Nodes used (22)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Google Docs
n8n-nodes-base.googleDocs - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - X (Formerly Twitter)
n8n-nodes-base.twitter - Facebook Graph API
n8n-nodes-base.facebookGraphApi - LinkedIn
n8n-nodes-base.linkedIn - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Merge
n8n-nodes-base.merge - Google Drive
n8n-nodes-base.googleDrive - Telegram
n8n-nodes-base.telegram - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - No Operation, do nothing
n8n-nodes-base.noOp - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi
From the author
Who’s it for This workflow is ideal for marketers, content creators, agencies, and small businesses that want to streamline the process of creating and publishing platform-optimized posts across multiple social media channels. How it works / What it does From…