FlowRunner
Features Pricing
Theme
Start Free

New WordPress articles shared to social through xpost

Each new WordPress article gets one caption that fits every network's limits, takes the next free slot in your xpost queue, and the editor gets the preview in Slack.

The prompt

When we publish a new article on our WordPress site, share it through xpost to our X, LinkedIn, Threads, Bluesky and Pinterest accounts, with the article's featured image if it has one. Write one caption that fits every account's limits and ends with the link, and pick the best Pinterest board for it. Put the post in the next free slot of our posting queue. Then tell the editor in Slack which accounts it goes to and when, with the preview link, so they can change or pull it before then.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

Yes No Code Write the note for theeditor AI agent Write the caption Action Queue the post inxpost Starts the flow New articlepublished Action Add the image toxpost Action Tell the editor inSlack Condition Article has an image? Action Get the featuredimage Action Find the accountsto post to Code Gather the post Code Pick the accounts

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New article published Checks your WordPress site every 5 minutes for a newly published article.
  2. Find the accounts to post to Lists the connected accounts in your xpost project and keeps the ones on the networks you share articles to, skipping any account that needs a fresh sign-in.
  3. Add the image to xpost When the article has a featured image, takes it from WordPress, with its alt text, and adds it to the xpost media library.
  4. Write the caption An AI agent reads Get Posting Rules for each account and writes one caption that fits the tightest limit, with the link at the end, and picks the Pinterest board that fits.
  5. Queue the post in xpost Creates the post with the image in the next free slot of your posting queue. A project that holds posts for approval keeps it waiting there, and the same article is never posted twice.
  6. Tell the editor in Slack Sends the editor the accounts, the time it goes out in your project's time zone, the caption and the preview link. The editor can change or pull the post in xpost before its slot.

Before you turn it on

  • Enter your xpost API key, made in xpost under AI agent, Keys. Enter your WordPress site URL, username and an application password, and connect your Slack account.
  • Add your Anthropic key in the flow setting Anthropic key. Set the flow setting Networks to the networks your articles go to. It starts as x, linkedin, threads, bluesky, pinterest.
  • Set up the posting queue in your xpost project. Each article takes the next free slot.
  • Pick your Slack channel in Tell the editor in Slack. To share one category of articles only, pick it in New article published.