Skip to main content

Syntax

getState()

Description

Returns the current State of the conversation. Returns: string — the current State.

Example

// Get the current conversation state
const currentState = getState();
console.log(`Current state is: ${currentState}`);
I