Table of Contents

Twitter AI Agent & Chatbot Setup

Integrating X.com DM chat (Twitter) allows you to receive Direct Messages (DMs) directly into your chat dashboard and reply using AI agents or human support. Follow the steps below to configure the Twitter Developer portal and synchronize it with your system.

Installation Process

1

Create Twitter App

Register at the Twitter Developer Portal. Important: You must verify your phone number at twitter.com/settings/phone before starting, or registration will fail. Create your first app, then copy the API Key (Consumer Key) and API Key Secret (Consumer Secret). Paste these into Settings > Twitter.

2

Request Elevated Access

Apply for Elevated access via the products portal. Fill out the application form with the following details:

  • Use Case: “I need access to the Account Activity API to start receiving Twitter Direct Messages to my chat software (CHAT.devad.io) and to reply to them directly from CHAT.devad.io, details at https://chat.devad.io/twitter.”
  • Other Fields: Select No for all other questions regarding data analysis, tweet display, or government entities.

Wait for email confirmation from Twitter approving your access level.

3

Setup Dev Environment

Once approved, go to the Developer Dashboard > Products > Premium > Dev Environments. Under “Account Activity API / Sandbox,” click Set up dev environment. Label it sb (or match the value in Settings > Twitter > Synchronization > Dev environment label).

4

Configure Authentication

In App Settings, navigate to “User authentication settings” and activate OAuth 1.0a.
Permissions: Select “Read and write and Direct message”.
Callback URL: Paste the URL provided in Settings > Twitter > Get callback URL.
Website URL: Enter your own website URL.

5

Generate Tokens & Subscribe

Go to “Keys and tokens”, generate your Access Token and Secret, and paste them into your chat settings. Enter your Twitter username (e.g., chatdevad1 from your profile URL). Finally, save settings and click the Subscribe button in the admin area.

Important Usage Information

Testing Advice

Do not use the synced Twitter account to test sending messages. If you message yourself, you may receive duplicates. Always test by sending a DM from a different Twitter account.

Categorized in:

CHAT App, Twitter (x),