AI Zone Admin Forum Add your forum

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

^import command questions
 
 

The “ChatScript External Communications.pdf” document describes an ^import command:

“^import(name set erase transient) – Name is the file to read from. Set is where to put the read facts.  Erase can be “erase” meaning delete the file after use or “keep” meaning leave the file alone. Transient can be “transient” meaning mark facts as temporary (to self erase at end of volley) or “permanent” meaning keep the facts as part of user data.”

The following is not working:

u:(test3) ^keep() ^repeat()
^import(”\RAWDATA\WORLDDATA\testfacts.tbl” @1 keep permanent)
Got data.

Does the file need to be in a specific directory?  Can the path/filename be relative to the chatscript directory?

Does the file to be imported need to have anything other than three columns of information?  Is there a specific header row, table macro, or concept definition required? 

 

 
  [ # 1 ]

the file name is relative to the CS main directory. The contents are “as output by export” which means you’d see
[ subject   verb   object ]
[ subject verb object ]
data.

 

 
  login or register to react
‹‹ Nesting Random output      Canonical forms ››