# Change context

The context change block is created, like the others, by right-clicking in an empty area of ​​the desktop.

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FbpBUYKCbOenbABUJ0chl%2F%D0%91%D0%BB%D0%BE%D0%BA%20%D0%BF%D0%BE%20%D1%83%D0%BC%D0%BE%D0%BB%D1%87%D0%B0%D0%BD%D0%B8%D1%8E.png?alt=media&#x26;token=b8f6ac3f-2792-4ecf-b354-4e21ae894cf3" alt=""><figcaption></figcaption></figure>

### User change

In the "User" subsection, we choose whether to switch to another person or stay on the current one:

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FOLlop5ASmp8dGOWWid1Y%2F%D0%9F%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8C.png?alt=media&#x26;token=b79a07f3-bd28-412e-85c1-718a1b0e9bf8" alt=""><figcaption></figcaption></figure>

If you need to change the context to another person, select the "Change user" item and enter in the window that appears:&#x20;

* user link
* or its id
* or a mention&#x20;
* or a variable that stores one of the above.&#x20;

One thing is enough for a bot.

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FY0rW8uhMxZG6HaSlkr2J%2F%D0%92%D0%B2%D0%B5%D1%81%D1%82%D0%B8%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5%20%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8F.png?alt=media&#x26;token=890992c6-6c52-4f4c-85b1-ee6063ca7777" alt=""><figcaption></figcaption></figure>

You can not only enter user data, but also switch to the manager.

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2Fb8B2VbU1j5zbF1q4xFUi%2F%D0%9D%D0%B0%20%D0%BC%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80%D0%B0.png?alt=media&#x26;token=e32e7f6f-0e7c-4956-8e97-f17be4925017" alt=""><figcaption></figcaption></figure>

And in order to return to the previous user after changing the context, it is enough to create another "Change context" block and check the box "Return to the previous user".

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F9x7gpZqJZAkl9gnvUg03%2F%D0%92%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%82%20%D0%BA%20%D0%BF%D1%80%D0%B5%D0%B4%D1%8B%D0%B4%D1%83%D1%89%D0%B5%D0%BC%D1%83.png?alt=media&#x26;token=1873e6e9-fed8-4562-abb5-fa53b35fe86a" alt=""><figcaption></figcaption></figure>

### Change chat&#x20;

In the "Chat" subsection, we can change the chat in the channel where communication with the user takes place, as well as switch from comments to PM and vice versa.

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FfRLjjG4hEP79oBWRyPog%2F%D0%9F%D0%BE%D0%B4%D1%80%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%A7%D0%B0%D1%82.png?alt=media&#x26;token=7ff860db-5138-4326-a826-3883777d2c25" alt=""><figcaption></figcaption></figure>

In this case, you can both switch to a new person, or simply change the chat for the current user.&#x20;

For example, within the framework of VK, you can switch between conversations: the user writes in one and receives an answer in another.

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2F1iAMtjYtbQr6OiVezvSH%2F%D0%98%D0%B7%D0%BC%D0%B5%D0%BD%D0%B8%D1%82%D1%8C%20%D1%87%D0%B0%D1%82%202.png?alt=media&#x26;token=e6694003-bfd6-4063-a71e-8fa26c776f51" alt=""><figcaption></figcaption></figure>

With the same success, you can switch from private messages of the group to comments and vice versa!

<figure><img src="https://1932399487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRfd5lEYYH6D50QjzeAX%2Fuploads%2FAB7Wz423ekQqLqm3uqfU%2F%D0%9D%D0%B0%20%D0%BA%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D0%B9.png?alt=media&#x26;token=6539daff-431b-4a5f-99cc-aaf8a80b8e0f" alt=""><figcaption><p>Укажите ссылку на комментарий, на который бот должен будет ответить</p></figcaption></figure>

{% hint style="info" %}
Remember that you can switch between chats only within the same social network: Telegram or VKontakte, but not between them&#x20;
{% endhint %}

Context change is a powerful tool for users to interact with each other and quickly change the field of communication. We hope you find it useful in your projects.:smile:
