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.
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 does this prompt do?
- 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 do I need to use this?
- 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 can I 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.
FAQs
Will it re-post articles I update later, or only brand-new ones?
Does it pick the exact time the social posts go out?
What if a post doesn't have a featured image?
Can I review or rewrite the captions before they go live?
How do I stop cross-posting to one of the channels?
Related templates
Work every partner tier decision from one board, with the revenue and commission numbers, clear promotion thresholds, and AI review briefs.
Open one board at month end to find every closed deal missing a commission, every commission with no deal behind it, and every amount that does not add up.
See warmup status, daily send volume, and bounce risk for every sending account in one grid, with the riskiest mailboxes floating to the top.
Review Introw partner payouts line by line, approve them from one board, raise the matching bill in Xero, and post every approval to Slack.
See every access, purchase and leave request waiting on your decision in one screen, approve or decline in place, and send the reason back to the requester.
See every published recipe, whether it has a live Instacart shopping link, and how many days before that link dies, then renew a whole batch in one pass.
Stop manually cross-posting every article you publish.
Connect WordPress, Buffer, and Slack once. Geni checks every 15 minutes and queues platform-tailored posts the moment a new article goes live.