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.

Agentic Task
TwitterAPI.ioLinkedInMarketingContent Generation
PromptCreate

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.

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).

FAQs

What happens if I did not post anything good last week?
The agent compares your top tweet against a minimum engagement score you set. If nothing clears that floor, it skips publishing entirely and writes a short note in the run log explaining why, so you do not push out a weak post just to keep a streak.
Will it post a single tweet or a whole thread?
If your top tweet is part of a thread, the agent pulls the full thread first and uses all of it as source material. The final LinkedIn post is rewritten as one cohesive piece with paragraph breaks instead of numbered tweets.
Does this work for any Twitter handle?
Yes. You set the handle in the prompt, so you can run it for your own account, a founder you ghostwrite for, or a brand account. To repost to a different LinkedIn profile, connect that account during setup.
Will the LinkedIn post sound like a copy-pasted tweet?
No. The agent rewrites the content in a LinkedIn-native style: longer-form, paragraph breaks, professional tone, a hook line at the top, and a soft call to action at the end. The source idea is preserved, the format is not.
Can I review the post before it publishes?
By default this runs end-to-end on Monday morning. If you want a review step, tell the workflow author to send the draft to Slack or email for approval first and only publish after you confirm.

Related templates

Turn an X follower list into contacts you can actually email

Browse any handle's followers, pick the ones who fit, and reveal their email and social profiles without paying to enrich the whole list.

Datagma
TwitterAPI.io
HubSpot
+1
App
Turn newly published Eventbrite events into LinkedIn posts

Every morning we spot the events that just went live on Eventbrite, write a ready to publish LinkedIn post for each one, and drop the copy into Slack.

Eventbrite
LinkedIn
Slack Bot
Agentic Task
Turn every GetResponse newsletter into LinkedIn and X posts

Every newsletter you send gets rewritten into a LinkedIn post and an X thread, drafted for your approval in Slack before anything goes live.

GetResponse
LinkedIn
X (Twitter)
+1
Agentic Task
Turn new Vimeo uploads into SEO copy and a LinkedIn post

Every time you upload a video, get a search-friendly description, topic tags, and a LinkedIn post drafted for you and waiting for approval in Slack.

Vimeo
Slack
LinkedIn
Agentic Task
Post new WordPress articles to LinkedIn as branded Canva images

Every hour, turn each newly published blog post into an on-brand Canva graphic and share it on your LinkedIn company page with an AI-written caption.

Canva
WordPress
LinkedIn
Agentic Task
Twice-weekly LinkedIn thought-leader posts with matching AI illustrations

Every Tuesday and Thursday at 8:30am, publish a LinkedIn post in your voice paired with a custom AI illustration so your feed stops the scroll.

LinkedIn
fal.ai
Slack
Agentic Task

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.