yeuai/botscript

Define scope for variable

drenvir opened this issue · 1 comments

Variable in dialog need define scope:

  • Global Scope
  • Flow Scope
vunb commented

Bot creator should access flow value scope in new syntax: $flows.ask_tuoibn, $flows.ask_tenbn
Global scope will not change, it is persistent with the request, bot creator still access the value in form $variable_name, eg: $time, $today, ...

Do you agree?