<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Variables in Legacy - Engage Bot</title>
    <link>https://community.sinch.com/t5/Legacy-Engage-Bot/Variables/ta-p/19148</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;Variables, also known as attributes, allow to save user information. With variables you can easily gather information through the chat or the user profile and use it in the dialogue with the chatbot, when sending&amp;nbsp;notifications in WhatsApp&amp;nbsp;or in&amp;nbsp;chatblocks&amp;nbsp;when manually responding to a ticket.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Here are some examples for the use of variables:&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="text-align-justify"&gt;Saving user preference: product color preferences, travel destinations…&lt;/LI&gt;
&lt;LI class="text-align-justify"&gt;Personalising conversation: e.g. addressing user by a name&lt;/LI&gt;
&lt;LI class="text-align-justify"&gt;Targeting: creating target user groups for notification/content distribution, e.g. personalising content&amp;nbsp; sent to a user based on the selected news categories&lt;/LI&gt;
&lt;LI class="text-align-justify"&gt;Conditioning the conversation flow: e.g. if user name is already known, a user should not be asked for it again.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Creating variables&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Variables must be assigned a name (for example, age) and a data type (for example, number). It’s also possible to assign further attributes, such as a label, a range of valid values, default value, as well as determine variable’s lifespan and visibility on a user profile.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variablenuebersicht_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7001i2ED7CD64C531DB73/image-size/large?v=v2&amp;amp;px=999" role="button" title="Variablenuebersicht_en.jpg" alt="Variablenuebersicht_en.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;The name of the variable is defined in the relevant field. When creating dialogues in the chatbot builder you can call a variable by setting its name between two $ signs. For instance, $first_name$ in the field "user question" in a dialogue signals the bot that user's input should be saved as the first name. Variable names are case sensitive so make sure to correctly address&amp;nbsp;variables when setting up dialogues. Only alphanumeric symbols and underscores&amp;nbsp;_ can be used in variable names.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Depending on what type of information you want a variable to store,&amp;nbsp;you have to define a correct data type for the variable (see below descriptions of various data types).&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;When necessary, in the value field you can define a range of values for the variable.&amp;nbsp;For numbers, the value field can be limited with comparative operators (&amp;gt;; &amp;lt;; &amp;gt;=; &amp;lt;=). You can define numerous conditions by listing them with just a space as a separator: the space is then treated as "and." For example, to create a valid value field from 0-100 you can write the condition &amp;gt;=0 &amp;lt;=100.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Default&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;In the default field you can predetermine a default value for a variable which will be used as a fallback in chatbot answers if no other value was set.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Example:&amp;nbsp;a variable "quantity" is used in a dialogue to store information about the number of ordered products.&amp;nbsp;If a user does not explicitly indicate the amount of products to be ordered, a default value 0 will be used.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Lifespan&amp;nbsp;and profile visibility of a variable&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;A floppy disc&amp;nbsp;symbol&amp;nbsp;in the column "user profile" defines&amp;nbsp;if a variable should save values temporarily or permanently. The avatar symbol stands for the visibility of a variable on a user profile site.&amp;nbsp;The user can edit the values of variables visible on the profile page by sending a command "profile" into the chat.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Datatypes&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Each variable has to be identified with a specific data type.&amp;nbsp;Example: If a variable has datatype 'number', it can only receive numeric characters as values.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Here are some details about different datatypes.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Number&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'number' save integers as well as floats.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Word&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of&amp;nbsp;the type 'word' save text input up until the first space or punctuation mark. An input with a dash will also be interpreted as one word.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Example: If you type in 'Hans Joachim', only 'Hans' will be saved as name if a variable $name$ is of type "word". The input ‘Hans-Joachim’ written with a dash would however count as one word.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'text' can contain chunks of text, including punctuation marks.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'date' save dates. You can input dates in both German (dd.mm.yyyy.) or English (dd/mm/yyyy.) format.&amp;nbsp;Make sure that if you are importing date-values by uploading a dataset, dates should be in the format yyyy-mm-dd in your cvs-file.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Time&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'time' accept values&amp;nbsp;in 24-hour format,&amp;nbsp;such as 14:30.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;Setting variables of type location triggers a request&amp;nbsp;to&amp;nbsp;Google Maps Geocoding API. You can restrict google maps search criteria by using components filter in the field "values", such as to restrict a search only to Germany.&amp;nbsp;For more information check&amp;nbsp;Google Maps Geocoding API documentation. You can access geocordinates of the variables of type location as follows: $varname.location.lat$ and $varname.location.lng$&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Enumeration&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'enumeration' will store one value from a list of predefined values. You can enter a list of valid values separated by commas in the field "values" of a variable.&lt;BR /&gt;Example: you can store user’s consent to be contacted on the phone in a variable of type enumeration where the valid values are&amp;nbsp; "yes" or "no" (see $phone_contact$ in the screenshot above).&amp;nbsp;If a user writes "yes" or simply "1", the value of a variable will be set to "yes".&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Collection&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'collection' function in a similar way to variables of type enumeration: it can store values from a list a predefined options. In contrast to variables of type enumeration, collections can store several values at a time.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Example:&amp;nbsp; variable $favourite_colors$&amp;nbsp;can take the&amp;nbsp;values blue, green, yellow, black and red. A user can write multiple colors separated by comma like blue, black for saving multiple values. Or he/she can access list elements by their indices, e.g., &amp;nbsp;1, 4.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Depending on how many values are saved to the variable, the 'collection' type can trigger a variety of different dialogues (see screenshot below). For that an expression $variablename­_x$ can be used as user input, where, where x is the x the number of currently saved elements * the collection.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;$variablename_duplicate$ as user input in the dialogue box allows you to set up&amp;nbsp;bot-responses to a repeated input of a collection element , i.e. when the user accidentally types the the same element of a collection&amp;nbsp;twice.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;An expression $variablename_num$ provides an overview of the quantity of the saved values for a variable in the 'collection' type and can be conveniently used to condition bot-responses.&lt;/P&gt;
&lt;P&gt;With an expression $variablename_list_options$ you can return predefined values of the variables of types collection and enumeration ($variablename_list_options_bold$).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Entity&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Whilst you can call&amp;nbsp;data models directly, you can also access them through variables of type&amp;nbsp;entity. A variable with the type 'entity' recognises entity identifiers as valid values. Creating the entity thus sets the value field of the variable be a list of&amp;nbsp;entity identifiers.&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;MIA Topics&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of type "MIA Topics" save MIA categories. Multiple values are possible. This datatype can be selected upon upon creating a new variable and can be used only once.&amp;nbsp;Categories available in MIA are to be defined in the column "values". Should a category be activated for a user automatically upon MIA-subscription, put its value additionally in the column "default". In our example, a category "Popular" will be activated for a user with a MIA-optin. Other categories can be chosen on a user profile page or via the chatbot.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="var_mia-topics.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7002iCB20DB07F584F38A/image-size/large?v=v2&amp;amp;px=999" role="button" title="var_mia-topics.png" alt="var_mia-topics.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Using Variables in Dialogues&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;In the dialogues, variables are called with dollar signs around variable names,&amp;nbsp;for example $name$. Variable names are case sensitive.&amp;nbsp;Variables can be used both in user questions and bot answers.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;EM&gt;Example&lt;/EM&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;User query = $first_name$ &amp;gt; Bot saves the given name. (e.g. Jasmine)&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Bot answer: nice to meet you, $first_name$ &amp;gt; Bot answers with "nice to meet you, Jasmine" and navigates to the topic "color" to ask for favourite colors.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variablenabfragen_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7003i8349B6B4F22F5210/image-size/large?v=v2&amp;amp;px=999" role="button" title="variablenabfragen_en.jpg" alt="variablenabfragen_en.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Users can see and edit their personal data if you allow so by viewing&amp;nbsp;their profile pages (see above how to set profile visibility for variables). A&amp;nbsp;keyword 'profile' sent to a chat returns a&amp;nbsp;link user’s profile page.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variablen_profil_en-1-768x1365.png" style="width: 562px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7004i9086AFEA7B63C6BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Variablen_profil_en-1-768x1365.png" alt="Variablen_profil_en-1-768x1365.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;When working with ticketing system, agents can also view user information in the&amp;nbsp;panel "User properties".&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Using Variables in Conditions&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Variables are very useful in conditioning bot-answers.&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Commands for Variables&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Special expressions can be used&amp;nbsp;to set/delete variable values, display user information obtained from messengers (e.g., telephone number in WhatsApp and profile name in Facebook messenger), etc.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Feb 2026 15:37:56 GMT</pubDate>
    <dc:creator>VishalSandhu</dc:creator>
    <dc:date>2026-02-19T15:37:56Z</dc:date>
    <item>
      <title>Variables</title>
      <link>https://community.sinch.com/t5/Legacy-Engage-Bot/Variables/ta-p/19148</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;Variables, also known as attributes, allow to save user information. With variables you can easily gather information through the chat or the user profile and use it in the dialogue with the chatbot, when sending&amp;nbsp;notifications in WhatsApp&amp;nbsp;or in&amp;nbsp;chatblocks&amp;nbsp;when manually responding to a ticket.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Here are some examples for the use of variables:&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="text-align-justify"&gt;Saving user preference: product color preferences, travel destinations…&lt;/LI&gt;
