function startSession()
The $jsapi.startSession() method starts a new session.
The contents of the $session are cleared immediately when you call up the method. The new question of the user and the bot’s response go to the new session.
How to use
theme: /
state: Greeting
q!: * *start
q!: (hello|hello) *
script:
$jsapi.startSession();
a: Hello! How can I help you?
state: Goodbye
q!: (bye|goodbye|bye) *
script:
$jsapi.stopSession();
random:
a: Have a good day.
a: Goodbye!