Templates / Generate social media posts with GPT-4 for LinkedIn, X, and Facebook

Generate social media posts with GPT-4 for LinkedIn, X, and Facebook

Ready for 3.0

by Oneclick AI Squad ✓ · 623 views · created 2026-02-24 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 16 nodes and runs on a schedule (cron 0 10 * * *). Along the way it connects Postgres. It also calls api.openai.com, api.linkedin.com and api.twitter.com over HTTP.

How it runs

Trigger: On a schedule (cron 0 10 * * *).

  1. Select content topic and type (Code): runs custom JavaScript code
  2. Generate content with OpenAI GPT- (HTTP Request): calls api.openai.com (POST)
  3. Parse AI response and extract content (Code): runs custom JavaScript code
  4. Optimize content for each platform (Code): runs custom JavaScript code
  5. Split content for each platform (Split Out): splits a list into separate items
  6. Route to appropriate platform (Switch): routes items into 3 branches
  7. Post to LinkedIn (HTTP Request): calls api.linkedin.com (POST)
  8. Post to Twitter/X (HTTP Request): calls api.twitter.com (POST)
  9. Post to Facebook (HTTP Request): calls graph.facebook.com (POST)
  10. Aggregate: combines items into one

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

Services it uses

Postgres

HTTP calls to: api.openai.com, api.linkedin.com, api.twitter.com, graph.facebook.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Automatically generates engaging marketing posts using OpenAI and publishes them across LinkedIn, Twitter (X), and Facebook. Creates platform-optimized content with hashtags, emojis, and proper formatting. How it works 1. Trigger — Runs daily at 10 AM or…

Excerpt from Oneclick AI Squad'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.