Save hours of manual work with this ready-to-use n8n automation workflow that automatically shares your new WordPress blog posts across LinkedIn, Twitter (X), and Facebook — complete with AI-generated captions and a Slack notification summary.
When a new post is published on your WordPress site, this workflow kicks in to:
- Fetch full post data (title, link, excerpt).
- Use OpenAI (GPT-5-Nano) to craft optimized, platform-specific captions for each social network — professional for LinkedIn, catchy for Twitter, and engaging for Facebook.
- Automatically shorten URLs with Bitly for a clean and trackable link.
- Publish to LinkedIn, Twitter (X), and Facebook with smart randomized delays to avoid detection as bot activity.
- Send a Slack summary showing post title, short URL, and which platforms succeeded or failed.
Whether you’re a solo blogger, marketing agency, or content team, this workflow ensures your content reaches your audience faster — without manual effort. It’s designed with robust error handling, modular nodes, and delay logic so it works smoothly even on busy publishing days.
⚙️ Main Features
- 🔗 Trigger: Webhook from WordPress post publish or REST API
- 🧠 AI Caption Generator: Uses OpenAI’s GPT-5-Nano for LinkedIn, Twitter, and Facebook tone variants
- ✂️ Bitly Integration: Automatically shortens your post URL
- 💬 Multi-Platform Posting: Seamlessly shares to LinkedIn, Twitter (X), and Facebook
- ⏳ Smart Delays: Randomized posting intervals mimic natural posting behavior
- 🧾 Slack Notification: Instant summary of all post results and statuses
- 🧰 Error Handling: Each posting node has continueOnFail enabled and status tracking
- 💡 Customizable Prompts: Tailor the AI captions’ tone and creativity for your brand
🔧 What You’ll Need
- A WordPress site with REST API or webhook trigger enabled
- n8n account (self-hosted or Cloud)
- OpenAI API key
- Bitly API key
- Access tokens for LinkedIn, Twitter (X), and Facebook
- Slack Incoming Webhook URL
🏷️ Perfect For
- Content creators and bloggers who want to auto-share new posts
- Marketing teams looking to save hours on repetitive publishing tasks
- Agencies managing multiple client WordPress sites
- Social media managers seeking consistent cross-platform sharing
🔍 SEO Keywords
n8n WordPress automation, social media auto share, WordPress AI automation, n8n OpenAI workflow, LinkedIn auto post, Twitter automation, Facebook posting workflow, AI caption generator, Slack summary automation, Bitly URL shortener, WordPress marketing automation, GPT-powered social captions, n8n workflow templates
📘 Setup Guide
Setup Instructions
- 1. Import the JSON workflow
- Download the JSON file and import it into n8n.
- Review all nodes and connections to ensure proper naming.
- 2. Configure WordPress Node
- Set up your WordPress credentials using the REST API (Application Passwords plugin recommended).
- Select the “On New Post” trigger.
- 3. Configure the AI Caption Node
- Add your OpenAI API key under Credentials → OpenAI.
- Adjust the prompt to match your tone (e.g., witty, professional, or informative).
- 4. Configure Social Media Nodes
- Choose your target platforms and authenticate accounts (X, LinkedIn, or Facebook).
- Insert dynamic fields from the WordPress node for post title, link, and AI caption.
- 5. Set up Slack Notifications
- Connect your Slack account via OAuth or Bot Token.
- Define the channel (e.g., #marketing or #content-updates).
- 6. Test & Deploy
- Publish a test post on WordPress to confirm automation runs correctly.
- Check social media posts and Slack messages for confirmation.
Troubleshooting & Tips
- Post not triggering? Ensure your WordPress REST API and webhook URL are reachable.
- AI captions not generating? Verify your OpenAI credentials and model name.
- Social post failed? Check API permissions or token expiry.
- Add a delay node between actions if you post to multiple platforms simultaneously.
- Include an Error Workflow to handle failures automatically.
Expand the Automation
Enhance your system by:
- Adding a Notion or Airtable log for published posts.
- Sending weekly performance summaries via Gmail or Slack.
- Translating captions automatically for multilingual audiences.