# Switching to another script

{% hint style="info" %}
"Move to another script" allows you to "redirect" the user to a neighboring script from the current thread.&#x20;
{% endhint %}

Let's create a transition through the side menu, or by right-clicking on a free area of ​​the screen.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FDOxXQN4EYK2XMN7RbWMr%2F1.png?alt=media\&token=dc2c783a-0d55-43d4-8b48-226a30075b05) ![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FnmkqPrx6yxt5Xohc0GTz%2F2.png?alt=media\&token=3ee5e3b5-b092-4cec-b93d-3ee6ea64d0f1)

In the block menu, you can enter the name of the action and choose where to go.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FATw4OSRJWhkMidyx8WDl%2F3.png?alt=media\&token=f9a75a1f-3f4e-4592-a0a2-0c752b62a07c)

Click "Create Transition". In the pop-up window, we need to select a script and a block for the transition.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FrZlcCdgi1FTnJcVDDfvE%2F4.png?alt=media\&token=2dacd9cb-7664-48ea-b29c-e759c97e6f1f)

It is important to give blocks unique names to save time when looking for the right one.

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FcsuFx3T4N0FWYwA147qK%2F5.png?alt=media\&token=8e09d07f-cdaa-4ab9-aa6c-a09dccb20192)

When the appropriate block is selected, click "Add"&#x20;

Now the selected block is displayed in the "Transition" block menu:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FP0nHyOIrm8vl3nP0pU0v%2F6.png?alt=media\&token=a9c09f0b-7d58-4a95-b7ae-79aee4c3c1fe)

&#x20;

It remains only to embed the block with the action "Transition" in the right place in the chain:

![](https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F5U9Ps0QpgBG139sWb2I5%2F7.png?alt=media\&token=a03894cf-6ac1-4811-8522-77479a5f8326)

For example, first our user will go to the welcome chain (common to everyone); then select the "buy product" option, and the bot will send it to a separate script, where all the sale mechanics are worked out.&#x20;

Similarly, the user will be able to return.&#x20;

Now you know how to move the user between your scripts.
