AI workflows

Twitter Bot Rules in 2026: What X Allows and Labels

Kalen · · 7 min read

Short answer: X allows bots that post their own content or answer people who asked for it, as long as the account follows X’s automation rules and uses the official API. X’s help center describes an automated account label that shows who runs the bot, and its rules ask automated accounts to stay connected to a human-run account. What X doesn’t allow is a bot that reaches out to strangers: unsolicited replies, @mentions, likes, follows and trend posts. Since February 2026 the API itself refuses most of those.

This guide covers the kinds of bots X allows, how the label works, what changed in the API, and how a personal scheduler differs from a bot.

What counts as a bot on X?

X uses “automated account” for an account whose actions a program performs through the X API. Common kinds:

  • Informational bots: weather, earthquake alerts, new blog posts, price changes, release notes.
  • Summoned bots: they answer when someone mentions them or replies to them, like a bot that turns a thread into a summary when tagged.
  • Personal schedulers: a person writes the posts and a tool publishes them at set times.

The first two are bots in X’s sense. The third is a person using a tool: the posts are theirs, written by them or approved by them. That difference matters for the label and for the rules below.

What is the automated account label?

As of November 2026, X’s help center has a page about automated account labels. In short:

  • The label tells readers an account is run by a program, not a person.
  • It appears under the account’s name and handle, and it names the human-run account that operates the bot (it reads “Automated by” and a handle).
  • X’s automation rules say bot accounts should display the label and stay connected to a human-run account.

Setting it up is done from the bot account’s settings, where you link the operator’s account. X’s help center describes the steps; since the menus move from time to time, check the current page before you start.

A personal account that uses a scheduler doesn’t need the label. You’re still the one posting.

Which bots does X allow?

From X’s automation rules and the twitter automation guide:

Bot behavior Allowed? Note
Posting its own content on a schedule Yes Informational and creative bots fit here
Replying to people who mentioned it Yes The person summoned it
Replying under its own posts Yes Self-threads and first replies work through the API
Replying to strangers by keyword No X’s rules give this as an example of what’s forbidden
@mentioning people who didn’t ask No Apps that did this had write access cut off
Auto likes No And since April 2026 self-serve API tiers can’t like at all
Auto follow or unfollow No Same, and both are spam signals
Posting about trending topics automatically No Treated as trend manipulation
Same text from many accounts No Duplicate content across accounts is spam

What did the X API change for bots in 2026?

Three changes, all from X’s developer docs and staff posts on the developer forum, as of November 2026:

  1. Replies need a summons. Since February 2026, apps on self-serve tiers can reply only when the original post mentioned or quoted the replying account. Other replies fail with a 403 error.
  2. Mentions are limited to people already in the conversation. X staff wrote that apps sending unsolicited mentions were muzzled.
  3. Likes, follows and quote posts were removed from the self-serve tiers on April 20, 2026. Quote posting is Enterprise only.

Every post is also paid. Through the API a post costs $0.015 and a post with a URL $0.20. A bot that posts 100 times a day pays for every one. X API pricing per post has the details.

How does X spot spammy bots?

X publishes its ranking code on GitHub (xai-org/x-algorithm). Two parts matter for bots:

  • Duplicate text. Rules in the code cluster near-identical posts and can label them COPYPASTA_SPAM. A bot posting slight variations of one template is the textbook case.
  • Reply spam. A Grok-based scorer rates replies from 0 to 3. Its prompt is withheld, but the code shows what it sees: the reply author’s followers, how many replies they posted in the last 24 hours, blocks received, and whether the reply was pasted.

Labeled posts are dropped from feeds by visibility filtering. On top of that, readers can mark a post “not interested”, mute or block, and in the published weights those count far more than a like counts in your favor. A bot that annoys people pays for it in reach.

How do you build a Twitter bot that stays within the rules?

  1. Use the official API. Create an app in the X developer console, pay per use, set a spend limit. Tools that log in with a password or drive a browser break X’s terms.
  2. Label the account as automated and connect your own account to it.
  3. Post only original, useful content. Vary it for real, not by swapping a word.
  4. Reply only when summoned, and give people a way to stop it.
  5. Space posts out. Each extra post by one author in the same feed counts for less in X’s ranking (1, then 0.63, then 0.44).
  6. Keep links in a first reply if you want to save on API cost, since the post with a URL is the expensive one (why the link goes in the first reply).

If you’d rather not run a bot at all, the X API guide explains what the API can do for a single account.

Is an AI that writes your posts a bot?

Not if you approve every post. A tool that drafts with AI and publishes only what you said yes to is closer to a scheduler than a bot. The account still speaks for you, and the posts are still yours to answer for.

Where it becomes a bot is when nobody reads the posts before they go out, or when the tool talks to other people on its own. That is the part to avoid on a personal account. Make AI tweets sound less generic covers the other risk: posts that read as machine-made even when a person approved them.

Where does Kalen fit?

Kalen is an X assistant inside Claude, ChatGPT, Claude Code, Codex and Cursor. He is built to stay on the scheduler side of the line:

  • Your AI writes, Kalen scores each draft, and nothing is scheduled until you confirm in the chat.
  • He publishes through the official X API, with an optional first reply for your link.
  • He never replies to strangers, never @mentions other accounts, and can’t like, follow or unfollow.
  • Replies to comments on your own posts go out only after you approve them, a few minutes apart (replies and inbox).

Kalen is one plan at $29/month with 600 credits (1 a post, 2 with a first reply or link), with a 7-day trial for $1 that includes the full credits. Read the docs for every tool.

FAQ

Are bots allowed on Twitter?

Yes, if they follow X’s automation rules: their own content, replies only to people who asked, the official API, and an automated label on the account.

How do I get the “Automated by” label on X?

From the bot account’s settings, where you connect the human-run account that operates it. X’s help center has the current steps.

Can a Twitter bot reply to any tweet?

No. Since February 2026, self-serve API apps can reply only when the post mentioned or quoted the bot’s account.

Can a bot like or follow accounts on X?

No. X’s rules forbid automated likes and follows, and those actions were removed from self-serve API tiers in April 2026.

How much does it cost to run a Twitter bot?

Through the pay-per-use API, as of November 2026, each post costs $0.015 and a post with a URL $0.20, plus any reads the bot makes.

Your X assistant, inside Claude.

Get started

More in AI workflows

Kalen $29/mo · 7 days for $1 See the plan

Contact support

We reply by email, usually within one business day.