n8n

How to Automate WordPress Social Publishing?

Turn blog posts into social updates in a few clicks. Marketing teams can pull a WordPress post, generate platform ready captions and images, and publish to X, Facebook, LinkedIn, and Instagram from one place.

The run starts on a manual test. It reads a Google Sheets row to grab a WordPress Post ID, then fetches the post content. An OpenRouter model builds four captions using a structured format so each network gets the right text. OpenAI creates images in two sizes, one for Instagram and one wide format for Facebook and LinkedIn. The workflow then posts to each platform through their APIs and writes an x back to the Google Sheet to confirm success per channel.

You will need valid API access for each network, plus keys for OpenRouter and OpenAI, and a WordPress connection. Keep a simple control sheet with the Post ID so non technical users can trigger new runs. Expect a big time win by cutting multi channel posting from hours to minutes. Great for blogs, content hubs, and teams that repurpose articles into social content at scale.

What are the key features?

  • Manual run with a Google Sheets control row to select the WordPress Post ID.
  • WordPress post fetch pulls title and content for accurate context.
  • OpenRouter chat model creates four platform specific captions in a structured format.
  • Structured output parser enforces fields for twitter, facebook, linkedin, and instagram.
  • OpenAI image generation builds square images for Instagram and wide images for Facebook and LinkedIn.
  • Direct posting to X, LinkedIn, Facebook, and Instagram using their APIs.
  • Write back success markers to Google Sheets per channel for easy tracking.
  • Editable Social Media Manager prompt to control tone, hashtags, and calls to action.

What are the benefits?

  • Reduce cross posting work from 2 hours to 10 minutes
  • Automate 80 percent of caption writing with AI
  • Publish to four networks from one WordPress source
  • Improve consistency by using one approved post as input
  • Cut copy paste errors by 90 percent with structured output
  • Track results in Google Sheets with clear success flags
  • Scale to dozens of posts per week without adding headcount

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Sheets, WordPress, OpenRouter, OpenAI, X, LinkedIn, Facebook and Instagram. See the Tools Required section above for links to create accounts with these services.
  3. In Google Sheets, create a sheet with columns POST ID, TWITTER, FACEBOOK, LINKEDIN, INSTAGRAM. Add the WordPress Post ID in the POST ID column for the row you want to publish. Leave the other columns blank so the workflow can mark them with an x after posting.
  4. In the n8n credentials manager, open the Google Sheets credential and connect with OAuth2. Make sure the workflow Google Sheets nodes point to your sheet and to the correct tab. Keep returnFirstMatch enabled so the row is found quickly.
  5. Open the WordPress Get Post node. Create a new WordPress credential and enter your site URL and login method. If you use an application password, paste the username and application password. Test the connection.
  6. Open the OpenRouter Chat Model node. Create a new OpenRouter credential and paste your API key from your OpenRouter account. Save and test.
  7. Open each OpenAI image node. Create an OpenAI API Key credential from your OpenAI account and select it. Leave the sizes as provided to match each platform.
  8. Open the X publish node. Create an OAuth2 credential for X and grant permission to post. Select the target account. Run a quick test post on a private account if possible.
  9. Open the LinkedIn node. Create an OAuth2 credential, choose your user or organization, and grant write shares permission. Confirm the connection by pulling your profile or organization ID.
  10. Open the Facebook and Instagram nodes. Use Facebook Graph API OAuth2 with a Page that is linked to an Instagram Business account. Grant pages manage posts and instagram content publish permissions. Verify the Page and Instagram account IDs are set.
  11. Open the Social Media Manager node to review the tone and rules. Adjust hashtags, mentions, and length limits if needed. The structured parser will still return the correct fields.
  12. Click Test workflow. Check that images are created, posts appear on each network, and the Google Sheet updates with an x in the X, FACEBOOK, LINKEDIN, and INSTAGRAM columns. If a post fails, review permissions and confirm the WordPress Post ID is valid.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Facebook

Sign up

Free: $0 (no API usage fees; subject to rate limits)

Google Sheets

Sign up

Free: $0 (Google Sheets API usage has no additional cost; quota limits apply)

Instagram

Sign up

Free: $0 (no published pricing; API access available at no charge, subject to rate limits)

LinkedIn

Sign up

Self-serve developer products (e.g., Sign In with LinkedIn, Share on LinkedIn): $0; Partner/Marketing APIs require approval and have no public pricing.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

OpenRouter

Sign up

Free models: $0 via API, 20 requests/min; 50/day or 1000/day with ≥10 credits

WordPress

Sign up

Free plan: $0 / mo (WordPress.com REST API supports creating posts)

Free tier: $0 / mo, 1000 API calls per workspace / mo

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.