Skip to main content

Send SMS block

The Send SMS block allows sending SMS messages from the script to the specified phone number.

To send SMS messages, verify your phone number.

How to add the block

To add the block in the script, select Send SMS in the block menu.

Fill in the following fields in the block:

  • Phone number

    • SMS messages can only be sent to phone numbers registered in Russia.
    • The number must begin with 7.
    • The use of variables is supported.
    • Required field.
  • Message text

    • The use of variables is supported.
    • Required field.
    • No more than 6 SMS messages can be sent at a time.

Click Save.

Message length

SMS messages have the following restrictions on the number of characters:

  1. The maximum length of one SMS message is 160 characters of the Latin character set.
  2. The maximum length of one SMS message is 70 characters of the Cyrillic, Chinese, Japanese, Korean, Arabic, or Hindi character set.
If there is at least one, for example, Cyrillic character in the message, then the whole message is considered to be Cyrillic.
  1. One emoji counts as one character.
  2. The following characters count as two characters: \f, ^, {, }, \, [, ~, ], |, .
  3. If the message length is greater than the standard length, the message will be segmented when sending. Each segment is billed as a separate message, but the recipient gets a single message.
No more than 6 segments can be sent at a time.

Sending status

The Send SMS block has two outputs: Message sent successfully and Error. An Error can happen when there are no available SMS packages left.

How to use

You can send SMS messages during an inbound call directly to the client with whom the bot is communicating.
Such an approach, for example, can be convenient for sending a personalized promotional code or any other information from an external source requested by the client.

Now, let’s look through an example. During the call campaign, the bot asks a client whether to send them an SMS message about a new promotion. If the client agrees, we check whether the communication is held in the phone channel.

Add the Condition block. Then create a $receiver variable and assign the value of the $rawRequest.caller field to it.

Condition block

Create a Send SMS block and specify the $receiver variable in the Phone number field. In Message text write any text, for example, Today only, 10% off all business plans!.

SMS block

Next, add two text blocks and fill in the phrases the client will receive in case of successful or unsuccessful sending of the message. Connect these blocks with the Message sent successfully and Error outputs. Done!

Now you can integrate this example into your script.