How to Create an Application for Twitter Bots

You need a Twitter account to create a Twitter bot. It is recommended that you create a separate Twitter account to test the bots.

Assuming that you already have created a Twitter account, go to apps.twitter.com and create a new Twitter app. One Twitter app can handle multiple Twitter bots but is recommended that you create a separate app for each bot.

On the Twitter apps page (apps.twitter.com), log in with your Twitter account and click the Create New App button (link).

create-twitter-application.png

You need to specify the Name, Description, Website (put any link) and agree to the developer agreement. The Callback URL field may be left blank. Click the “Create your Twitter application” to generate the consumer keys.

Allow App to Send Tweets and Direct Messages

Go to the Permissions tab and choose “Read, Write and Access direct messages” for the Access type. We do this so that the Twitter bot can send both tweets and DMs. Click “Update Settings” to apply the changes.

twitter-bot-access.png

Generate the Consumer Access Keys

Go the Keys and Access Tokens tab and click the “Create my access token” button under the Token Actions section.  This will generate the consumer keys and the access tokens that the bot would require to connect to Twitter on your behalf. Never share these value with anyone.

twitter-access-tokens.png

Amit Agarwal

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

0

Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards in 2017.

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.