Teneo manages the active flows in a flow stack. When a flow is triggered it's put on top of the stack, and as soon as it's completed, it will be removed from the stack.
The flow stack is thus made up of all the flows that have been triggered but have not yet finished.
The top flow is the flow that is currently being processed.
Generally there is only one flow on the stack at a time. The stack may grow higher if an active flow gets interrupted. This may happen if the user asks for a clarification instead of responding to the bot's question, or responds with something that the bot does not understand. In those situations another flow will be triggered and put on top of the stack. That flow is then the active flow. Once it's completed, Teneo will drop it from the stack, and the interrupted flow will be back on top and resumed.
You can easily specify if your flow should remain on the flow stack if interrupted. Flows are only kept on the stack if the output that was interrupted was set to be revisitable.
Teneo manages the flow stack automatically for you. You can however access and manipulate the flow stack programmatically using the Engine scripting API. You may for instance force the stack to be cleared in certain situations. More on that here: How to clear the flow stack.
Was this page helpful?