Auto-share new WordPress posts to X and LinkedIn via Buffer
Every 15 minutes, find newly published WordPress articles and queue tailored X and LinkedIn posts in Buffer, with a Slack recap for your team.
Integrations
WordPress
Buffer
Slack
Type
Categories
- Marketing
Build me an agent workflow that automatically cross-posts any newly published WordPress article to my social channels via Buffer.
Trigger: cron, every 15 minutes.
On each run, do the following:
1. Call WordPress List Posts filtered by status=publish, with a modified-after filter set to the last successful run time (default to one hour ago on the very first run). Use this to find articles that have just gone live or were recently updated.
2. For each candidate post, call Buffer List Posts and check whether the article's canonical URL already appears in any queued, sent, or draft Buffer post across the target channels. If it does, skip the post so we never duplicate a share.
3. For each remaining new post, read the title, excerpt, featured image URL, and canonical link. Then draft platform-tailored teaser copy: a hook-style version for X under 280 characters including the URL, and a longer story-led version for LinkedIn with a clear takeaway, also ending with the URL.
4. Call Buffer Create Post once per target channel (X and LinkedIn by default) using share mode = queue, so Buffer schedules each one at the channel's next queue slot. Attach the featured image when one is present.
5. Once everything is queued, call Slack Send a Message to a configured Slack channel with a short 'Live and queued' summary that lists each article title, which channels it was queued to, the scheduled Buffer time if available, and a link back to view it in Buffer.
Integrations: wordpress, buffer, slack.
Configuration the user should supply: the Slack channel for recaps, the Buffer organization to use, and which Buffer channels to target (default to X and LinkedIn). Persist the last successful run timestamp so subsequent runs only pick up articles published since then.
What it does
- Watches your WordPress site for newly published articles, checking every 15 minutes.
- Drafts a hook-style X post under 280 characters and a longer, story-led LinkedIn post, each ending with the article link.
- Queues both posts in Buffer so they go out at the optimal times you've already set for each channel.
- Drops a short 'Live and queued' recap in your marketing Slack channel so the team can see what shipped.
What you’ll need
- A WordPress site you can connect with an application password.
- A Buffer account with X and LinkedIn channels already connected.
- A Slack workspace and the channel where you want the recaps posted.
How to customize it
- Change which Slack channel the recap is posted to.
- Add more Buffer channels (Facebook, Instagram, Threads, Bluesky) by listing them in the prompt.
- Narrow the filter to a specific WordPress category, author, or tag so only some posts get cross-shared.
Use cases
- Content Generation
- Notifications & Alerts