> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# States

<Warning>
  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](/ai/platform-features/nlu/intents/conditions).
</Warning>

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`](/ai/for-developers/function-reference/states/getState)

**Syntax:** `getState()`

Returns the current State of the conversation.

## [`setState`](/ai/for-developers/function-reference/states/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`](/ai/for-developers/function-reference/states/resetState)

**Syntax:** `resetState()`

Resets the conversation State to its default value.
