The Twitter Tool is designed to streamline the process of accessing and managing Twitter data. Users can interact with tweets in a variety of ways directly through the app's functions.
Setup
Authorization
The Twitter Integration mimics browser-based login flow, requiring your Twitter credentials for secure interaction. Please initialize the app by providing your username and password.
npi auth twitter --username <twitter-username> --password <twitter-password>
Usage
npi app twitter "Find and summarize the latest tweet by @AtomSilverman discussing AI agents."
Supported Features
Posting Tweets
- Description: post a tweet.
- In-Context Parameters1:
- Content of the tweet.
Examples
-
Publishing a New Tweet
npi app twitter "Post a tweet about 'The answer to everything.'"
Retrieving Tweets
- Description: Fetch tweets from your timeline or specific accounts.
- In-Context Parameters:
- A brief description of the desired tweets.
Examples
-
Retrieve a Certain Amount of Tweets
npi app twitter "Find the latest 10 tweets by @AtomSilverman."
-
Summarize Specific Tweets
npi app twitter "Find and summarize the latest tweet by @AtomSilverman discussing AI agents."
Deleting Tweets
- Description: Erase your previously posted tweets.
- In-Context Parameters:
- Description of the tweet to delete.
Examples
-
Delete a Specific Tweet
npi app twitter "Delete my last tweet."
Searching Twitter
- Description: Look for specific tweets or users within the platform.
- In-Context Parameters:
- A brief description of the desired tweets or users.
Examples
-
Discover Similar Users for Networking Opportunities
npi app twitter "Identify researchers similar to @DrJimFan for potential follow."
Engaging with Tweets
- Description: Like or retweet content that you find interesting.
- In-Context Parameters:
- A brief description of the desired tweets.
Examples
-
Sharing a Tweet
npi app twitter "Support @npi-ai's latest tweet about their new project."
Commenting
- Description: Respond to tweets publicly.
- In-Context Parameters:
- A brief description of the desired tweets.
- Comment content.
Examples
-
Reply to a Tweet
npi app twitter "Respond to @elonmusk's latest tweet with a thoughtful comment."
Footnotes
Footnotes
-
In-Context Parameters refer to the special information that you may specify in the instructions. Parameters marked as Inferred could be deduced from the context without needing explicit mention. ↩