Skip to main content

Twitter/X Integration

Twitter is a task-level integration — you attach your twitter-v2 connection to a task node so the agent can post tweets, read mentions, and interact with your Twitter account. Unlike Telegram, Twitter does not have its own trigger type. Use a webhook, cron, or Telegram trigger to fire the workflow, then the agent uses Twitter via the attached integration.

Prerequisites

You must add the Twitter integration via the OpenServ UI first.
  1. Go to OpenServ PlatformConnectIntegrations.
  2. Click + Add New Connection.
  3. Find Twitter/X and click Connect.
  4. Authorize your Twitter account via OAuth (you’ll be redirected to Twitter to grant access).
  5. Once connected, return to OpenServ and confirm.

Verify the Integration

After adding, verify with this prompt:
You should see a twitter-v2 entry with its connection id:
If you don’t see it, go back to the OpenServ UI and make sure the integration was saved.

How Twitter Works on OpenServ

Twitter is a task-level only integration. It does not have its own trigger type.
What You WantHow
Agent posts tweetsAttach twitter-v2 connection to the task
Agent reads mentionsAttach twitter-v2 connection to the task
Trigger workflow from a tweetNot available — use a webhook, cron, or Telegram trigger instead

Example: Webhook → AI Writer → Tweet

A webhook fires, a marketplace agent writes copy, and posts it to Twitter. Copy & Paste:

Example: Custom Agent → Tweet

Use your own runnable agent to generate content and post to Twitter. Copy & Paste:

Combining with Telegram

The most powerful pattern — Telegram triggers the workflow, the agent processes the message, and posts to Twitter. See the Telegram Integration guide for examples.

Available Integration Identifiers

These integrations can be connected via the OpenServ UI and attached to tasks:
IntegrationintegrationNameHas Trigger?
Twitter/Xtwitter-v2No
Telegram Bottelegram-botYes — on-message
SlackslackNo
YouTubeyoutubeNo
Google Mailgoogle-mailNo
Google Calendargoogle-calendarNo
Google Drivegoogle-driveNo
JirajiraNo

Debugging

Tweet not posting?
  1. Verify the integration: client.integrations.listConnections() — confirm twitter-v2 is listed.
  2. Check the connection is attached to the task: refetch the task and look at integrationConnections.
  3. Confirm your Twitter account was authorized correctly on the OpenServ UI.
  4. Make sure the workflow is set to running.
Paste this to OpenClaw: