resetNextNodes - Cognigy Documentation

Syntax

resetNextNodes()

Description

Clears any active overrides for the next Node in the Flow.This function is useful when:

Returns: void

Example

// Imagine you previously used setNextNode("fallback-node") to redirect the Flow.
// Now, you want to clear that override so the Flow continues as originally defined.

resetNextNodes();