Variables
UA | US | RU
|
---|
A variable is an element in which a value can be stored. When sending a variable to a subscriber, substitute it and the value of this variable will be received.
Using Variables
Variables are used in messages. Insert the name of the variable in curly brackets into the text - {variable_name}. Then the recipient of the message will see its contents instead of the name of the variable.
Standard variables will help you better understand how they operate. About them below.
Global Variables
Every company has a standard set of variables by default:
{name} or {first_name} - Instead of the specified variable, the value of the name (nickname) of the user to whom it was sent will be pulled up. The name is taken from the client card through which the client is connected to you.
Example: we make a newsletter with the text “Hello, {name}!”. A client with the name "Sergey Pavlov" will receive a message "Hello, Sergey!", and a user with the name "Michael Jordan" will receive a message "Hello, Michael!";
{messenger_name} - pulls up the username specified in the messenger.
{last_name} - returns the last name of the message recipient, if any;
{email} - returns email that is stored in the client's . If there is no mail, then nothing will arrive;
{phone} - returns the phone number that is recorded in the client’s card. If there is no phone, then nothing will come.
The name of the variable will be displayed in platform chats, and the value of the variable will be sent to the subscriber in a message. To see the value of a variable in platform chats, you need to hover over the variable name.
The following standard variables only work in the Order Status Message:
{order_number} - returns the order number that served as the message trigger;
{order_title} - returns the title of the offer that served as the trigger for the message;
{order_price} - returns the price of the offer that served as the trigger for the message;
{order_currency} - returns the currency of the offer that served as the trigger for the message;
{order_status} - returns the current status of the offer that triggered the message.
Partial payment variables:
{partial_success_payments} - shows the number of successful partial payments for the offer
{partial_resolve_percentage} displays the payment percentage at which the offer will be considered paid.
These variables are used for partial payment. It is important to place them in the message about successful payment of a partial order (in curly brackets).
Arbitrary variables
You can add your own variables to the company and give them arbitrary values and names. More details on the Variable Management page.
Custom fields can now be used as variables in both chat and the sales tunnel. To register a variable in the sales tunnel, you need to open the curly brace and enter {name of the custom field}. More details on the page Custom fields (custom fields).
.
the number of characters included in the variable is also taken into account in the total number of characters available for input in a particular messenger.