The moment it happens
Turn long text into an X thread
Paste a long piece of writing and it goes out as a numbered thread.
- Runs
- The moment it happens
- Apps
- X
- AI
- Yes, uses the built-in AI allowance
- Access
- tweet.write
Send this to your assistant
Create a ClickRuntime automation: give me a link where I can paste long text. Split it into a thread of tweets under 280 characters, numbered 1/, 2/ and so on, and post it to X.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Threads on X reach more people than single posts, but turning an essay or a launch announcement into a thread is fiddly. You split paragraphs by hand, count characters, number the posts, and then post the first and reply to yourself one by one. It takes thirty minutes, and one mistake means redoing the chain.
When you send text to the trigger link, ClickRuntime's built-in AI splits it into parts that each fit within 280 characters, keeping the sense of the original. The first post is published, and every remaining part is posted as a reply to the previous one, forming a chained thread.
Writers and founders who draft in a notes app or a document and want a one-step way to publish use it frequently. What used to be a half hour of manual posting becomes one request, whether the text is a story or a launch note.
What you get out of it
Long ideas reach a bigger audience
A thread keeps readers on your content for longer and is more likely to be shared than a single post, which grows your reach from the same writing. Readers who stay through a thread are more likely to follow and reshare.
No character counting
The AI keeps each part under the limit and breaks at natural points, so you avoid awkward splits in the middle of a sentence or a number. Natural breaks make a thread read better than one cut at an arbitrary character count.
The thread is chained correctly
Each reply attaches to the previous post, so the sequence reads in order, instead of becoming a set of separate posts that readers have to piece together. Posts in the right order let readers follow the argument without hunting for the next part.
Publishing takes seconds
Sending text to a link replaces half an hour of manual posting, so a launch thread can go out as soon as the announcement is approved. Speed matters for announcements that are only useful for a few hours.
Works from any tool
Anything that can call the trigger link, such as a notes app shortcut or a form, can start a thread, so you can write wherever you prefer. That flexibility lets writers keep their usual tools and still publish on X.
How it works
What happens, step by step
When you send a long piece of text to the automation's private link, it starts.
AI splits the text into numbered parts that each fit within X's 280-character limit.
The first part is posted on your X account.
Each following part is posted as a reply to the one before, so they read as a single thread.
Before it runs live
- Connect X
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other X steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, http, credentials, ai
@on_event
def handle(event):
text = (event.json or {}).get("text", "")
parts = ai.generate(
"Split this text into a Twitter thread. Each part under 270 characters, keep the wording, "
"one part per line, no numbering.\n\n" + text[:8000],
max_output_tokens=1500,
).text.strip().splitlines()
parts = [p.strip() for p in parts if p.strip()]
auth = {"Authorization": "Bearer " + credentials.connection("x", "main")}
previous = None
for i, part in enumerate(parts, 1):
tweet = {"text": f"{i}/ {part}"[:280]}
if previous:
tweet["reply"] = {"in_reply_to_tweet_id": previous}
resp = http.post("https://api.x.com/2/tweets", headers=auth, json=tweet)
resp.raise_for_status()
previous = resp.json()["data"]["id"]
return {"tweets": len(parts)}FAQ
Common questions
How long can the input text be?
Can I review the split before it is posted?
Does it number the posts, like 1/7?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Post a tweet by sending text to a link
Send text and an optional image from any tool and it's posted on X, with the tweet URL sent back.
See how it worksPost a fresh tweet every few hours
Your account posts new tweets in your style on your topics, without repeating itself.
See how it worksTweet new articles from a news feed
New items from the feeds you follow are tweeted with a short line and link, each only once.
See how it worksKeep exploring
Set up “Turn long text into an X thread” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.