> ## Documentation Index
> Fetch the complete documentation index at: https://docs.architect.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Twitter/X

> The Twitter/X tool transforms your AI agents into autonomous social media managers and social listening platforms. By integrating Twitter/X into Architect, your apps can autonomously craft viral threads, monitor brand mentions, analyze sentiment, and engage with your audience.

## Why Use Twitter/X in Architect?

Managing a brand's social presence requires constant vigilance and content creation. With vibe coding, you can describe your ideal social media strategy, and your agent will execute it. Whether it's repurposing long-form content into engaging tweets, acting as a frontline support agent, or tracking industry trends, the Twitter/X tool puts your social strategy on autopilot.

* **Automated Thread Generation:** Have your agent read a newly published blog post and instantly distill it into an engaging 5-part Twitter thread.
* **Intelligent Social Listening:** Build apps that monitor the timeline for your brand name, analyze whether the sentiment is positive or negative, and flag urgent issues.
* **Autonomous Engagement:** Create bots that reply to common customer support queries on Twitter immediately, providing helpful links without human intervention.

## Vibe Coding Examples

Try these natural language prompts to build powerful social media agents:

<CardGroup cols={1}>
  <Card title="Example 1: The Content Repurposer">
    "Build a social media app. When I input a YouTube video transcript, extract the 3 most interesting quotes. Use the Twitter/X tool to draft three distinct tweets based on those quotes, complete with relevant hashtags, and post them."
  </Card>

  <Card title="Example 2: Sentiment Alert Bot">
    "Create a brand monitoring agent. Use the Twitter/X tool to fetch the last 50 tweets mentioning our company. Analyze the overall sentiment. If more than 20% of the tweets are highly negative, immediately alert the PR team."
  </Card>

  <Card title="Example 3: Trend Summarizer">
    "I want an industry research bot. Every Friday, use the Twitter/X tool to search for the hashtag #ArtificialIntelligence. Read the top 20 most engaged tweets and generate a summary report of what the community is talking about this week."
  </Card>
</CardGroup>

<Tip>
  Vibe code an entire PR pipeline! Prompt your agent to use the Twitter/X tool to spot a customer complaint, use Linear to file a bug report, and use Slack to alert the engineering team!
</Tip>

## Available Actions

The Twitter/X tool exposes the following actions to your agents. Architect automatically picks the right one based on your prompt.

<Accordion title="View all 72 Twitter/X actions" icon="list">
  * `TWITTER_ADD_A_LIST_MEMBER`
  * `TWITTER_ADD_POST_TO_BOOKMARKS`
  * `TWITTER_BOOKMARKS_BY_USER`
  * `TWITTER_CREATE_A_NEW_DM_CONVERSATION`
  * `TWITTER_CREATE_COMPLIANCE_JOB_REQUEST`
  * `TWITTER_CREATE_LIST`
  * `TWITTER_CREATION_OF_A_POST`
  * `TWITTER_DELETE_DM`
  * `TWITTER_DELETE_LIST`
  * `TWITTER_FETCH_LIST_MEMBERS_BY_ID`
  * `TWITTER_FETCH_SPACE_TICKET_BUYERS_LIST`
  * `TWITTER_FOLLOW_A_LIST`
  * `TWITTER_FOLLOWERS_BY_USER_ID`
  * `TWITTER_FOLLOWING_BY_USER_ID`
  * `TWITTER_FOLLOW_USER`
  * `TWITTER_FULL_ARCHIVE_SEARCH`
  * `TWITTER_FULL_ARCHIVE_SEARCH_COUNTS`
  * `TWITTER_GET_A_USER_S_LIST_MEMBERSHIPS`
  * `TWITTER_GET_A_USER_S_OWNED_LISTS`
  * `TWITTER_GET_A_USER_S_PINNED_LISTS`
  * `TWITTER_GET_BLOCKED_USERS`
  * `TWITTER_GET_DM_EVENTS_BY_ID`
  * `TWITTER_GET_DM_EVENTS_FOR_A_DM_CONVERSATION`
  * `TWITTER_GET_LIST_FOLLOWERS`
  * `TWITTER_GET_MUTED_USERS`
  * `TWITTER_GET_POST_RETWEETERS_ACTION`
  * `TWITTER_GET_RECENT_DM_EVENTS`
  * `TWITTER_GET_USER_S_FOLLOWED_LISTS`
  * `TWITTER_HIDE_REPLIES`
  * `TWITTER_LIST_LOOKUP_BY_LIST_ID`
  * `TWITTER_LIST_POST_LIKERS`
  * `TWITTER_LIST_POSTS_TIMELINE_BY_LIST_ID`
  * `TWITTER_MUTE_USER_BY_USER_ID`
  * `TWITTER_PIN_A_LIST`
  * `TWITTER_POST_DELETE_BY_POST_ID`
  * `TWITTER_POST_LOOKUP_BY_POST_ID`
  * `TWITTER_POST_LOOKUP_BY_POST_IDS`
  * `TWITTER_POSTS_LABEL_STREAM`
  * `TWITTER_POST_USAGE`
  * `TWITTER_RECENT_SEARCH`
  * `TWITTER_RECENT_SEARCH_COUNTS`
  * `TWITTER_REMOVE_A_BOOKMARKED_POST`
  * `TWITTER_REMOVE_A_LIST_MEMBER`
  * `TWITTER_RETRIEVE_COMPLIANCE_JOB_BY_ID`
  * `TWITTER_RETRIEVE_COMPLIANCE_JOBS`
  * `TWITTER_RETRIEVE_DM_CONVERSATION_EVENTS`
  * `TWITTER_RETRIEVE_POSTS_FROM_A_SPACE`
  * `TWITTER_RETRIEVE_POSTS_THAT_QUOTE_A_POST`
  * `TWITTER_RETRIEVE_POSTS_THAT_REPOST_A_POST`
  * `TWITTER_RETURNS_POST_OBJECTS_LIKED_BY_THE_PROVIDED_USER_ID`
  * `TWITTER_RETURNS_THE_OPEN_API_SPECIFICATION_DOCUMENT`
  * `TWITTER_RETWEET_POST`
  * `TWITTER_SEARCH_FOR_SPACES`
  * `TWITTER_SEND_A_NEW_MESSAGE_TO_A_DM_CONVERSATION`
  * `TWITTER_SEND_A_NEW_MESSAGE_TO_A_USER`
  * `TWITTER_SPACE_LOOKUP_BY_SPACE_ID`
  * `TWITTER_SPACE_LOOKUP_BY_THEIR_CREATORS`
  * `TWITTER_SPACE_LOOKUP_UP_SPACE_IDS`
  * `TWITTER_UNFOLLOW_A_LIST`
  * `TWITTER_UNFOLLOW_USER`
  * `TWITTER_UNLIKE_POST`
  * `TWITTER_UNMUTE_USER_BY_USER_ID`
  * `TWITTER_UNPIN_A_LIST`
  * `TWITTER_UNRETWEET_POST`
  * `TWITTER_UPDATE_LIST`
  * `TWITTER_USER_HOME_TIMELINE_BY_USER_ID`
  * `TWITTER_USER_LIKE_POST`
  * `TWITTER_USER_LOOKUP_BY_ID`
  * `TWITTER_USER_LOOKUP_BY_IDS`
  * `TWITTER_USER_LOOKUP_BY_USERNAME`
  * `TWITTER_USER_LOOKUP_BY_USERNAMES`
  * `TWITTER_USER_LOOKUP_ME`
</Accordion>
