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..

Matching previous random outputs
 
 

Hi, I am really new to Chatscript and still haven’t finished the Advanced manual yet. I would like to know if there is a way to get data from earlier random outputs.

say I have t: Do you [enjoy][like] any [books][movies]?
              a: (~yes)—-?

I would like to run different gambits as rejoinder, possibly using an if/else clause based on which random output had come(books or movies). So how would I know which one had been generated?

 

 
  [ # 1 ]

t: do you [enjoy $verb = enjoy ][like $verb = like] any [books $subject = books] [ movies $subject = movies]?

 

 
  [ # 2 ]

Thank you. Didn’t think you could do that. Really impressed by the flexibility of Chatscript! smile

 

 
  login or register to react