...
В этой инструкции:
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Типы переменных
Есть 4 типа переменных: "Одиночное значение", "Массив уникальных значений" "Шаблон для чата" и "Ссылка".
- Одиночное значение может содержать в себе только одно значение (один ключ = одно значение);
- Массив уникальных значений может содержать в себе массив значений (один ключ = значение1;значение2;значение3...). Этот тип может быть использован для отправки каждому клиенту уникального значения: уникальных пригласительных ссылок, кодов доступа, промокодов;
- Шаблон для чата содержит в себе текст, который можно просто добавить в сообщение на странице чатов;
- Ссылка - предназначена для хранения части ссылки. Можно вставлять в URL, после домена.
Как создать категорию переменных?
Переменные делятся по категориям. Прежде, чем создать новую переменную, должна быть создана хоть одна категория переменных.
Для того, чтобы добавить новую категорию, зайдите в Настройки --> Содержимое --> 8355865 и нажмите кнопку Добавить новую категорию:
...
Как создать переменную?
После того, как создана хотя бы одна категория, будет возможность создавать свою переменную. Для этого, перейдите в созданную категорию и нажмите на блок Добавить новую переменную:
...
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Создание переменной типа "Одиночное значение"
...
Переменная получает одно постоянное значение, которое можно использовать бесконечное число раз и которое будет приходить подписчикам, при вызове через имя переменной.
Создание переменной типа "Массив уникальных значений"
...
Вы можете добавлять значения переменной после её сохранения. Просмотреть весь список значений переменной на данный момент невозможно, но можно посмотреть их количество (сколько осталось неиспользованных) в пункте "Элементов осталось", "Содержимое":
Создание переменной типа "Шаблон для чата"
Создание этого типа переменной аналогично созданию переменной типа "Одиночное значение" (см. выше), только тип переменной нужно выбрать Шаблон для чата. Напоминаем, что имя переменной должно состоять только из одного слова и не содержать символов кириллицы (можно использовать латиницу и цифры), а лимит символов в содержании переменной - 255.
Для использования переменной, нужно нажать на стрелочку, слева от поля ввода сообщения в чате с клиентом (1). Вы увидите список имеющихся у вас переменных этого типа (2). Кликните по одной из них (3), и ее содержимое (текст) будет скопировано в поле ввода сообщения (4), откуда оно может быть отправлено клиенту. При наведении на переменную, появится всплывающая подсказка с значением переменной (5).
Info |
---|
Только в переменных типа "Шаблон для чата" можно использовать новую системную переменную {me}, которая содержит в себе имя сотрудника вашей компании, который отправляет сообщение. Дополнительная информация о переменных в нашей системе здесь. |
Создание переменной типа "Ссылка"
Создание этого типа переменной аналогично созданию переменной типа "Одиночное значение" (см. выше), только тип переменной нужно выбрать Ссылка. В содержимое переменной нужно вставлять адрес, начиная после домена. К примеру, в https://leeloo.ai доменом является leeloo.ai. Если мы хотим вставить в сообщение кнопку, по клике на которую будет открываться сайт, то мы можем сделать это следующим образом, используя переменную:
Переменная {dashboard} содержит в себе часть ссылки, начиная после домена. Этот тип переменной нельзя вставлять целиком в строку вставки ссылки в меню кнопки типа Ссылка.
...
Description
If you use information in the funnel that changes periodically (such as date, price, etc.), instead of updating the funnel blocks each time, you can use variables. Create a variable, give it a name and a value, and insert its name into the message. When the message is sent to the client, the variable name will be replaced by its value.
Types of Variables
There are four types of variables: Single Value, Array of Unique Values, Chat Template, and Link.
Single Value can hold only one value (one key = one value).
Array of Unique Values contains an array of values (one key = value1;value2;value3…). This type is used for providing unique values to each client, such as invitation links, access codes, and promo codes.
Chat Template contains text that can be easily added to messages on the chat page.
Link is designed to store part of a URL that can be inserted into the URL after the domain.
Info |
---|
Variables are divided into categories. Before creating a new variable, at least one variable category must be created. |
To add a new category, go to Settings → Content → Variables
...
Click “+ Create Category”
...
Info |
---|
If necessary, you can give a name to the category. By default, the category name is "New category." |
...
To change the name, click on the category name and enter the desired name in the "Name" field at the top of the window. Click the "Save" button after entering it.
...
How to Create a Variable?
Once at least one category has been created, you can create your variable.
Go to the created category.
...
Click “+ Add New Variable”
...
The next steps depend on the type of variable you want to create:
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Creating a Single Value Variable
...
Give the variable a name, such as "Day".
Select the variable type — Single Value.
Enter the variable content, for example, "Monday".
Click the “Create” button.
Note |
---|
The variable name must consist of only one word and cannot contain Cyrillic characters (Latin letters and numbers are allowed). Letter case is considered, so if you name a variable "Day" but use "day" (with a lowercase letter) in the message, the value will not be delivered as the system treats them as different variables. |
Note |
---|
The character limit for variable content is 255. |
Info |
---|
The variable gets a single constant value that can be used an unlimited number of times and will be sent to subscribers when called by its name. |
Creating an Array of Unique Values Variable
...
Name the variable, for example, "color". The variable name must consist of only one word and cannot contain Cyrillic characters (Latin letters and numbers are allowed). Letter case is considered. Therefore, if you name the variable "color", but later want to use "Color" in the message, the value will not be delivered as the system treats them as different variables.
Select the variable type — Array of Unique Values.
Select a delimiter, for example, ";" (semicolon).
Set the variable value manually (Data Source: text) or upload from a file (Data Source: file). Any text file can be uploaded, but the values in the file must be separated by the selected delimiter.
If you choose "text", enter the values separated by the chosen delimiter: green;red;blue. As a result, you get three values for the variable "color" with the delimiter "semicolon":
Click the “Create” button.
Using an Array of Unique Values Variable
In the message to clients (in the funnel block, chat, or message template), write the variable name in curly brackets (in this case, {color}) and send the message. Remember that letter case matters.
...
When sending a message to three subscribers, each of them will receive a unique value of the variable, starting from the end. The first subscriber will receive the third value of the {color} variable — "blue", the second — "red", and the third — "green".
...
The variable values will be sent sequentially, starting from the last one. You can use more than three variable values — there are no restrictions on the number of values. When the variable values run out, the variable will simply not be sent. This type of variable can be used for sending unique invitation links, access codes, or promo codes.
How to Update the List of Variable Values?
It is currently not possible to view the entire list of variable values, but you can check their count (how many remain unused) in the "Remaining Items" and "Content" sections.
...
You can add variable values after saving them.
To do this, open your variable and enter new values in the "Content" field, then click “Save”.
...
Creating a Chat Template Variable
Creating this type of variable is similar to creating a Single Value Variable, but you need to select the variable type "Chat Template".
...
Give the variable a name, for example, "hello".
Select the variable type — Single Value.
Enter the variable content, for example, "Good day!".
Click the “Create” button.
The variable name must consist of only one word and cannot contain Cyrillic characters (Latin letters and numbers are allowed). The character limit for the variable content is 255.
Using a Chat Template Variable
To use the variable, go to the chat with the subscriber:
...
Click the arrow to the left of the message input field in the chat with the client.
Click the required variable.
The content (text) will be copied to the message input field, from where it can be sent to the client.
When hovering over a variable, a tooltip with the variable value will appear.
Only in Chat Template variables can you use the new system variable {me}, which contains the name of the employee from your company who is sending the message.
Creating a Link Variable
If you want to insert a button in the message that, when clicked, will open a website, you can do so as follows, using a variable:
...
Give the variable a name, for example, "Site".
Select the variable type — Link.
Enter the variable content, for example, app.leeloo.ai.
Click the “Create” button.
The variable {dashboard} contains a part of the link, starting after the domain. This type of variable cannot be fully inserted into the link insertion row in the button menu of the Link type.