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
  • Attachments
  • Additional settings for the "Send message" action
  1. Scripts
  2. Actions

Send a message

The "send message" action allows the bot to send text, emoji, buttons, and attachments to the user.

PreviousActionsNextButtons

Last updated 2 years ago

Right-click on an empty area of ​​the screen and select the action "send message":

Or select the same action in the left additional menu:

The "Send message" block will appear, and its settings menu will open on the right:

In the block settings menu, you can give a unique name to the action block, enter the desired message text, add buttons and attachments, and select the next block.

Attachments

You can attach to the sent message:

  • image

  • video

  • audio recording

  • a voice message

  • sticker

  • document

  • other files

To do this, click on the paperclip icon to the right of the text input field:

In the attachment download window that appears, select whether to download the file from your device or via social networks. net.

Please note: if your account in the social network is not linked to Smartbot PRO, then you first need to go through authorization.

In the second case, you need to write in the LAN of your bot (in VK or Telegram) a special command /sb:upload

After that, your bot will enter attachment download mode. It remains only to send the files.

Uploaded files are available in the attachment selection window. Click on the one you need so that a check mark appears on the right, and click the "Add Files" button:

Our picture appeared in the list of block menu attachments:

Additional settings for the "Send message" action

In additional settings, you can enable waiting for a response from the user. In this case, the bot will not do anything until the person writes to him. You need to wait for a message if you ask the user a question or offer a choice.

You can also set a timeout limit.

Then a timer icon will appear on the block, and two ways to continue in the block menu: if the user managed to send a response and if the time has expired.

If you check the "Disable global search" checkbox, the user will not be able to move from the current script chain to another one by writing a command of another chain.

Don't forget that the bot always needs a message from the user to start working. So don't forget to bind actions to events:

This is how a possible message with an attachment in Telegram looks like:

And so in VKontakte:

Now you know how to send messages to Smartbot Pro!

Так выглядит прикрепление вложений через TG
Бот не будет ничего предпринимать, пока человек не напишет сообщение