How to create a channel on twitter

Mallu Updated by Mallu

To create a bot on Twitter, you first need to request access to Twitter's API's for direct messages. The registration process is short and you will need to explain the purpose of your bot and the functionality you will provide.

Note that you can sign up at any level, a Sandbox account (Dev environments) is enough if you plan to make your bot work with a single account.

After you receive approval from your developer account, Twitter will send you a welcome email. You can now build your app and connect it.

Steps

  1. Your first step is to create your app. You will be prompted for the application name, description, and URL. Fill them in according to the functionality of the bot you are building.
  2. Next, you will need to create a development environment for your application to run. You will want to create an environment for the "Account Activity API / Sandbox". You can name it however you want, we recommend "production", be sure to select the application you created in the step

  • This name should be used when connecting the account on the Weni Platform.

  1. Now you need to create the keys and tokens for your application, which you need when creating your channel. Go back to your app and select the Keys and Tokens tab. Click Regenerate for the Consumer API Keys and Access token & access token secret sections. Keys and tokens must be generated with the "Read, write, and direct messages" permissions.

Make sure your account is enabled to receive direct messages from anyone. You can do this in Twitter's security/privacy settings.
Connecting with Weni Plataform
  1. To create the channel on the platform, go to your project, enter Applications > Discovery in the Communication Channels section, and add it by clicking the "+".

  1. Then, click on the My Apps tab; the app will be in the Installed Apps section. Fill out the page with the previously collected data, and don’t forget to enter the "Environment Name" exactly as it was configured in step 2. Once completed, click Save Changes, and your channel will be connected.

Your channel is now connected, you can test sending and receiving direct messages.

How did we do?

General API concepts and Integrations

How to create a channel on Instagram

Contact