FaceBook Messenger Bot with Ruby & Sinatra

Hacked together a basic FaceBook Bot that returns the GPS coordinates of a country, city/town or address using this tutorial.

Code for the simple bot is on my GitHub. You can also message the CoBot FaceBook page. It’s hosted on a free Heroku site so it’s so incredibly slow, it was a lot quicker on my local server. Update: Rhys explained to me that the Heroku site sleeps the free dynos and wakes them as required. Since the dynos is sleeping, the message isn’t sent until it wakes.

It’s amazing how you can use ChatBots to gather and serve information. So much you can do with bots.. like create surveys, present promotions to page followers, serve bus arrival times to commuters and much more.

Leave a Reply

Your email address will not be published. Required fields are marked *