Twitter

[WHAT] Complete X (Twitter) integration for social media automation [WHEN] Post/delete tweets, reply, quote, search tweets, manage engagement (like/unlike, retweet/unretweet, bookmark), follow/unfollow, mute/unmute, query user info/tweets/followers/following/likes, view home timeline, send/read DMs, account auth (check/bind/unbind/rebind)

ZhanlinCui 77b0642 34 files · 116.5 KB Updated

File contents

X (Twitter) Integration

Provides complete X (Twitter) social media automation through Composio.

Naming Rule (Must Follow)

  • When replying to users, always use X as the platform name.
  • Even if the user says "Twitter", do not say "Twitter" in your reply — rewrite it as X.
  • Only keep the original naming (e.g. twitter, TWITTER_*, tweet_*) in code identifiers, parameter names, script names, and API fields.

Tweet Language Rule (Must Follow)

For new tweets (not replies/quotes): Tweet language priority: user explicit request > memory tweet_language preference > English. If memory has no tweet_language yet, detect once from recent tweets (user_tweets_get.py --max 10) and save it to memory via Memory API. Subsequent calls use memory directly — do not re-detect.

For replies and quotes: Reply language priority: user explicit request > memory tweet_language / reply language preference > original tweet's language (from lang field) > English.

Quick Start

cd plugins/integrations/social-media/twitter && python scripts/<script>.py [arguments]

zhanlincui/tentacle.ai/tree/main/plugins/integrations/social-media/twitter commit 77b0642d9b

Frequently asked questions

npx skillmds@latest add zhanlincui/twitter