The Messaging Bot

yechielk

Yechiel Kalmenson

Posted on April 3, 2018

The Messaging Bot

Using Twilio To Add SMS Notifications To My Twitter Bot

As you may recall, I recently built a Twitter Bot that retweets whenever Alternate Side Parking rules are suspended in New York City (you can follow it here).

The bot was a great hit; gaining over 150 followers as of the writing of this post, but it had its limitations.

For one, some people aren’t glued to their Twitter feeds; one retweet can easily get lost in the noise of an active feed. Then there are people who don’t have Twitter (the number one complaint when I told my family about the bot).

Enter Twilio

Twilio is an API that can be used to, among other things, connect your app with a phone number that can make/receive phone calls and text messages.

I heard lots of great things about how easy it was to use, and how cool it was to make stuff with it, so I figured this would be a good project to try it out.

The hype was justified. The API is extremely user-friendly, the documentation is very clear, they even have a game to help you get started (try it: TwilioQuest).

I wrote a blog post about the technical part of adding the SMS and voice functionality to my app (you can read it on Twilio's blog here). This post will focus on the user aspects of the app.

How Does It Work?

The app is very simple.

Save the following number to your phone-book: 347–404–5618

Now you can interact with my app using the following commands:

SUBSCRIBE : subscribes you to receive SMS notifications whenever Alternate Side Parking rules are suspended.

UNSUBSCRIBE : if you want to stop getting notifications (don’t worry, I won’t get offended).

STATUS : if you just want to find out the latest status of the rules (whether they are suspended or not) without subscribing

Additionally, you can also call the same number (347–404–5618) at any time to hear the latest status.

Spare Some Change?

If I thought my Twitter Bot was a success, my SMS app caught me completely unprepared. Within a day I had over 60 followers, and within a week I was at 100 (140 as of the time I wrote this post).

The problem with that was that, unlike my Twitter bot, this app had the potential of costing me money. Not a lot (sending notifications to 150 subscribers for one snowstorm costs $2.10), but it has the potential to add up.

I don’t plan on monetizing this (no one wants to get advertisements to their phones), but if you do enjoy the SMS notifications, please consider sending a dollar or two or five to my PayPal account. If you make a contribution of more than $5 (just a bit more than 2 snowstorms or legal holidays) you will even get a special, limited edition Rabbi On Rails sticker as a token of my appreciation, just remember to include your mailing address with the PayPal payment.

You can also feel free to follow my Twitter bot @AlterSideBot or me @yechielk


This article has been cross-posted from my blog Rabbi On Rails.
You can read more about my coding journey there, or by following me on Twitter @yechielk

💖 💪 🙅 🚩
yechielk
Yechiel Kalmenson

Posted on April 3, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

The Messaging Bot
twilio The Messaging Bot

April 3, 2018