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

Global Variable
 
 

Hi guys..
Could somebody help to find a way to share a variable for all users?..

Example..

deliverystate=“Sorry our delivery is out of order for 30 minutes”

Once the delivery is ok, change the state from the same bot master user..

<set deliverystate=undefined>


rivescript 2.0 (perl)
Thanks.
rv

 

 
  [ # 1 ]

Hey Rafael

Bot variables are sort of like that, and can be set in a similar way.

<bot deliverystate=Sorry our delivery is out of order for 30 minutes

You can also set these via Perl (i.e. in an object macro or from your program) with the setVariable function, like `$bot->setVariable(“deliverystate”, “etc”)`

 

 
  [ # 2 ]

Thanks Noah!!

 

 
  login or register to react