OpenAgent
ConnectorsPipes

X Direct Messages

Connect X (Twitter) Direct Messages to an OpenAgent Store.

X Direct Messages

The X Direct Messages Pipe answers X (Twitter) DMs with an OpenAgent agent through the X Account Activity API.

Configuration

FieldValue
TypeX Direct Messages
StoreThe Store whose agent should reply.
TokenYour X access token.
Consumer SecretYour app's Consumer Secret (API Secret Key), used for CRC webhook validation.
DomainYour public base URL.

Webhook

The X Account Activity API webhook cannot be registered programmatically, so set it manually in your X developer app. Use:

https://<your-domain>/api/chat-webhook/x-dm/<pipe-name>

When X issues its CRC (Challenge-Response Check), OpenAgent answers it using the Consumer Secret so the webhook can be registered and stays subscribed. Incoming DMs are routed to the Store's agent and the reply is sent back in the same conversation.

On this page