APIs are becoming more and more popular each day. A lot of new APIs are being launched every day, some useful and others just plain awesome. I work APIs every day and sometimes discover quite interesting ways to mash them up.
With the launch of Google’s prediction API, it got me wondering whether it is possible to train an AI with it or at least do some sort of intelligent reasoning by only using available APIs. I looked around and found some other useful APIs to work with it.
Let’s imagine we want a bot that when given certain keywords, be able to deduce what you are talking about and then reply with a seemingly coherent answer. First we need to learn it.
Let’s ask it: “What do you think about Google buying out Motorola?”
Step 1: First we push the sentence through AlchemyAPI to extract context and meaning through its “named entity extraction”, “keyword extraction” and “categorization” APIs. We will also use OpenCalais to do the same in order to get a varied result back. Now we have a great set of terms, entities, and general idea what the question is about.
And so it learns and learns by using the power of APIs and the flow of information being created by humanity on Twitter. Watch out, maybe we could see a totally artificial twitter personality appear. Skynet is coming.