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

Noob AIML question
 
 

Having trouble deciphering the right approach to using loops to output items in a list. I have a simple set file (ships.set) that contains a list of ship names:

[
[
"x""wing"],
["a""wing"],
["tie""fighter"],
["tie""interceptor"]

How do I write a response that simply lists out the ship names?

My pattern would be something like, “WHAT SHIPS #”.

Thanks for any guidance.

 

 
  [ # 1 ]

To my knowledge the pattern side <set> tag is the only way to access a set, and only checks the file, there is no way that I know of to list the file.

Just make a template that lists the types of ships (i.e. you will need to duplicate the list).

 

 
  login or register to react