AI Zone Admin Forum Add your forum

NEWS: survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Program O and Wikipedia

I am James and I am new to this forum. I am using program o and wondering is there any way that I can use wikipedia for my chat bot knowledge base?


  [ # 1 ]

Hi, James, and welcome to! smile

At this time, there is no functionality that ties a Program O chatbot to Wikipedia, but it’s certainly possible to do so (if you’re using version 2, that is), if one has the skill/experience level and the time to write an addon to provide that sort of functionality. Personally, I think it would make for an interesting project. smile


  [ # 2 ]

Hi James,

my virtual assistant uses Wikipedia as kb: - when you enter a search term it tries to find a definition for it using Wikipedia: e.g. (see:

You can find more information about it in this thread:

However, I don’t use Program O for it



  [ # 3 ]

Thanks Dave and askDavid for your reply.



  [ # 4 ]


James, you might want to look at University of Waikato WikipediaMiner.  (Note, Waikato also does the popular Java machine learning package “WEKA”.)  I know that there are many sub-sets and corpora of Wikipedia available in a variety of formats.  I believe Paul Allen’s “Digital Aristotle” has even based their knowledgebase on the humanly editable “wiki” format.


  [ # 5 ]

Hi James,
We have used the wiki format and have tied into as one KB. We ended up using a module that was designed inhouse to mine any webpage and it seems to work OK.  David your page is very impressive in its cleanliness of design and its functionality. If I may ask, how did you mine the text only portion of the WIKI? I kept thinking that there had to be a simpler way when I dug through the Wiki API (no tags or other HTML) but I couldnt find it!
Kudos to David and good luck to you James.

Vincent Gilbert


  [ # 6 ]

Thanks to everybody who responded to my query. Is there any other open source chatbot implementation that has the functionality to tie wikipedia as its knowledge base?



  [ # 7 ]

I doubt anyone has this “built-in”. The issue is that Wikipedia contains a lot of text, but it’s not structured, so it can’t be converted easily into a knowledge base.  DBPedia and Yago2 are examples of databases which were partly built using information from Wikipedia.  Tying those into a KB would be more straightforward. Can you give an example of the behaviour you would like to achieve?


  [ # 8 ]

here’s the API I use on


  [ # 9 ]

Thanks ask David, I will check the API you used for your Indeed I am looking for a chatbot question answer functionality OliverL. Instead of hand crafting the knowledge base for the chatbot, I want to use wikipedia as a knowledge base for the chatbot where the chatbot will look for the answers. Once it finds the answer from wikipedia then it saves that answer in the local database for future use. Currently I am using program o with customized aiml file sets.



  [ # 10 ]

you could also hook up to our knowledge API:


{note: URL links re-formatted to provide correct locations. smile }


  [ # 11 ]

Karsten, do you offer customizable versions of your API?  I mean the base API plus additional custom knowledge?


I recently sent the same question to Existor (above), but have gotten no response from them….


  login or register to react