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

Compare last executed rule tag
 
 

Hi,

I want to achieve the following:

topic: ~test[]
# greeting
uGREETING (~emohellohi.
u: (*) if (^lastExecutedRuleIs(GREETING))
         
{
           
# do something
         


This should also work across topics:

topic: ~anothertest[]
# greeting
u: (*) if (^lastExecutedRuleIs(~test.GREETING))
         
{
           
# do something
         

I know I could achieve this setting variables in each rule, but I don’t wan’t to make changes to every rule.
So what I need is some kind of behavior to save the last executed rule id in controlscript and compare it if needed? Or is there a better solution?

 

 

 

 
  login or register to react