To send randomized responses to clients, configure the options below. You can use entire phrases, individual words, numbers, or attachments.

In the case when it is necessary to send a phrase, the response options need to be written in the format {text1|text2|text3}, for example:

How the bot works:

Sending a random attachment:

To randomly output a link, the URL list need to be written in the format
<link1><$><link2><$><link3>, example:

Bot testing:

Sending a random number:

To generate a random number, call the random function with lower and upper bounds and assign it to a variable. Then, output the value in a bot message by referencing the variable inside #{}.

Example:

Bot testing:

Sending a random phrase:

To potentially reduce the risk of being blocked in WhatsApp broadcasts, it's recommended to vary your message content slightly for each recipient. You can automate this by using curly braces {} and the vertical line | to define random text variations within a sentence. Example:

{Hi|Hello}. I want to sell my training program.

Bot's answers:

Sending a random response:

Let's take an example of how to send a randomly selected comment to a client on Instagram.

The select_random('str1|str2') method is responsible for selecting a random string

where str1 и str2 -are variables in the value of which the answer options are written.

For sending a response to a comment under a post that the client commented on - insta_create***_***comment("str")

where str - is the variable with the value of the result obtained by the select_random method.

You can use any other method of sending messages instead of insta_create_comment().