&lt;LI class="text-align-justify"&gt;Personalising conversation: e.g. addressing user by a name&lt;/LI&gt;
&lt;LI class="text-align-justify"&gt;Targeting: creating target user groups for notification/content distribution, e.g. personalising content&amp;nbsp; sent to a user based on the selected news categories&lt;/LI&gt;
&lt;LI class="text-align-justify"&gt;Conditioning the conversation flow: e.g. if user name is already known, a user should not be asked for it again.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Creating variables&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Variables must be assigned a name (for example, age) and a data type (for example, number). It’s also possible to assign further attributes, such as a label, a range of valid values, default value, as well as determine variable’s lifespan and visibility on a user profile.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variablenuebersicht_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7001i2ED7CD64C531DB73/image-size/large?v=v2&amp;amp;px=999" role="button" title="Variablenuebersicht_en.jpg" alt="Variablenuebersicht_en.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;The name of the variable is defined in the relevant field. When creating dialogues in the chatbot builder you can call a variable by setting its name between two $ signs. For instance, $first_name$ in the field "user question" in a dialogue signals the bot that user's input should be saved as the first name. Variable names are case sensitive so make sure to correctly address&amp;nbsp;variables when setting up dialogues. Only alphanumeric symbols and underscores&amp;nbsp;_ can be used in variable names.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Depending on what type of information you want a variable to store,&amp;nbsp;you have to define a correct data type for the variable (see below descriptions of various data types).&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;When necessary, in the value field you can define a range of values for the variable.&amp;nbsp;For numbers, the value field can be limited with comparative operators (&amp;gt;; &amp;lt;; &amp;gt;=; &amp;lt;=). You can define numerous conditions by listing them with just a space as a separator: the space is then treated as "and." For example, to create a valid value field from 0-100 you can write the condition &amp;gt;=0 &amp;lt;=100.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Default&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;In the default field you can predetermine a default value for a variable which will be used as a fallback in chatbot answers if no other value was set.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Example:&amp;nbsp;a variable "quantity" is used in a dialogue to store information about the number of ordered products.&amp;nbsp;If a user does not explicitly indicate the amount of products to be ordered, a default value 0 will be used.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Lifespan&amp;nbsp;and profile visibility of a variable&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;A floppy disc&amp;nbsp;symbol&amp;nbsp;in the column "user profile" defines&amp;nbsp;if a variable should save values temporarily or permanently. The avatar symbol stands for the visibility of a variable on a user profile site.&amp;nbsp;The user can edit the values of variables visible on the profile page by sending a command "profile" into the chat.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Datatypes&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Each variable has to be identified with a specific data type.&amp;nbsp;Example: If a variable has datatype 'number', it can only receive numeric characters as values.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Here are some details about different datatypes.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Number&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'number' save integers as well as floats.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Word&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of&amp;nbsp;the type 'word' save text input up until the first space or punctuation mark. An input with a dash will also be interpreted as one word.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Example: If you type in 'Hans Joachim', only 'Hans' will be saved as name if a variable $name$ is of type "word". The input ‘Hans-Joachim’ written with a dash would however count as one word.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'text' can contain chunks of text, including punctuation marks.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'date' save dates. You can input dates in both German (dd.mm.yyyy.) or English (dd/mm/yyyy.) format.&amp;nbsp;Make sure that if you are importing date-values by uploading a dataset, dates should be in the format yyyy-mm-dd in your cvs-file.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Time&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'time' accept values&amp;nbsp;in 24-hour format,&amp;nbsp;such as 14:30.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Location&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;Setting variables of type location triggers a request&amp;nbsp;to&amp;nbsp;Google Maps Geocoding API. You can restrict google maps search criteria by using components filter in the field "values", such as to restrict a search only to Germany.&amp;nbsp;For more information check&amp;nbsp;Google Maps Geocoding API documentation. You can access geocordinates of the variables of type location as follows: $varname.location.lat$ and $varname.location.lng$&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Enumeration&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'enumeration' will store one value from a list of predefined values. You can enter a list of valid values separated by commas in the field "values" of a variable.&lt;BR /&gt;Example: you can store user’s consent to be contacted on the phone in a variable of type enumeration where the valid values are&amp;nbsp; "yes" or "no" (see $phone_contact$ in the screenshot above).&amp;nbsp;If a user writes "yes" or simply "1", the value of a variable will be set to "yes".&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Collection&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of the type 'collection' function in a similar way to variables of type enumeration: it can store values from a list a predefined options. In contrast to variables of type enumeration, collections can store several values at a time.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Example:&amp;nbsp; variable $favourite_colors$&amp;nbsp;can take the&amp;nbsp;values blue, green, yellow, black and red. A user can write multiple colors separated by comma like blue, black for saving multiple values. Or he/she can access list elements by their indices, e.g., &amp;nbsp;1, 4.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Depending on how many values are saved to the variable, the 'collection' type can trigger a variety of different dialogues (see screenshot below). For that an expression $variablename­_x$ can be used as user input, where, where x is the x the number of currently saved elements * the collection.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;$variablename_duplicate$ as user input in the dialogue box allows you to set up&amp;nbsp;bot-responses to a repeated input of a collection element , i.e. when the user accidentally types the the same element of a collection&amp;nbsp;twice.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;An expression $variablename_num$ provides an overview of the quantity of the saved values for a variable in the 'collection' type and can be conveniently used to condition bot-responses.&lt;/P&gt;
&lt;P&gt;With an expression $variablename_list_options$ you can return predefined values of the variables of types collection and enumeration ($variablename_list_options_bold$).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;Entity&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Whilst you can call&amp;nbsp;data models directly, you can also access them through variables of type&amp;nbsp;entity. A variable with the type 'entity' recognises entity identifiers as valid values. Creating the entity thus sets the value field of the variable be a list of&amp;nbsp;entity identifiers.&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;STRONG&gt;MIA Topics&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Variables of type "MIA Topics" save MIA categories. Multiple values are possible. This datatype can be selected upon upon creating a new variable and can be used only once.&amp;nbsp;Categories available in MIA are to be defined in the column "values". Should a category be activated for a user automatically upon MIA-subscription, put its value additionally in the column "default". In our example, a category "Popular" will be activated for a user with a MIA-optin. Other categories can be chosen on a user profile page or via the chatbot.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="var_mia-topics.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7002iCB20DB07F584F38A/image-size/large?v=v2&amp;amp;px=999" role="button" title="var_mia-topics.png" alt="var_mia-topics.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Using Variables in Dialogues&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;In the dialogues, variables are called with dollar signs around variable names,&amp;nbsp;for example $name$. Variable names are case sensitive.&amp;nbsp;Variables can be used both in user questions and bot answers.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;EM&gt;Example&lt;/EM&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;User query = $first_name$ &amp;gt; Bot saves the given name. (e.g. Jasmine)&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Bot answer: nice to meet you, $first_name$ &amp;gt; Bot answers with "nice to meet you, Jasmine" and navigates to the topic "color" to ask for favourite colors.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variablenabfragen_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7003i8349B6B4F22F5210/image-size/large?v=v2&amp;amp;px=999" role="button" title="variablenabfragen_en.jpg" alt="variablenabfragen_en.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Users can see and edit their personal data if you allow so by viewing&amp;nbsp;their profile pages (see above how to set profile visibility for variables). A&amp;nbsp;keyword 'profile' sent to a chat returns a&amp;nbsp;link user’s profile page.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variablen_profil_en-1-768x1365.png" style="width: 562px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7004i9086AFEA7B63C6BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Variablen_profil_en-1-768x1365.png" alt="Variablen_profil_en-1-768x1365.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;When working with ticketing system, agents can also view user information in the&amp;nbsp;panel "User properties".&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Using Variables in Conditions&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Variables are very useful in conditioning bot-answers.&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Commands for Variables&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Special expressions can be used&amp;nbsp;to set/delete variable values, display user information obtained from messengers (e.g., telephone number in WhatsApp and profile name in Facebook messenger), etc.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Feb 2026 15:37:56 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Legacy-Engage-Bot/Variables/ta-p/19148</guid>
      <dc:creator>VishalSandhu</dc:creator>
      <dc:date>2026-02-19T15:37:56Z</dc:date>
    </item>
  </channel>
</rss>

