Repurpose your top tweet into a weekly LinkedIn post
Every Monday at 8am, find your best-performing tweet from the past week and publish it as a properly formatted LinkedIn post.
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.
Additional information
What does this prompt do?
- Picks your single best tweet from the last 7 days using a weighted score across likes, retweets, replies, and views.
- Pulls in the full thread when your top tweet is part of one, so the LinkedIn version reads as a complete idea.
- Rewrites the post in a LinkedIn-native voice with a hook line, paragraph breaks, professional tone, and a soft call to action.
- Publishes the rewritten post to your LinkedIn profile, or skips the week if nothing cleared your engagement floor and logs why.
What do I need to use this?
- A TwitterAPI.io account and API key so the agent can read tweets from your handle.
- A LinkedIn account connected with permission to publish posts on your behalf.
- Your Twitter handle and an engagement floor you are comfortable with (a minimum score below which the agent will skip posting that week).
How can I customize it?
- Change the cadence (e.g. twice a week, or every other Monday) or the time of day the post goes live.
- Tune the scoring weights or the minimum engagement floor so the agent is pickier or more lenient about what is worth reposting.
- Adjust the LinkedIn voice and structure (length, opening hook style, whether to end with a question, a CTA, or nothing).
Frequently asked questions
What happens if I did not post anything good last week?
Will it post a single tweet or a whole thread?
Does this work for any Twitter handle?
Will the LinkedIn post sound like a copy-pasted tweet?
Can I review the post before it publishes?
Stop letting your best tweets die on the timeline.
Connect TwitterAPI.io and LinkedIn once, and Geni quietly republishes your best idea of the week every Monday morning.