Templates / ✨🩷Automated social media content publishing factory + system prompt composition

✨🩷Automated social media content publishing factory + system prompt composition

Needs changes

by Joseph LePage ✓ · 79,654 views · created 2025-03-11 · Social Media, Multimodal AI

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), SerpApi (Google Search). 2 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. 🤖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
  2. Social Media System Prompt (Google Docs): get
  3. Social Media Schema (Google Docs): get
  4. Merge: merges the data from its input branches
  5. File Id (Edit Fields (Set)): sets 1 field: output
  6. System Prompt (Edit Fields (Set)): sets 2 fields: system_prompt_doc_id, system_prompt
  7. Schema (Edit Fields (Set)): sets 2 fields: schema, platform
  8. Compose Prompt & Schema (Edit Fields (Set)): sets 7 fields: route, user_prompt, system_config.system…
  9. Get Social Post from Google Drive (Google Drive): download
  10. Parse System Prompt (Code): runs custom JavaScript code

…plus 31 more steps. See the full node list below.

Services it uses

GmailGoogle DocsOpenAI Chat ModelX (Formerly Twitter)Facebook Graph APILinkedInGoogle DriveTelegramSerpApi (Google Search)

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.0Replace 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)

From the author

Social Media Content Publishing Factory for Streamlined Content Creation Across Platforms Who is this for? This workflow is designed for content creators, social media managers, and marketing teams who need to efficiently create and publish content across…

Excerpt from Joseph LePage's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.