Skip to main content
As of Cognigy.AI 2026.7.0, States are deprecated. The removal of States is planned for Cognigy.AI 2026.12.0. Before the removal, delete your States and retrain your NLU model so it no longer uses state-based Intent masking. For alternative approaches to control Intent recognition, use Intent Conditions.
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.