BeeGenticResources
Publish to social

Publish to X (Twitter) with your own X app

Connect X (Twitter) to BeeGentic with your own X developer app (Client ID and Client Secret), then post tweets from a workflow. X bills your developer account directly.

What you'll build: you create a free X developer app, paste its Client ID and Client Secret into BeeGentic once, then a workflow (Start → Agent → X) writes and posts tweets as you. About 15 minutes the first time.

What BeeGentic can do with X (Twitter)All tools →

Posts to: Your X account · Connect with: Your own X developer app (Client ID + Secret) · Block: X

TextLinkImageVideoMultiScheduleEditDeleteReadCommentsInsights
✅✅⚠️⚠️⚠️——✅✅⚠️—

Not supported: Uploading new media from BeeGentic · Editing posts · Scheduling inside X

⏳ X bills your own X developer app per post; BeeGentic’s app is never used

✅ supported · ⚠️ partly (hover for details) · — not supported

You use your own X app, and X bills you. X charges the owner of the developer app for every API call, including each post. BeeGentic never posts through a BeeGentic X app, so X sends the bill to your X developer account, not to BeeGentic. You need API credits in your X Developer Console before posting works.

Status: this guide covers connecting X. The end-to-end run with a real customer X app (connect, post, delete) hasn't been done yet. Until it has, X stays in progress on BeeGentic and this page has no real-result section.

Before you start

You needWhy
An X accountBeeGentic posts as this account
An X developer account with API credits (console.x.com)X bills this account for each call
An AI key saved as a secret, e.g. OPENAI_API_KEYThe Agent writes the tweet

Part 1: Create your X app (once)

Sign in to the X Developer Console

Open the X Developer Console and sign in with the X account that will own the app. Accept the developer terms if X asks. Add API credits if you haven't yet.

Create an app

On the Developer Console dashboard click New App, and enter a name, description and use case. X shows the app name on the consent screen, so pick one you're happy for people to see, e.g. My company posts.

Turn on OAuth 2.0 (User authentication settings)

In your app's settings, open the User authentication settings (where X turns on OAuth 2.0), and fill in:

SettingValue
App permissionsRead and write (BeeGentic needs write to post)
Type of AppWeb App, Automated App or Bot
Callback URI / Redirect URLhttps://app.beegentic.ai/api/auth/oauth2/callback/x (the BeeGentic connect dialog shows the exact URL with a copy button; use that one)
Website URLYour website, e.g. https://www.example.com

Save.

Copy the Client ID and Client Secret

In your app's keys and tokens, copy the OAuth 2.0 Client ID & Secret (X describes them as "OAuth 2.0 authentication for user-context requests"). Keep the secret safe; if you lose it, regenerate it and reconnect in BeeGentic.

Don't use the API Key and Secret or the Bearer Token: those are for other kinds of X login.

Part 2: Connect X in BeeGentic (once)

Open the X connect dialog

Integrations (left sidebar) → search X → Add to BeeGentic.

The dialog explains why you use your own app, links to this guide, and shows:

X connect dialog

#FieldWhat to do
1Callback URLClick copy and make sure it matches the Callback URI in your X app (Part 1, step 3).
2Client IDPaste the OAuth 2.0 Client ID.
3Client secretPaste the OAuth 2.0 Client Secret. It's stored encrypted and only used for this X connection.
4ConnectStays disabled until both fields are filled.

Approve on X

X opens a consent screen that shows your app's name. Click Authorize app. You're sent back to BeeGentic, connected.

Part 3: Build the workflow

Add the Agent

+ New workflow → Toolbar → Agent. In Messages:

Write one tweet (max 260 characters) announcing: <start.input>. Friendly, one hashtag. Return only the tweet text.

Pick a model and your key, e.g. gpt-5-mini and {{OPENAI_API_KEY}}.

Add the X block

Toolbar → X. Set:

FieldValue
OperationCreate Tweet
X Accountthe connection from Part 2
Tweet Text<agent.content>

Run it from Chat with a topic. The X block returns the new tweet's id and text.

Delete the test post (optional)

Add another X block with Delete Tweet and the tweet ID, or delete it in the X app.

⚡ Make it automatic

TriggerExample
SchedulePost a tip every Monday at 9:00
RSSTweet each new blog post
Approval firstX announcement with approval

Posting to several networks at once? Add a Bluesky or LinkedIn block after the same Agent.

🛠️ Troubleshooting

What you seeFix
Connect stays disabledFill in both Client ID and Client secret.
X shows Something went wrong or a redirect error before the consent screenThe Callback URI in your X app doesn't match exactly. Copy it again from the BeeGentic dialog. Also check Type of App is Web App, Automated App or Bot.
You return to BeeGentic with error=x_callback_errorThe Client Secret is wrong or was regenerated. Copy a fresh Client ID & Secret from your X app and connect again.
You return with error=x_access_deniedYou clicked Cancel on X. Connect again and click Authorize app.
The X block fails with an X message about credits or usageYour X developer account is out of API credits. Add credits in the X Developer Console.
An X connection made before October 2026 stops workingOlder connections used a shared BeeGentic app. Reconnect X with your own app (Integrations → your X connection → Reconnect).

On this page