How to create a channel on twitter
Updated by Thays Oliveira
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.
- 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.
- 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.
- 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.
Connecting with Weni Plataform
Fill in the page with the previously collected data, be sure to place the "Environment Name" the same way it was set up in step 2. When you're done filling in click Send and your channel will be connected.
Your channel is now connected, you can test sending and receiving direct messages.