...
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
...
В этой инструкции:
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Variable types
...
.
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
...
...
...
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
...
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
...
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.