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

Patternmacro curiosity
 
 

Given the following patternmacro, is there an easy way to determine the rule that was triggered, or is there a way to incorporate an outputmacro to display which rule worked?

# Do You Have Any Questions
patternmacro: ^RULE_DO_YOU_HAVE_ANY_QUESTIONS()
[
(do you have * [question concern])
(anything * you * [like want need] *~2 [know explain say])
]

I ask because of the 100+ pattern macros that I use, some are lengthy and it’s difficult to debug which rule inside the patternmacro was triggered.

 

 
  login or register to react