Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Переменная - это элемент, в котором можно хранить значение. При отправке переменной подписчику, ему подставиться и придет значение этой переменной.

Использование переменных

...


Переменные используются в сообщениях. Вставьте в текст название переменной в фигурных скобках 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} -

...

Note

В чатах платформы будет отображаться имя переменной, в сообщении подписчику же придет значение переменной. Чтобы увидеть значение переменной в чатах платформы, нужно навести курсор на название переменной.

Следующие стандартные переменные, работают только в Order Status Message (Сообщения статуса заказа)returns the phone number that is recorded in the client’s card. If there is no phone, then nothing will come.

Note

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}

...

Данные переменные используются для частичной оплаты. Важно размещать их в сообщении об успешной оплате частичного заказа (в фигурные скобки).

Произвольные переменные

Вы сами можете добавлять свои переменные в компанию и задавать им произвольные значения и названия. Подробнее на странице Управление переменными

Image Removed Теперь пользовательские поля можно использовать в качестве переменных как в чате, так и в туннеле продаж. Чтобы прописать переменную в туннеле продаж нужно открыть фигурную скобку и ввести {название пользовательского поля}. Подробнее на странице Пользовательские поля(кастомные поля).

 .

...

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).

 .

Info

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.


...