When the bot script becomes too large and complex, it can be divided into several logical parts and set up transitions between them. This will simplify navigation and dialog management.
Add a block The result is in the scenario from which you want to make the transition to another scenario.
In the properties of the block:
2.1. Select Transfer to another bot in the Action type field.
2.2. Specify the target scenario in the Bot field.
Check the script to find out from which the translation was made. For this:
{previousBotId} to determine the script ID. For more information about system variables, see the article System variables.