GENE-TWITTER
Search recent tweets, look up user profiles, fetch tweet details, retrieve a user's timeline, and send tweets — all from within your Feluda application.
GENE-TWITTER: Give Your AI a Live Connection to Twitter (X)
GENE-TWITTER connects your AI assistant and Feluda Flows directly to Twitter (X) using secure OAuth 2.0 user authentication. Search recent tweets, look up user profiles, fetch tweet details, retrieve a user's timeline, and send tweets — all from within your Feluda application. Whether you are tracking conversations, monitoring topics, automating social monitoring, or building a content pipeline that publishes to Twitter, GENE-TWITTER gives your AI the live access it needs.
What can I do with GENE-TWITTER enabled?
Once connected to your Twitter developer app, your AI can interact with Twitter in real time. It can search for recent tweets by keyword, resolve a Twitter username to a full profile, look up individual user accounts or specific tweets by ID, retrieve a user's latest tweets from their timeline, and post new tweets on your behalf. All activity is logged locally, so your AI always has history to work with — and everything runs directly from your Feluda application with no third-party relay.
What operations does GENE-TWITTER support?
GENE-TWITTER exposes a single, capable Twitter tool that covers the full range of everyday Twitter interactions. Every operation supports calling it with help to instantly receive a plain-language description of what it does, what parameters it accepts, and example uses — so your AI always knows exactly how to call it.
| Operation | What it does |
|---|---|
| help | Lists all available operations, parameters, settings, and secrets in a single readable response. Your AI calls this first whenever it needs a quick reference to how the tool works. |
| oauth_setup | Returns a complete step-by-step guide for creating your Twitter developer app and configuring OAuth 2.0. A new user can follow this guide from start to finish without leaving their Feluda application. |
| search | Searches recent tweets by keyword or phrase. Returns tweet IDs, text, timestamps, and author IDs. Ideal for topic monitoring, brand mention tracking, or pulling live discussion into your AI workflow. |
| resolve_username | Takes a Twitter username and returns the full account profile including the numeric user ID, display name, bio, follower counts, and public metrics. Also triggers OAuth authorization if this is your first use — a browser window will open once for you to consent. |
| user_by_id | Looks up a Twitter account by its numeric user ID and returns detailed profile information including creation date, profile image, follower and following counts, and verification status. |
| tweet_by_id | Retrieves a specific tweet by its ID, including the text, author, language, creation time, and engagement metrics. |
| user_tweets | Returns the most recent tweets from a specific user's timeline. You can provide either a numeric user ID or a username — if you provide a username, the tool resolves it to a user ID automatically before fetching the timeline. |
| send_tweet | Posts a new tweet on behalf of the authenticated user. Requires the posting permission to be explicitly enabled in gene settings — it is off by default, so your AI cannot post anything without your deliberate approval. |
Requirements and compatibility
Before getting started, here is what you need. GENE-TWITTER uses the official Twitter v2 API and requires a Twitter developer account with an OAuth 2.0 app configured. The gene handles the full authorization flow — a browser window opens once when you first use it, you approve access, and the token is stored securely on your device for all future calls.
http://127.0.0.1:8080/callback. This is the address that the Feluda local OAuth listener uses to receive the authorization response. It must match exactly — no trailing slash, no HTTPS.What GENE-TWITTER does not do
Understanding what is out of scope helps you plan correctly and set the right expectations before building a workflow.
How to set up GENE-TWITTER — step by step
Getting started requires creating a Twitter developer app and saving your credentials in Feluda. The gene includes a built-in setup guide you can call at any time — just ask your AI to run oauth_setup and it will walk you through every step in plain language. The summary below covers the key stages.
Step 1 — Create a Twitter developer account
https://developer.twitter.com and sign in with your Twitter account.Step 2 — Create a new app with OAuth 2.0
http://127.0.0.1:8080/callbackhttps://example.com) and save.Step 3 — Save your credentials in the Feluda Secrets page
Open the Feluda Desktop App and navigate to the Feluda Secrets page. Add the following two secrets:
TWITTER_CLIENT_ID — the OAuth 2.0 Client ID shown in your Twitter developer app.TWITTER_CLIENT_SECRET — the OAuth 2.0 Client Secret shown when you created your app. The secret is displayed only once — copy it immediately.Step 4 — Configure gene settings
Open the Feluda Settings page for GENE-TWITTER and fill in the following:
| Setting | Required | Description |
|---|---|---|
Twitter_DefaultSessionId | Required | Your Twitter username without the @ symbol. This identifies which account the gene authenticates as and where the OAuth token is stored. |
Twitter_AllowSendTweet | Optional | Controls whether the AI is allowed to post tweets. Must be set to true before send_tweet will work. Off by default — your AI cannot post anything until you explicitly enable this. |
Twitter_DefaultSearchLimit | Optional | Default number of results returned per search or timeline query. Defaults to 10. Can be overridden per call using the count parameter. |
Twitter_MaxPostRetries | Optional | Maximum number of automatic retries on rate limit or server errors when sending a tweet. Defaults to 2. |
Step 5 — Authorize
Your credentials stay on your device
Security is a priority, especially when connecting an AI tool to a live social media account. Here is exactly how GENE-TWITTER handles your credentials and tokens.
TWITTER_CLIENT_ID and TWITTER_CLIENT_SECRET are stored in the Feluda Secrets page on your own device. They are never uploaded to any server or shared with any third party.Tweet posting — you stay in control
GENE-TWITTER is designed so that your AI can never post a tweet accidentally. Posting is fully locked behind a setting that must be explicitly enabled. Until you turn it on, the AI can read, search, and look up anything on Twitter — but it cannot post.
Twitter_AllowSendTweet setting is set to false when you first install the gene. Your AI will receive a clear error if it tries to post while this setting is off.Twitter_AllowSendTweet to true. This is a deliberate, conscious action — not something that can happen by accident.Twitter_MaxPostRetries. Permanent errors (authorization failures, invalid content) are never retried.Best practices and recommendations
A few simple habits will make your experience with GENE-TWITTER more consistent and reliable from the start.
Twitter_AllowSendTweet set to false while you are exploring the gene, testing searches, or building your workflow. Only enable it when you are ready to post in production.Handy things to ask your AI
These are ready-to-use prompts you can type directly to your AI in any Feluda Flow that includes GENE-TWITTER. Copy them as-is or adapt the wording to suit your style — your AI will know exactly what to do.
| What you want to do | What to say to your AI | What happens |
|---|---|---|
| Check setup guide | Show me the Twitter OAuth setup guide. | Returns the full step-by-step guide for creating your Twitter developer app and configuring the gene — no documentation needed. |
| Verify your connection | Look up my Twitter profile for @yourusername and confirm the connection is working. | Resolves your username, confirms OAuth is active, and returns your profile details — a reliable first check before any session. |
| Search tweets | Search Twitter for recent tweets about [topic] and show me the top results. | Runs a recent tweet search and returns matching tweets with text, timestamps, and author IDs. |
| Look up a user | Find the Twitter profile for @username and give me their bio, follower count, and user ID. | Resolves the username and returns the full account profile with all public metrics. |
| Get someone's latest tweets | Show me the last 10 tweets from @username. | Fetches the user's most recent timeline tweets including text, timestamps, and engagement metrics. |
| Look up a specific tweet | Get the details for tweet ID [id] including engagement stats. | Retrieves the full tweet record including text, author, language, creation time, and like/retweet counts. |
| Send a tweet | Send a tweet saying: [your tweet text]. | Posts the tweet to Twitter from the authenticated account. Requires Twitter_AllowSendTweet to be set to true in settings. |
| Monitor a keyword | Search Twitter for [keyword] and summarize what people are saying right now. | Pulls recent tweets matching the keyword and lets your AI synthesize the current conversation into a short summary. |
| Compare today vs yesterday | Search Twitter for [topic] and compare the results to what you found in the last session. | Runs a fresh search and lets your AI compare the live results against the automatically stored history from previous searches — useful for spotting shifts in volume or sentiment over time. |
Built-in help for every operation
Every operation in GENE-TWITTER has a built-in help response. When your AI or a Feluda Flow calls the tool with the help operation, it immediately receives a clear description of all available operations, every parameter it accepts, the settings it reads, and the secrets it requires. This means your AI never has to guess. It can always ask the tool to explain itself before using it — especially useful when setting up a new flow or onboarding a new AI model.
How GENE-TWITTER works inside Feluda Flows
GENE-TWITTER becomes especially powerful when used inside Feluda Flows. By combining Twitter access with other genes and AI logic, you can build automated social intelligence pipelines that run continuously without manual intervention.
GENE-TWITTER gives your AI a live, authenticated window into real-time Twitter conversations, profile data, and tweet history — turning social media intelligence into a native capability of your Feluda-powered automation.
Real-world stories
Here is how different users put GENE-TWITTER to work every day.
Not seeing GENE-TWITTER in your Feluda Desktop App?
If you have just installed or updated GENE-TWITTER and it does not appear in your Feluda Desktop App yet, follow these two steps to bring everything up to date.
These two steps solve the vast majority of cases where a gene does not show up straight away after installation or an update.
Frequently asked questions
elonmusk) and returns the account profile including the numeric user ID. user_by_id takes the numeric ID directly. Both return the same profile data — resolve_username just handles the name-to-ID lookup step for you.Why choose GENE-TWITTER
Add GENE-TWITTER to your Feluda application today and give your AI a live, authenticated connection to Twitter. Save your credentials in the Feluda Secrets page, set your username in the Feluda Settings page, run the oauth_setup guide to configure your developer app, and your AI is ready to search, research, monitor and post — all from one place.
Activate GENE-TWITTER
Current credits: 0
After activation: 0