Build Status

How to chat with Susi AI bot on Twitter

Visit your twitter account and tweet to @SusiAI1 with your query and enjoy a tweet back from the Susi AI bot account!

Also, you can enjoy personal chatting with Susi. Follow the SUSI AI account on twitter here and have a personal chat with it.
twitter chat

Getting Started : Twitter Susi AI Bot Installation

We will make a Susi messenger bot account on Twitter. This account will tweet back when it’s name is mentioned in a tweet. Also, 1-on-1 auto chat will be inculcated to our account.

Make a new account, which you want to use as the bot account. You can make one from here.


To create your account on -:

  1. Twitter
  2. Github
  3. Heroku

Setup your own Messenger Bot

  1. Fork this repository.

  2. Make a new app here, to know the access token and other properties for our application. These properties will help us communicate with Twitter.
    twitter app
Click “modify the app permissions” link, as shown here:
twitter keys
Select the Read, Write and Access direct messages option:
twitter permissions

Don’t forget to click the update settings button at the bottom.

Click the Generate My Access Token and Token Secret button.

  1. Create a new heroku app here.
This app will accept the requests from Twitter and Susi api.
create heroku app
  1. Create a config variable by switching to settings page of your app.
The name of your first config variable should be HEROKU_URL and its value is the url address of the heroku app created by you.
config variables
The other config variables that need to be created will be these:
twitter config variables

The corresponding names of these variables in the same order are:

  1. Access token
  2. Access token secret
  3. Consumer key
  4. Consumer secret

We need to visit our app from here, the keys and access tokens tab will help us with the values of these variables.

  1. Connect the heroku app to the forked repository.
Connect the app to Github by selecting the name of this forked repository.
heroku github connect
  1. Deploy on development branch. If you intend to contribute, it is recommended to Enable Automatic Deploys.
Branch Deployment.
branch selection
Successful Deployment.
heroku deployment
  1. Visit your own personal account and tweet to this new bot account with your query and enjoy a tweet back from the bot account!

  2. Also, you can enjoy personal chatting with Susi.
    twitter chat

Feel free to play around with the already made SUSI AI account on twitter here. Follow it, to have a personal chat with it.