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.
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.
Syntax
resetState()
Description
Resets the conversation State to its default value.
Returns: Promise<string> — a promise resolving the name of the default State.
Example
// Reset the conversation state to the default state
resetState().then((defaultState) => {
console.log(`Conversation state has been reset to: ${defaultState}`);
});