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
  1. Scripts
  2. Actions

Process message

PreviousButtonsNextExtract data

Last updated 2 years ago

The "Process message" action processes the message from the subscriber. Allows you to immediately extract the necessary data and write it to a variable.

To add an action, select it on the auxiliary panel (on the left), or right-click in an empty area of ​​the screen.

An action block will appear on the script screen. A menu will open on the right.

If you do not check any boxes in the block menu, the bot will simply allow the person to enter a message and move on to the next specified block.

However, the "Set Message Template" and "Retrieve Attachments" options allow you to retrieve data and save user attachments to variables.

Check the box "Set message template" and enter the template. The main element of the template is any word(s) in brackets <>

Template example: "phone and mail ". That is, we expect the user to send us their phone number and mail in this format.

For example, the message "phone number 89123456789 and mail client@mail.ru" is suitable for such a template (it is good to inform the user in advance that he needs to write his data in this way).

The bot will extract "89123456789" and "client@mail.ru" and write it to the variables you specify.

In the same way, you can extract attachments from a sent message, select their number, type, and maximum size.

Now you know how to apply the "user input" action.