Skip to main content
The States functions are used to manage a conversation’s State. They let you get the current State, update it to a new value, or reset it to its default.

getState

Syntax: getState() Returns the current State of the conversation.

setState

Syntax: setState(state) Updates the conversation State to a specified State. The State must be one of the States defined in the current Flow via NLU > States.

resetState

Syntax: resetState() Resets the conversation State to its default value.
I