Twitter

1. Introduction

Twitter is an American online news and social networking service where users post and interact with messages known as “tweets”. And if you looking to Deploy your bot on twitter MyBOT helps you do that. Any users who want to send you a direct message on your twitter account will be able to access the conversational flow you set up for your bot and answered with any FAQs you train the bot for.

1.1 Access to Setup

1. Access Deploy workflow from the Navigation

2. Then look for Twitter

2. Requirements

To have your bot on your twitter account you need to have a developers account with the same email id. You can go to https://apps.twitter.com/ and create a developer account. Twitter will verify the purpose for the account and how you will be using the developers API. This verification takes around takes around 2-3 days and once you have the developers account created you can proceed with the setup.

3. Steps to configure Twitter as a Channel

Let me explain to to how you can deploy you chatbot on Twitter

3.1 Create an app

Log in to your twitter developers account and create a Twitter application.

3.2 Set appropriate permissions

On the App dashboard, go to the “Permissions” tab and enable “Read, Write and Access direct messages” then click on “Update Settings“. Access direct messages option needs to be selected for the chatbot to function along with Read and Write.

3.3 Retrieve the required tokens and keys

For the Twitter app, go to the Keys and tokens section and note down the API keyAPI secret keyAccess token and Access token secret. These details would be needed to set up the chatbot on MyBOT, as per the last step of detail updating.

3.4 Get account activity API access

Follow this documentation to apply for relevant Account Activity API access. You may either apply for Premium or Enterprise access. The access type [Premium or Enterprise] needs to be set up on the MyBOT portal(Deploy->Twitter) correctly.

3.5 Set up developer environment

Go to the dev environments page. Click ‘Set up dev environment‘ for Account type – Account Activity API, name your environment, and specify a Twitter app ID to link with the environment. The environment name you chose will be your Dev environment label, which needs to be updated on the MyBOT portal as well.

3.6 Allow receiving direct messages

For your account, go to the Security section and check the “Receive Direct Messages from anyone” from the bottom of the page and then save the changes.

3.7 Update details on MyBOT portal

Update the following details in the Twitter configuration section under Deploy->Twitter and click on the save button your bot is ready to respond to all you direct messages on Twitter.

– Twitter Admin username(name for your Twitter Handle)
– Consumer Key(from Step 3)
– Consumer Secret(from Step 3)
– Access Token(from Step 3)
– Access Token Secret(from Step 3)
– Dev Environment Label(from Step 5)
– The appropriate Twitter Account type, namely – Premium or Enterprise.(based on the account type)

Was this article helpful?

Related Articles

Leave A Comment?