SmartbotPro
  • Smartbot Pro – messenger marketing tool
  • Most important
  • Mini-course
    • Registration and personal account
    • Initial scripting tools
    • Creating the first script
    • Users and collection of information
    • Applications, variables and managers
    • Data validation
    • Collection of applications for a webinar within Telegram
    • Testing unpublished scripts
    • Newsletters
    • Template "Test with a set of points"
    • Statistics
    • Interface hacks
  • Beginning of work
    • Registration in the service
    • More about scripts
    • How to add messenger
      • Adding Telegram
        • Adding a bot to a group chat in Telegram
      • Adding ВК
      • Adding Viber
      • Connecting a channel to a script
      • Linking a social network account
  • Scripts
    • Basics
      • Create a script
      • Script templates
      • Editor interface
      • Publishing a script
      • Script testing
      • How the script is chosen
    • Script events
      • Message from user
      • No appropriate script
      • First message
      • VK Events
      • Webhook
    • Actions
      • Send a message
        • Buttons
      • Process message
      • Extract data
      • Change context
      • Write to statistics
      • Send Notification
      • Switching to another script
      • Working with the user
      • Set variable
      • Scheduled transitions
      • Run SmartQuery
    • Conditions
      • Condition
      • Condition with options
      • Conditions of VKontakte
    • Variables
      • Special Variables
      • User variables
      • Global variables
      • Variable %ref%
    • Acceptance of payment
    • Telegram bot menu
    • Integrations
      • Google-таблицы
      • http request
      • amoCRM
      • Get Course
      • Yukassa for receiving payments
    • Reactions
  • Newsletters
  • Settings
    • Projects
    • Cabinets
  • Information sections
    • Statistics
    • Users
  • SmartQuery
    • Introduction
    • Language syntax
    • Function Reference
  • The documents
    • Privacy Policy
    • Terms of service
    • Subscription and rates
Powered by GitBook
On this page
  • User change
  • Change chat
  1. Scripts
  2. Actions

Change context

You will learn how to switch from one user to another, switch during communication to different chats within the same social network, from comments to private messages, and vice versa.

PreviousExtract dataNextWrite to statistics

Last updated 2 years ago

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

User change

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

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

  • user link

  • or its id

  • or a mention

  • or a variable that stores one of the above.

One thing is enough for a bot.

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

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".

Change chat

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.

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

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

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

Remember that you can switch between chats only within the same social network: Telegram or VKontakte, but not between them

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.

😄
Укажите ссылку на комментарий, на который бот должен будет ответить