Forum/API

Sample of what I've done with the API

tdondich December 13, 2009

I just wanted to say True Knowledge is a very unique application.  I was extremely excited to find the API as it suited my needs greatly.


I recently joined Second Life, the virtual world where user-generated content is everywhere.  My goal was to create a form of assistant that would follow me everywhere and answer questions for me that would come up in conversation or if I needed facts on various subject matter.  These types of questions come up in Second Life quite a bit.  For example, when building structures in second life, it's handy to convert measurements quickly.


I have called it Knowledge Bit, and he's a floating device over my shoulder.  I ask him questions while I build such as (How many meters in 8 feet?), and whenever interesting questions come up in conversations (What is Linden Lab's website?).


How this functions is that Bit makes a HTTP request to my public server.  Instead of making a call directly to True Knowledge, my server acts as a request proxy due to the fact that there is no XML parsing in Second Life (that is reasonable, at least).  By using a simple PHP script on my server, I can gather the query, pass it on to True Knowledge (which is only one of it's information sources, there are others that I use for weather gathering and other questions).

So far the results are impressive.  Many people have asked how to obtain one and how does it find it's knowledge.  I obviously talk about True Knowledge and what it has accomplished.

 

Anyways, I just wanted to give an example of, what I think is, a unique implementation of the API.

If you have Second Life and would like to see Bit in action, let me know.

 

Comments

User photo
pierrefar
True Knowledge Ltd

Thanks Taylor.

 

We've blogged about Knowledge Bit, which includes a video Taylor made.

December 15, 2009 14:21.
User photo
xtagon

A while ago I did something similar, but it was a "wrist computer" worn on my avatar. I didn't use any intermediary server though -- I parsed the XML response (or at least the text response and error parts) in LSL directly. It wasn't very clean (as I'm sure you can imagine), but it worked.

I also made the LSL script query an AIML chat bot through the Pandorabots API. I customized it so that when the pandorabot didn't know how to respond to normal conversation, it returned a special token that told my LSL script to try the True Knowledge API instead. It works surprisingly well.

Let me know if you'd like to compare code or something, and I'll meet you in SL.

December 26, 2009 07:55.