The twitter app should be accomplished first to be able to add a twitter channel in the frontend easily. Accomplishing the twitter app will give the required keys for the Channel Gateway, these keys will make the Authorize App button in the frontend work and automatically fill up all the required fields.
Follow these steps to create the app:
Apply for developer access here. The approval process usually takes from minutes to a few days. Be sure to check your email as they may ask for additional information.
Once approved, create a twitter app.
In the twitter app dashboard, you will find your newly created app.
Click the
Detailsbutton, then go to thePermissionstab.Update the permissions to enable
Read, Write, and Direct Messages.On the same page, go to the
Keys and Tokenstab.Generate
Consumer API keysandAccess token & access token secret, you will need these values for the Channel Gateway env variables.Go to the
App detailstab, you will need to add thefrontend urlin theCallback URLlist.Go to the dev environments page, you will need to create a
developer environmentfor the webhook, this is also a variable needed for the Channel Gateway.
Once all the variables are obtained and Channel Gateway is up and running, you can easily click the Authorize App button and log in to the page where you want the hub to be bound to. By default, the chatbot is bound to the twitter direct messages but if you also want to bind a bot to reply to tweets, enable tweet bot and then supply the chatbot api key.