...
...
Description
If you use information in the tunnel funnel that changes periodically (such as date, price, etc.), then in order not to go through tunnel instead of updating the funnel blocks each time updating the information, you can use variables. Create a variable, give it a name and a value, and paste insert its name into the message. The name of When the message is sent to the client, the variable name will be replaced by its value at the time the message is sent to the client.
В этой инструкции:
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Variable types
There are 4 .
Types of Variables
There are four types of variables: Single Value, Array of Unique Values, Chat Template, and Link.A single value
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
...
...
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 in the window that opens, enter the required desired name in the corresponding “Name” "Name" field at the top of the window, after entering, click on . 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 will 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, "DayMonday".
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 do not cannot contain Cyrillic characters (Latin alphabet letters and numbers can be usedare allowed). Letter case is sensitiveconsidered. Therefore, if you gave name the variable name “color”, and then "color", but later want to use the variable “Color” (with a capital letter) "Color" in the message, the value will not be sent, since these are different variables for the system;delivered as the system treats them as different variables.
Select the variable type - an array of unique values;— Array of Unique Values.
Select a separatordelimiter, for example, ";" (semicolon);
Variable values can be set .Set the variable value manually (Data sourceSource: text) or by loading upload from a file (Data sourceSource: file). You can load from any Any text file can be uploaded, but the values in the file must be separated by the selected delimiter.When you select “text”
If you choose "text", enter the values in the field below using the selected separatorseparated by the chosen delimiter: green;red;blue. As a result, we you get 3 three values of one variable, in our case “color”, separated by “semicolon”:
for the variable "color" with the delimiter "semicolon":
Click the Create button; “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
...
Creating a variable of type "Chat Template"
...
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 not cannot contain Cyrillic characters (you can use Latin letters and numbers ), and the are allowed). The character limit in for the variable content is 255.
Using a Chat Template Variable
To use a the variable, you need to click on 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 you hover hovering over a variable, a tooltip will appear with the value of the variable (5)variable value will appear.
Only in Chat Template variables can you use the new system variable {me}, which contains the name of the person in employee from your company who is sending the message. More information about the variables in our system here. Info
Creating a
...
Link Variable
If you want to insert a button into a in the message that, when clicked, will open a website, then we you can do it so as follows, using a variable:
...
The
...
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} variable contains a part of the link, starting after the domain. This type of variable cannot be fully inserted entirely into a the link insertion line row in a the button menu of the Link type.Thus, you can simplify working with links by using variables of the Link type.