FlowRunner
Features Pricing
Theme
Start Free

Failed xpost deliveries retried, or sent to the account owner

When a post fails on a network, xpost's receipt says why. Passing errors are retried on that network alone, and anything a person must fix goes to the account owner in Telegram.

The prompt

When xpost tells us a post failed on one of our accounts, read its delivery receipt to see which networks failed and why. If the reason is passing, like a rate limit or a timeout, retry just that delivery so the accounts that already have the post don't get a second copy. If a person has to fix it, like an expired login or a missing image, message whoever looks after our accounts in Telegram with the account, the network's reason and what to do.

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

The flow

Yes Repeats for each item Each passing failure Action Tell the accountowner in Telegram Starts the flow Post failed on anetwork Action Read the deliveryreceipt Condition Anything for theowner? AI agent Sort the failures

Inside the loop: Each passing failure

Action Retry thatdelivery

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. Post failed on a network Starts as soon as xpost reports a post that could not go out on at least one account after its own retries, a partly published post included.
  2. Read the delivery receipt Reads the post's receipt from xpost: one row per account, showing where it went out and the network's own reason where it did not.
  3. Sort the failures An AI agent sorts each failed delivery. A passing reason, such as a rate limit or a timeout, gets a retry. A login to renew, media the network requires or a policy refusal needs a person. When it is unsure, a person gets it.
  4. Retry that delivery Sends each passing failure again on its own network. Accounts where the post already went out are left alone, so nobody sees it twice.
  5. Tell the account owner in Telegram Anything a person has to fix goes to your Telegram chat: the account, the network's reason in plain words, what to do, and which deliveries were retried.

Before you turn it on

  • Enter your xpost API key, made in xpost under AI agent, Keys, and your Telegram bot token.
  • Add your Anthropic key in the flow setting Anthropic key, and put the chat ID of the person or group who looks after your accounts in the flow setting Telegram chat. Your bot must be a member of that chat.
  • Turning the flow on subscribes it to xpost's post failed event. There is no webhook to register by hand.