What is the purpose of the Random Number Action?
The Random Number Action is capable of generating random numbers within a specified range.
With this Action, you can send a user one of the pre-written scripts as a response to the user's action in the automation.
This Action allows you to implement various mechanics, such as:
sending a random response when the automation starts or within a chain
awarding a random number of points in the game
creating a Wheel of Fortune where each participant can try their luck
and other options that you can come up with on your own😉
How to create a random number?
To set up random number generation:
Open automation
Create a new Action block
Click on the new Action block
Select the Random Number Action
Customize the range by specifying the minimum and maximum random number
Select a variable into which value of the random number from the selected range will be saved
Done! As soon as the user reaches this action - the random number will be automatically saved to the selected variable.
How to use a random number?
Create a new Condition block
Click +Add Condition
Select the Variable Value Condition
Now сustomize the Condition:
Select the variable in which the random number is stored
Set the parameter to Is, which means that the stored variable value is exactly the same as the value you specify
Enter the minimum number specified in the Random Number Action as the value of the variable
After that:
Click +Add Condition again
Select the Variable Value Condition
Customize the Condition similar to the previous condition by increasing the variable value by 1
Add multiple Variable Value Conditions, in each Condition increase the value of the variable by 1
A separate Condition must be configured for each possible value. The number of Conditions depends on the range of the numbers you choose.
After that, add message options for each Condition and connect all the blocks with link arrows:
This example is set up as a random response to a user who left a reaction to Stories on Instagram. You can think of any other way to use these mechanics in your automations. Specify a random number range equal to the number of options you need to continue the automation scenario.