Connect X to your Wiro AI agent
Post, reply and read on X (Twitter).
Run a poll on X asking which feature we should build next: bank sync, a mobile app or multi-currency invoices. Keep it open 3 days.
You said go, so the poll is live on your X account and stays open for 3 days:
Which should Cobaltfin build next? Vote, and tell us why in the replies.
- Bank sync
- Mobile app
- Multi-currency invoices
Anyone can reply, so people can explain their vote.
X actions
Your agent picks the right ones for each request
Overview
What X does for your agent
Signs in to X through a ready-made app that needs no developer account, or through your own X app. The agent publishes posts with up to four images, one GIF or one video, or a poll, replies to and quotes other posts, runs threads of 2 to 25 posts and deletes the account's own posts, and it reads the likes, reposts, replies, quotes and impressions on what the account posted. With your own app, X charges every read and post to the prepaid API credits of the developer account that owns it.
Use cases
What your Wiro agent can do with X
- 01
Turn release notes into an X thread
Paste the changelog in Chat and ask for a thread. The agent splits it into posts that fit X's character limit, attaches the screenshots you link with alt text, and publishes the whole thread once you approve it. Each post replies to the one before, so the thread reads in order.
- 02
Post a tip every weekday morning
Give the agent a list of tips once, then set a Scheduled Task for 10:00 on weekdays. Each run publishes the next tip, with its image if it has one, and keeps track of which tips are used so the list goes out in order without repeats.
- 03
Get a Monday report on last week's posts
A Scheduled Task reads the account's posts from the past seven days with their likes, reposts, replies, quotes and impressions, compares them with the week before, and writes a short summary in Chat that names the posts with replies above the weekly average.
- 04
Ask your followers with a poll
Ask in Chat for a poll on which feature to build next. The agent writes two to four options of up to 25 characters each, keeps the poll open for the time you choose, up to seven days, and can limit replies to people the account follows.
- 05
Post a product video with the right labels
Share a link to an MP4 or MOV file of up to 512 MB. The agent uploads it, waits until X has processed it, and posts it with your caption. When the video was made with AI or the post is a paid partnership, it turns on X's label for that.
- 06
Replace a post that went out with a wrong link
Tell the agent which post has the mistake. It finds the post among the account's recent posts, deletes it after you confirm in Chat, and publishes the corrected text in its place.
How it works
How X works with Wiro
- 01
Connect X
Deploy an agent, open its Connectors tab, choose X and sign in with your X account.
- 02
Choose what each action may do
Set each X action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.
- 03
Ask in Chat or schedule it
Ask your agent for X work in Chat, or put it on a Scheduled Task that runs on its own.
- Where it runsInside your agent. Its requests go straight from the agent to X.
- Where its data goes
api.x.com - How it signs inSign in to X with Wiro's app or with your own app.
What it can do
Actions your Wiro agent can take in X
By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.
Read-only 5 actions
Looks things up in X and changes nothing.
| Action | What it does | Chat | Scheduled Tasks |
|---|---|---|---|
| Get the connected X account | Returns the connected X account: id, username, name, bio, follower, following and post counts, verification and X Premium subscription type. | Allow | Allow |
| List my X posts | Lists the connected account's own posts, newest first, with each post's link, text, time and like, repost, reply, quote and impression counts. | Allow | Allow |
| Get an X post | Returns one X post by its id: link, text, time, counts, the post it replies to or quotes, and its media. | Allow | Allow |
| Get an X media upload's status | Returns the processing state of an upload. | Allow | Allow |
| Read other X data | Reads what the actions above do not cover, straight from the X API. | Allow | Allow |
Create and send 3 actions
Creates or sends something new in X, such as a post, a message or an email.
| Action | What it does | Chat | Scheduled Tasks |
|---|---|---|---|
| Upload media to X | Uploads one image, GIF or video from a public https URL to X with the chunked upload. | Ask | Allow |
| Publish an X post | Publishes a post on X right away: text, up to 4 images or one GIF or video, or a poll; optionally as a reply to a post, quoting a post, with reply settings and AI or paid-partnership labels. | Ask | Allow |
| Publish an X thread | Publishes a thread on X: 2 to 25 posts, each with text and up to 4 images or one GIF or video, every post replying to the one before (the first optionally replying to an existing post). | Ask | Allow |
Change and delete 2 actions
Changes or deletes what is already in X.
| Action | What it does | Chat | Scheduled Tasks |
|---|---|---|---|
| Delete an X post | Deletes one of the connected account's posts by its id, for good. | Ask | Allow |
| Make other X changes | Sends any other change straight to the X API. | Ask | Allow |
How to connect
Connect X to Wiro
Open the agent's Connectors tab, choose X and sign in with your account. The consent screen shows what the agent can reach.
What the Connect dialog asks for
Pick one way in the Connect dialog: it asks only for what that way needs.
Wiro's ready-made app
Nothing to fill in: you sign in to X in its own window.
Your own app
Client ID and Client Secret from your own X app, then you sign in to X in its own window.
| Field | About |
|---|---|
| Client IDRequired |
|
| Client SecretRequired |
|
Troubleshooting
Troubleshooting X
What to check when X stops working for your agent.
- Your own app's sign-in fails Check your app's settings in X: the redirect URL shown in the Connect dialog must be added there, and the client secret you pasted must be the app's current one. Then sign in again.
- Access revoked in X If the access is removed in X, or the sign-in can no longer renew, the connection reads Reconnect needed. Open the agent's Connectors tab, choose X and Reconnect.
- Limits set by X X limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your X plan.
For developers
Connect X from your own product
Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.
- 01
Read the connector
Detail answers without a session: what the connector needs and the tools it gives an agent.
POST /AgentConnector/Detail { "slug": "twitter" }Response { "result": true, "errors": [], "agentconnectors": [ { "slug": "twitter", "title": "X", "category": "social", "authtype": "provider-oauth", "credentialfields": [ { "name": "clientid", "label": "Client ID", "required": true, "secret": false, "format": "text" }, { "name": "clientsecret", "label": "Client Secret", "required": true, "secret": true, "format": "password" } ], "tools": [ { "name": "get_me", "readonly": true }, { "name": "list_my_posts", "readonly": true } ] } ] } - 02
Start the sign-in
Connect answers with the vendor's sign-in page. Open it in the browser of the person who owns the account.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "twitter", "mode": "oauth", "values": { "clientid": "YOUR_CLIENTID", "clientsecret": "YOUR_SECRET" }, "redirecturl": "https://your-app.example.com/connectors/return" }Response { "result": true, "errors": [], "status": "pending", "authorizeUrl": "https://vendor.example.com/oauth/authorize?client_id=...&state=..." } - 03
Come back to your page
After the consent screen the browser returns to your redirect URL with the outcome in its query. Read the status next; the query is only a reason to look.
Your redirect URL https://your-app.example.com/connectors/return?connector_connected=true https://your-app.example.com/connectors/return?connector_error=authorization_denied - 04
Read the status
connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.
POST /UserAgent/ConnectorList { "useragentguid": "YOUR_AGENT_GUID" }Response { "result": true, "errors": [], "useragentconnectors": [ { "slug": "twitter", "title": "X", "authtype": "provider-oauth", "status": "connected", "accounts": {}, "savedvariables": [ "clientid", "clientsecret" ], "lasterror": null } ] } - 05
Disconnect
Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.
POST /UserAgent/ConnectorDisconnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "twitter" }Response { "result": true, "errors": [], "removed": true, "revoked": true, "restart": "scheduled" }
Questions
X and Wiro FAQ
What can an X (Twitter) AI agent do with this Connector?
It publishes posts with text, up to four images or one GIF or video, or a poll, and it can reply to a post or quote one. It publishes threads of 2 to 25 posts, deletes the account's own posts, and reads the account's posts with their like, repost, reply, quote and impression counts. For other X API calls it has a general read action and a general request action, both limited to what the account allowed at sign-in and to the app's X API access.
How do I connect X to an AI agent?
Open the agent's Connectors tab and choose X, or ask for an X connection in Chat. Sign in with the ready-made app, which needs no X developer account, or with your own X app: in the X Developer Portal, turn on OAuth 2.0 with the Web App type, add the callback URL shown in the Connect dialog, and paste the OAuth 2.0 Client ID and Client Secret. Either way, you approve access on X's own consent screen.
Do I need a paid X API plan to automate X?
Not when you sign in with the ready-made app. With your own X developer app, X charges by usage rather than by plan: each read and post comes out of credits bought in advance for that app's developer account, and the balance and spending limit set there decide how much the agent can do. The Connector itself adds nothing to your agent plan's cost, and X's own limits on your account still apply.
Will the agent post on X without asking me?
Reading runs on its own. By default, a post, a media upload or a deletion waits in Chat until you approve it, so nothing reaches X before you say yes. In Scheduled Tasks these actions run without a prompt, which is how a timed post goes out on schedule. Each action can be set to Allow, Ask or Block on the agent's Connectors tab, once for Chat and once for Autopilot, the column that covers Scheduled Tasks.
What limits does X set on posts and media?
A post holds 280 characters, with a link counted as 23 and some characters as two, or up to 25,000 on an X Premium account. Each post takes up to four images or one GIF or video: JPEG, PNG or WebP images up to 5 MB, GIFs up to 15 MB and MP4 or MOV videos up to 512 MB. A thread here runs 2 to 25 posts, and X refuses an exact copy of a recent post.
Where are my X tokens kept, and can the AI see them?
With your own app, the Client ID and Client Secret are used only for the sign-in and never reach the agent. The tokens X hands back are kept encrypted, and the AI model is never given them. Disconnecting X on the Connectors tab deletes them and revokes the sign-in with X. You can also remove the app from the connected apps in your X settings.
Is this an X MCP server I have to host?
No. The X Connector lives inside the agent and gives it X actions as tools; nothing needs to be installed or kept running on your side. You connect it once on each agent that should post, and that agent can use it in Chat and in its Scheduled Tasks.
Access
Revoke X access
Remove the app's access in your X account's connected apps settings, then disconnect it here.
Related connectors
More social connectors for your Wiro agent
YouTubeUpload and publish videos and Shorts, edit metadata and playlists, and read channel…
BlueskyRead profiles and post to Bluesky with links, mentions, hashtags and images.
Facebook PagesPublish posts, photos and videos to your Facebook Pages and read their engagement.
InstagramPublish photos, carousels, Reels and Stories to your Instagram professional accounts.
LinkedInPublish posts to a LinkedIn organization page.
MastodonRead your timeline and post statuses on your Mastodon instance.
Put X to work with Wiro
Deploy an agent and connect X from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.