executeFlow
Syntax: executeFlow(config)
Executes a target Flow starting from a specified Entrypoint Node.
setNextNode
Syntax: setNextNode(nodeId, flowId)
Sets a custom Node with the given nodeId
to be executed immediately after the current one.
resetNextNodes
Syntax: resetNextNodes()
Clears any active overrides for the next Node in the Flow.
addConditionalEntrypoint
Syntax: addConditionalEntrypoint(params)
Adds a conditional Entrypoint for the current conversation. This condition is used by the Optional Question Node.
(Deprecated) think
Syntax:think(text, data)
Restarts Flow execution with a simulated input.
thinkV2
Syntax:thinkV2(text, data)
Restarts Flow execution with a simulated input using the provided text and data.
stopExecution
Syntax: stopExecution()
Stops processing the current input after this Node.
getExecutionAmount
Syntax: getExecutionAmount(nodeId)
Retrieves the number of times a Node with the given nodeId
has been executed during this conversation.
setExecutionAmount
Syntax: setExecutionAmount(nodeId, value)
Returns the number of times the Node with the given nodeId
has been executed in the current conversation.
resetExecutionAmount
Syntax: resetExecutionAmount(nodeId)
Resets the number of executions to 0 for the Node with the given nodeId
.