Since they launched a whole platform in April, Facebok has fostered enthusiasm around these automated assistants. They see a future where you get all your news alerts, buy flowers, make dinner reservations and plan entire trips through a message window on facebook.com.
So over the weekend I took a stab at making my own Facebook bot. Unlike most others, it aims to get you off Facebook–in that vein it may be the first anti-social Messenger bot. It follows a simple flow:
I have two
.js files that convert between words and numbers. Initially, I wrote
duration.js in a JSFiddle. I’ve cleaned it up a bit since, but you can play around with the word parsing here:
It’s simple–I imagine that making a talking-adverse bot is far simpler than the alternative. Facebook makes it incredibly easy incorporate with messenger, and this guide by Jerry Wang provided much of the connection logic.
I made the project open source, so you can view the code on GitHub.
When you’re not ordering flowers and stopping crime with other Messenger bots, I hope that Take 10 keeps you productive.