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

Verify pattern with and without interjections
 
 

Hi,
I sometimes have the situation that I don’t want interjections to be handled as such, but test the actual input instead.

For this case I have written a controlscript, which sets the cs token to a token without interjections and executes the script. When no output is generated, it sets a cs_token with interjections and makes a ^retry(SENTENCE).

This works fine, the only problem I get is loosing the functionality of :verify pattern, which only tests the current value of $cs_token and ignores that I am using two values in my control script.
I have written a test topic for this case:

topic: ~test []
#! you are right
u: (you are rightwithout interjection

#! ok
u: (~yesinterjection 

Do you know a way to get this working with :verify pattern ?

 

 

 
  [ # 1 ]

Does noone have any idea how to do this?

 

 
  [ # 2 ]

#! comments can include variable assignments. eg

#! ok $cs_token=12450003
u: (~yes)

The only difference is it does not go thru the script compiler, so you cant use mnemonic names and such. You have to actually put the value you want.

 

 
  [ # 3 ]

Thank you very much Bruce.

It’s working like a charm.

 

 
  login or register to react