Teneo manages the active flows in a flow stack. When a flow is triggered, it is put on top of the stack, and as soon as it is 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. While inside a flow, the user can change the context and ask something else. This will trigger a different flow and put the current one on pause.
You can follow the flow stack in the Path section of your Try Out but also with the icons under the output while talking to the bot.
Most of the time, 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?