Repurpose your top tweet into a weekly LinkedIn post

By General Input

Every Monday at 8am, find your best-performing tweet from the past week and publish it as a properly formatted LinkedIn post.

Integrations

  • TwitterAPI.io
  • LinkedIn

Type

Agentic Task

Categories

  • Marketing

Build me an agent workflow that repurposes my best tweet of the week into a LinkedIn post.

Trigger: cron, every Monday at 8am in my local timezone.

Inputs (configurable when I set up the workflow):

1. My Twitter handle (default to one I provide at setup).

2. A minimum engagement floor (default 200) that the top tweet must clear before posting.

3. Scoring weights, with these defaults: likes x1, retweets x2, replies x3, viewCount divided by 100.

Step 1. Call TwitterAPI.io Get User Last Tweets for my configured handle to retrieve my recent tweets. Filter the results to tweets posted in the last 7 days where isReply is false and that are not retweets. Discard the rest.

Step 2. Score each remaining tweet with: score = likeCount + 2 * retweetCount + 3 * replyCount + (viewCount / 100). Pick the single tweet with the highest score. Tiebreak on viewCount, then on createdAt (newer wins).

Step 3. If the top tweet's score is below the engagement floor, do not publish anything. Write a short note to the run log: which tweets were considered, what their scores were, and that this week was skipped because nothing cleared the floor. End the run.

Step 4. If the top tweet's conversationId is different from its id, or it looks like part of a thread, call TwitterAPI.io Get Tweet Thread Context for that tweet id and assemble the full thread in order (parents then the tweet then children). Otherwise just use the single tweet text.

Step 5. Rewrite the source content as a native LinkedIn post. Requirements for the rewrite:

- Start with a single strong hook line on its own line.

- Use short paragraphs with line breaks between them. No thread numbering like 1/, 2/, no slashes.

- Professional but human tone. Keep the original insight and any specific numbers or examples. Expand and explain where Twitter's character limit forced abbreviation.

- End with a soft call to action. Examples: a question to the reader, or an invitation to share their take. No hard sales pitch.

- Aim for roughly 800 to 1500 characters. Strip Twitter-style @handles and t.co links. Do not include hashtag spam, at most two hashtags if any. No em dashes anywhere in the output.

Step 6. Publish the rewritten content to my LinkedIn profile using LinkedIn Create Post as a text-only post visible to anyone. Do not include the original tweet URL in the body.

Step 7. Write a run log entry with: the chosen tweet id and URL, its score and the breakdown of how the score was calculated, whether a thread was pulled in, the final LinkedIn post body, and the resulting LinkedIn post URN.

Why this is an agent rather than a code workflow: choosing which tweet is genuinely worth reposting, judging when a week is too weak to publish, and rewriting Twitter voice into LinkedIn voice all need judgement that a hard-coded script cannot reliably do.

Related prompts

Explore more prompts
Turn an X follower list into contacts you can actually emailTurn newly published Eventbrite events into LinkedIn postsTurn every GetResponse newsletter into LinkedIn and X postsTurn new Vimeo uploads into SEO copy and a LinkedIn postPost new WordPress articles to LinkedIn as branded Canva imagesTwice-weekly LinkedIn thought-leader posts with matching AI illustrationsWeekly branded LinkedIn tip cards from a Google SheetAuto-share new beehiiv posts to LinkedIn and SlackWeekly LinkedIn drafts for new papers from your labTurn new Wistia videos into LinkedIn posts every morning