AI Zone Admin Forum Add your forum

Chatbot Conference London On Oct 3th Erwin will be moderating on the Chatbots conference in London. Why don't you meet him there? As a Chatbots.org visitor, you'll get a discount as well: Why don't we meet there? get a discount

We do experience some trouble with our forms and some details page. We'll fix this ASAP. Sorry for the inconvenience!
Concept on database
 
 

Hello everyone
I want a way to update concepts that my bots can use through a online database. What is your recommendation on how to do this? I saw this manual
https://github.com/bwilcox-1234/ChatScript/blob/master/WIKI/ESOTERIC-CHATSCRIPT/ChatScript-PostgreSQL.md

How would we get chatscript to look in the database forthe concept

 

 
  [ # 1 ]

Either on startup OR on every volley (inefficient), you would query the db for a list of keywords. Maybe this is just a text string with words separated by space. (There are other ways).
You burst that string into its keywords, and loop thru them, creating facts like
^createfact($_keyword member ~someconcept)

Or records name a concept and its keywords, or whatever.


First, create a program that can read some record from the database.

 

 
  login or register to react