How to create a Twitter app

First step in the journey of making your own Twitter bot.

Before you start making bots, consider reading these essays and articles. Also worth browsing: resources for cleaning up your bot's language.

Making a bot for Twitter is a multi-step process that consists of:

Don’t get overwhelmed though, I will guide you through all this. And if you have any questions, feel free to shoot me an email or ask for help in the Botmakers community.

Applying for a developer account

As of July 2018, you must apply for a Twitter developer account and be approved before you can create new apps on Twitter. You can start the process by going to this page with the account that will be used as your bot.

You will need to add a phone number to your account before you can proceed. If you are already using your phone number with a different Twitter account, you should be able to remove it by texting STOP to your country’s shortcode number, and add it to your new bot account.

A few people run into issues after reusing their phone number too many times, but you can also sign up for Google Voice, or any other service that lets you receive text messages (for example Skype Number doesn’t, so it won’t work).

Creating a new Twitter app

Once your developer account is approved, you can go to the developer dashboard and click the Create an app button to create an app for your bot.


If you’re making a bot that will respond to DMs, you will need to provide the callback URL, which should be mentioned in the tutorial you’re following. Otherwise you can skip all fields that are not required.

Once you’re done here, go to the Keys and Tokens tab and under Access token & access token secret click Create to get your API keys. These will let you make API calls, or in other words, interact with the data on Twitter’s website.

We are going to need four things from this page:

  • Consumer API Key
  • Consumer API Secret
  • Access Token
  • Access Token Secret

Also, if necessary, change the permissions on the Permissions tab to allow access to DMs with the Read, write and Access direct messages option.

And you’re done! Now go check out some Twitter bot tutorials and our starter projects on Glitch, and be sure to submit your bots to Botwiki and share them with the Botmakers community!


Creator of Botwiki and Botmakers, Botwiki editor, and Botmakers community manager.

Enjoyed the tutorial?

Consider supporting Botwiki!

Latest from the blog

Poll: Do you follow the bots you make?
Poll: Do you follow the bots you make?

Do botmakers follow their bots?

Poll: What are your favorite bots to follow?
Poll: What are your favorite bots to follow?

Results are in: people love to look at pictures!

2015-2018: The Golden Age of botmaking
2015-2018: The Golden Age of botmaking

Reminiscing and looking ahead.

Poll: The language of botmaking
Poll: The language of botmaking

To make a bot, or to author it?

Visit the blog


Adblocker not detected

Consider installing a browser extension that blocks ads and other malicious scripts in your browser to protect your privacy and security.