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

Output priority
 
 

Hi!
My test bot uses Harry’s simplecontrol.top file and a tutorial.top with three lines of code:

topic: ~introductions (introduction)
u: ()  Welcome
u: (test[test one] [test two] [test three] [test four] 

The results looks like this:

HARRY:  I don't know what to say.
user: > :reset
HARRY:  Welcome!
user: > test
HARRY:  Test three
user: > :reset
HARRY:  Welcome!
user: > test
HARRY:  Test three
user: > :reset
HARRY:  Welcome!
user: > test
HARRY:  Test three 

Question:  why does it start from the third possible reply every time?
I want it to select the reply randomly.

By the way, if I create three topics with simple reply in each its always start from the second one. I do not know why it’s acting like that.

Thank you very much for your answer.

 

 
  [ # 1 ]

Every time you do :reset, you blow the chatbots brains out and it starts from scratch. It is not TRULY random. it is random at some depth inside a continuing conversation.

 

 
  [ # 2 ]

Hi,

thanks for the clarification Bruce.
Is there anyway to detect when a RULE will be disabled to re-enable it.

I want a RULE to be able to answer all the time, but the way ^repeat() works doesn’t fit my needs. The random is not good, i like the way it works when there is no repeat().

So, I want to be able to check when the last output will be said and then reactivate the rule.

Thanks

 

 
  [ # 3 ]

^getRule(USABLE $_tag )

a rule tag is either ~category.RULELABEL or ~category.n.m where you probably got the rule tag earlier from a call to ^getRULE(TAG ~) while you were at the rule

 

 
  login or register to react