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

Adjusting the control script
 
 

I tend to focus on responses more than gambits (not saying I don’t have any) in my scripts. However, because the control script first checks for rejoinders & responses within current topic and then check only topics with matching keyword for responses this restricts the range of responses that get matched up.

Is there any way to change the ^keywordtopics function in simplecontrol to one that returns all topics so all possible responses can be considered? i tried ^topics and ^alltopics but neither are recognized.

 

 
  [ # 1 ]

You can do in keywordless
u:() ^respond(~topic2)
u:() ^respond(~topic3)
etc.

Or you can write script that loops doing this using ^conceptlist(topic) and doing a respond on each from inside the loop

 

 
  [ # 2 ]

Thanks Bruce. I think I’ll pick the first technique even though it will be more updating as topics grow. Nonetheless, that method should let me prioritize topic selection based on preset variables for topics with identical patterns.

 

 
  login or register to react
‹‹ Minimizing if statements      POS conversion ››