Breaking News
Home / Information Technology / I built a Bot, and now I want more Bots

I built a Bot, and now I want more Bots

I have finally managed to replicate myself in digital form. My online alter ego suffers from a profoundly limited vocabulary and poor reading comprehension—but it’s still a start.

Credit for this feat of minor self-replication goes to an introductory course in building chatbots that can engage in basic conversations with strangers. That came at the Future.Today summit, a conference happening this week in New York. I may be nowhere near outsourcing my correspondence to a stack of algorithms, but at least I have a slightly better understanding of how these things work—and how I might want to put them to work for me.

Bots for beginners

I had the unfair advantage of getting somebody else to do the hardest work upfront: John Keefe, a data journalist with WNYC radio, set up a bot engine using such web tools as Twilio’s (TWLO) messaging service, the Botkit open-source library, and Wit.ai’s natural-language tools.

My part of this Build-A-Bot workshop was simpler: Create a Google (GOOG, GOOGL) spreadsheet and then fill it out with both terms that might appear in questions along with the text my bot would answer them with. Then I had to link it to Keefe’s bot-testing page.

In keeping with my tradition of being Kryptonite to tech demos, I screwed that up. Keefe’s page ignored more than the first handful of queries I’d included in this spreadsheet and didn’t respond to the commands that were supposed to refresh its grasp of my database.

I asked Keefe for help. “Hmm, it is definitely not happy,” he commented before taking a closer look at my questions and answers. The problem turned out to be a typo—I’d entered a curly bracket instead of a parenthesis when enclosing a “regular expression” list of synonyms.

That was my first lesson in bot programming: punctuation matters. The second: Keeping the search terms brief made for a more responsive bot. I didn’t need to include “What’s Rob’s Twitter handle?” as a possible query when “Twitter?” would allow the bot to field far more questions about my Twitter presence.

Things get complicated

A screenshot of the author's bot dialogue.
A screenshot of the author’s bot dialogue.

I fixed that and now have a bot capable of entry-level Q&A interaction with you and any other random person—well, for as long as Keefe keeps that page up.

My beginner’s bot is nowhere as smart as the ones you can deploy on Facebook (FB), which benefit from powerful artificial-intelligence capabilities to parse the input of humans who may disregard spelling and grammar. It also doesn’t allow for spoken input and is illiterate in emoji, stickers and GIFs.

But setting up a Facebook Messenger bot is not an exercise for laypeople. It’s reserved for developers at companies and organizations with public Facebook pages. I have a Facebook page and I wouldn’t mind having a bot to answer basic questions from readers. But until I get a lot more adept with code, I’m stuck with providing an automated response to people who send messages to my page.

The team-messaging app Slack abounds with bots, but creating those also amounts to a coding project.

You can apparently create a Twitter (TWTR) bot with less work by combining simple web tools with a Google spreadsheet, but I have yet to try that. Don’t I spend enough time on that service already?

Not for the first time, an online tool that could be useful to those of us lumped under the faceless, amorphous term “users” is largely reserved for developers instead—even though many of us could use this feature in our own lives.

Bots with benefits

A little time spent plugging questions and answers into this Google spreadsheet got me thinking about other potential applications of having a bot for a mouthpiece. Beyond answering reader questions on Facebook, the same technology could save me vast amounts of time answering PR pitches about next month’s CES gadget gathering.

Having a bot speak on your behalf in a web chat or phone call with a giant corporation would be another obvious application, something ACLU policy analyst Jay Stanley endorsed in a later Future.Today talk.

About PCA

Check Also

sony

Sony is restarting production of vinyl records

Contrary to what the children of baby boomers might believe, vinyl records are far from ...