<?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 Datamodels in Legacy - Engage Bot</title>
    <link>https://community.sinch.com/t5/Legacy-Engage-Bot/Datamodels/ta-p/19164</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P class="text-align-justify"&gt;Sometimes you need a chatbot to answer a series of questions about similar objects, like a product catalogue or FAQs. Instead of having to set up many identical dialogues, you can create dynamic dialogues with placeholders that automatically select the right data from a data model.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;In the Chatbot Builder, you can use the menu point 'data model' to create so-called entities or data models. You can imagine an entity as a table with rows and columns that house your data. Each entry in the table is associated with a unique identifier contained in the first column in the data model. Other columns are properties or object attributes containing various pieces of information relevant to the object.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Consider our example – a&amp;nbsp;data model containing information about travel destinations – cities Munich and Berlin. If a user asks for more information on Munich or Berlin, the bot should be able to look up the data model and return description of the city, a wikipedia link, a picture and name of the city’s airports.&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="datamodel_view_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7005iFDEE2BDBCB23B851/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel_view_en.jpg" alt="datamodel_view_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;Before creating a data model, decide which entities (which series of similar objects) are practical for your purposes and which attributes are required. You can easily add extra attributes later and delete those that end up being less useful.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Basically, the entity feature is useful for groups of objects that have similar characteristics and that you can logically arrange in a table format. Usually the name of the entity would be an umbrella term for the included objects: for example, products in a product catalogue. The attributes would then be the characteristics of those objects.&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;Creating Entities&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Navigate to the menu “Data model ” and click on the button&amp;nbsp;+Entity, create a new entity. Give your entity a name and add the desired attributes with +Attribute.&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="datamodel_add_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7006iD2F3A3369AC94EA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel_add_en.jpg" alt="datamodel_add_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;Now you have two options: either continue editing the entity directly in the&amp;nbsp;interface or import an appropriate table.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;To edit a datamodel from the interface, click on a table-symbol "show entity data" and select an entry you wish to edit. You can use single words but also phrases as&amp;nbsp;&lt;SPAN&gt;Identification&lt;/SPAN&gt;, or list multiple separated by commas. Please note, that&amp;nbsp;&lt;SPAN&gt;Identification&lt;/SPAN&gt; must be written in lower case. It doesn’t matter however whether a user writes “Munich”, “munich”, or even “mUnich”: letter cases are ignored in user input recognition.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;You can also export the entity, edit it in Excel or a comparable program and import back.&amp;nbsp;Formats that can be imported include “Text (Tabstop separated) (*txt.)" and CSV, supported is UTF-8 encoding.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;With a click on the trash can, you can easily delete the entity.&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 Entities in a Dialogue&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;A datamodel can easily be integrated into a dialogue.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Put the name of the entity in between two percent signs as a placeholder as&amp;nbsp;user query in a dialogue box, for example&lt;STRONG&gt;&amp;nbsp;%Traveldestinations%&lt;/STRONG&gt;. The chatbot will automatically check the user’s query against the identifiers from the datamodel and will return the&amp;nbsp;appropriate data from the datamodel. Attributes to be returned are addressed in the bot-answer as follows %name-of-datamodel.name-of-attribute%, for example, %Traveldestinations.description% or %Traveldestinations.city%.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;In our example, a user input "hi" should trigger a greeting from the chatbot. The bot then changes the topic from "Default" to "Traveldestinations Inquiry" and asks a user to choose between Munich and&amp;nbsp;Berlin. If a user type "Munich" or "Berlin", the chatbot will automatically return the description of the city.&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="datamodel_dialogue.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7007iF1A5ABD6D0086427/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel_dialogue.jpg" alt="datamodel_dialogue.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;This is how a conversation looks from a user perspective:&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-center" image-alt="Datenmodell_preview_en-864x1536.jpg" style="width: 562px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7008i6F82CD4EDA18BB23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Datenmodell_preview_en-864x1536.jpg" alt="Datenmodell_preview_en-864x1536.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Directly calling a datamodel (%datamodel%) allows to return information from the datamodel immediately as response to user input, but now elsewhere in conversation. The bot can however store information about what entry in the datamodel a user was interested in and make use of the datamodel throughout the conversation. This is done by using variables of datatype "entity".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Variables of type "entity"&lt;/FONT&gt;&lt;/H5&gt;
&lt;P data-unlink="true"&gt;Variables&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of datatype "entity" contain datamodels. Such variables inherit the structure and properties of the entailed&amp;nbsp;datamodel. The variable can take&amp;nbsp;as a value&amp;nbsp;identifiers of the entailed datamodel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable can called in a dialogue as user input&amp;nbsp;in a usual way – by enclosing its name&amp;nbsp;in dollar symbols&amp;nbsp;&lt;STRONG&gt;$variable-ot-type-entity$&lt;/STRONG&gt;. The attributes of the datamodel can be retrieved in bot-answers as follows&amp;nbsp;&lt;STRONG&gt;$variable-ot-type-entity.attributename$&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;The bot can&amp;nbsp;can make use of the attributes of an identified object (a table row) across several dialogues and conditions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;Here is an example of how variables of type datamodel can be used in a dialogue.&amp;nbsp;Here customers should be able to retrieve certain information via a customer portal. Note, that to keep the bot-structure organised we also work with&amp;nbsp;topics&amp;nbsp;in this&amp;nbsp;example.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;First we create a new topic “customer portal” and a datamodel "customer". The datamodel contains a customer database with information on the name of the customer, purchased product and appointment date. Each customer entry is identified by a customer ID.&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="datamodel-customer.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7009i0CD6CF3420C20458/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel-customer.png" alt="datamodel-customer.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datamodel-customer-data.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7010i38EBAD41931FF5B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel-customer-data.png" alt="datamodel-customer-data.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"&gt;Next, a variable "C&lt;EM&gt;ustomerID"&lt;/EM&gt;&amp;nbsp;of the type entity containing&amp;nbsp;the datamodel "customer" is created. The variable&amp;nbsp;&lt;EM&gt;customerID is&lt;/EM&gt;&amp;nbsp;saved permanently.&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="111.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7011iB12A366028BCEAE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.png" alt="111.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"&gt;&lt;SPAN&gt;A user writes "start", the chatbot greets him and moves the dialogue to a topic "Ask for customer ID" where the user is prompted to enter his ID. &amp;nbsp;If the entered ID matches with one of the identifiers in the datamodel "customer", a respective entry in the datamodel will be activated. Then the context will be changed to the topic “customer portal”, where the user can now ask the bot to retrieve various types of information about his account. With the keyword "exit" the topic "customer portal" can be left.&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;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7012i8908FB02B6B14333/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&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;Here is how a setup looks like in a messenger:&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-center" image-alt="2.png" style="width: 315px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7013iA6DABF70E0DDE00C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Save an attribute value to a variable&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;It is possible to save an attribute&amp;nbsp;value from an entity to a variable. This can be handy when you for example want to define target groups of users based on their product holdings.&lt;/P&gt;
&lt;P&gt;In our example we want wo save the value of the attribute&amp;nbsp;&lt;EM&gt;product&amp;nbsp;&lt;/EM&gt;to a variable that we can later use to form a target group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax is the following:&amp;nbsp;&lt;STRONG&gt;$variableName=$entityName.attributeName$$&lt;/STRONG&gt;&amp;nbsp;in this example it is&amp;nbsp;&lt;STRONG&gt;$productholdings=$customerID.product$$&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7014i9EFFA96280510145/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/STRONG&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;Making&amp;nbsp;use of media in a data model&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Besides normal text it is also possible to add media like images or videos to a data model.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;First we add a new entity (table) "&lt;EM&gt;animals"&lt;/EM&gt;&amp;nbsp;in the data model. Then we add two attributes (columns) "&lt;EM&gt;img"&lt;/EM&gt;&amp;nbsp;and "&lt;EM&gt;text"&lt;/EM&gt;. Now we fill it with data. The attribute&amp;nbsp;&lt;EM&gt;img&amp;nbsp;&lt;/EM&gt;holds the urls of the images. The attribute&amp;nbsp;&lt;EM&gt;text&amp;nbsp;&lt;/EM&gt;holds a description of the image.&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="4.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7015i1C2935E76DD6DA4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.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"&gt;Then we connect the datamodel to a variable. We create a variable named "animals" of type entity with the value of "animals."&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="5.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7016i2E841D8842495A6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.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"&gt;Now we can make use of this variable in a dialogue. In the detailed view of the dialogue you have to switch to the image tab of the bot answer. Then you can click on the little pen symbol for editing the image settings.&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="6.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7017iCD119112D5DDECA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you have the opportunity to add the image attribute from the entity with the help of the connected variable using the known Dollar syntax like this:&amp;nbsp;&lt;STRONG&gt;$animals.img$&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7018i90E86F7018F01F02/image-size/large?v=v2&amp;amp;px=999" role="button" title="7.png" alt="7.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great, you are all set and can test what you built in WhatsApp:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8.png" style="width: 834px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7019i0110D0EE5A50E8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="8.png" alt="8.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Feb 2026 15:30:25 GMT</pubDate>
    <dc:creator>VishalSandhu</dc:creator>
    <dc:date>2026-02-19T15:30:25Z</dc:date>
    <item>
      <title>Datamodels</title>
      <link>https://community.sinch.com/t5/Legacy-Engage-Bot/Datamodels/ta-p/19164</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P class="text-align-justify"&gt;Sometimes you need a chatbot to answer a series of questions about similar objects, like a product catalogue or FAQs. Instead of having to set up many identical dialogues, you can create dynamic dialogues with placeholders that automatically select the right data from a data model.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;In the Chatbot Builder, you can use the menu point 'data model' to create so-called entities or data models. You can imagine an entity as a table with rows and columns that house your data. Each entry in the table is associated with a unique identifier contained in the first column in the data model. Other columns are properties or object attributes containing various pieces of information relevant to the object.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Consider our example – a&amp;nbsp;data model containing information about travel destinations – cities Munich and Berlin. If a user asks for more information on Munich or Berlin, the bot should be able to look up the data model and return description of the city, a wikipedia link, a picture and name of the city’s airports.&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="datamodel_view_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7005iFDEE2BDBCB23B851/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel_view_en.jpg" alt="datamodel_view_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;Before creating a data model, decide which entities (which series of similar objects) are practical for your purposes and which attributes are required. You can easily add extra attributes later and delete those that end up being less useful.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Basically, the entity feature is useful for groups of objects that have similar characteristics and that you can logically arrange in a table format. Usually the name of the entity would be an umbrella term for the included objects: for example, products in a product catalogue. The attributes would then be the characteristics of those objects.&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;Creating Entities&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Navigate to the menu “Data model ” and click on the button&amp;nbsp;+Entity, create a new entity. Give your entity a name and add the desired attributes with +Attribute.&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="datamodel_add_en.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7006iD2F3A3369AC94EA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel_add_en.jpg" alt="datamodel_add_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;Now you have two options: either continue editing the entity directly in the&amp;nbsp;interface or import an appropriate table.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;To edit a datamodel from the interface, click on a table-symbol "show entity data" and select an entry you wish to edit. You can use single words but also phrases as&amp;nbsp;&lt;SPAN&gt;Identification&lt;/SPAN&gt;, or list multiple separated by commas. Please note, that&amp;nbsp;&lt;SPAN&gt;Identification&lt;/SPAN&gt; must be written in lower case. It doesn’t matter however whether a user writes “Munich”, “munich”, or even “mUnich”: letter cases are ignored in user input recognition.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;You can also export the entity, edit it in Excel or a comparable program and import back.&amp;nbsp;Formats that can be imported include “Text (Tabstop separated) (*txt.)" and CSV, supported is UTF-8 encoding.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;With a click on the trash can, you can easily delete the entity.&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 Entities in a Dialogue&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;A datamodel can easily be integrated into a dialogue.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;Put the name of the entity in between two percent signs as a placeholder as&amp;nbsp;user query in a dialogue box, for example&lt;STRONG&gt;&amp;nbsp;%Traveldestinations%&lt;/STRONG&gt;. The chatbot will automatically check the user’s query against the identifiers from the datamodel and will return the&amp;nbsp;appropriate data from the datamodel. Attributes to be returned are addressed in the bot-answer as follows %name-of-datamodel.name-of-attribute%, for example, %Traveldestinations.description% or %Traveldestinations.city%.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;In our example, a user input "hi" should trigger a greeting from the chatbot. The bot then changes the topic from "Default" to "Traveldestinations Inquiry" and asks a user to choose between Munich and&amp;nbsp;Berlin. If a user type "Munich" or "Berlin", the chatbot will automatically return the description of the city.&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="datamodel_dialogue.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7007iF1A5ABD6D0086427/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel_dialogue.jpg" alt="datamodel_dialogue.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;This is how a conversation looks from a user perspective:&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-center" image-alt="Datenmodell_preview_en-864x1536.jpg" style="width: 562px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7008i6F82CD4EDA18BB23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Datenmodell_preview_en-864x1536.jpg" alt="Datenmodell_preview_en-864x1536.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Directly calling a datamodel (%datamodel%) allows to return information from the datamodel immediately as response to user input, but now elsewhere in conversation. The bot can however store information about what entry in the datamodel a user was interested in and make use of the datamodel throughout the conversation. This is done by using variables of datatype "entity".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Variables of type "entity"&lt;/FONT&gt;&lt;/H5&gt;
&lt;P data-unlink="true"&gt;Variables&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of datatype "entity" contain datamodels. Such variables inherit the structure and properties of the entailed&amp;nbsp;datamodel. The variable can take&amp;nbsp;as a value&amp;nbsp;identifiers of the entailed datamodel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable can called in a dialogue as user input&amp;nbsp;in a usual way – by enclosing its name&amp;nbsp;in dollar symbols&amp;nbsp;&lt;STRONG&gt;$variable-ot-type-entity$&lt;/STRONG&gt;. The attributes of the datamodel can be retrieved in bot-answers as follows&amp;nbsp;&lt;STRONG&gt;$variable-ot-type-entity.attributename$&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;The bot can&amp;nbsp;can make use of the attributes of an identified object (a table row) across several dialogues and conditions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify" data-unlink="true"&gt;Here is an example of how variables of type datamodel can be used in a dialogue.&amp;nbsp;Here customers should be able to retrieve certain information via a customer portal. Note, that to keep the bot-structure organised we also work with&amp;nbsp;topics&amp;nbsp;in this&amp;nbsp;example.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;First we create a new topic “customer portal” and a datamodel "customer". The datamodel contains a customer database with information on the name of the customer, purchased product and appointment date. Each customer entry is identified by a customer ID.&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="datamodel-customer.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7009i0CD6CF3420C20458/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel-customer.png" alt="datamodel-customer.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datamodel-customer-data.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7010i38EBAD41931FF5B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="datamodel-customer-data.png" alt="datamodel-customer-data.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"&gt;Next, a variable "C&lt;EM&gt;ustomerID"&lt;/EM&gt;&amp;nbsp;of the type entity containing&amp;nbsp;the datamodel "customer" is created. The variable&amp;nbsp;&lt;EM&gt;customerID is&lt;/EM&gt;&amp;nbsp;saved permanently.&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="111.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7011iB12A366028BCEAE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.png" alt="111.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"&gt;&lt;SPAN&gt;A user writes "start", the chatbot greets him and moves the dialogue to a topic "Ask for customer ID" where the user is prompted to enter his ID. &amp;nbsp;If the entered ID matches with one of the identifiers in the datamodel "customer", a respective entry in the datamodel will be activated. Then the context will be changed to the topic “customer portal”, where the user can now ask the bot to retrieve various types of information about his account. With the keyword "exit" the topic "customer portal" can be left.&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;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7012i8908FB02B6B14333/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&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;Here is how a setup looks like in a messenger:&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-center" image-alt="2.png" style="width: 315px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7013iA6DABF70E0DDE00C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="text-align-justify"&gt;&lt;FONT size="5"&gt;Save an attribute value to a variable&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;It is possible to save an attribute&amp;nbsp;value from an entity to a variable. This can be handy when you for example want to define target groups of users based on their product holdings.&lt;/P&gt;
&lt;P&gt;In our example we want wo save the value of the attribute&amp;nbsp;&lt;EM&gt;product&amp;nbsp;&lt;/EM&gt;to a variable that we can later use to form a target group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax is the following:&amp;nbsp;&lt;STRONG&gt;$variableName=$entityName.attributeName$$&lt;/STRONG&gt;&amp;nbsp;in this example it is&amp;nbsp;&lt;STRONG&gt;$productholdings=$customerID.product$$&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7014i9EFFA96280510145/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/STRONG&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;Making&amp;nbsp;use of media in a data model&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class="text-align-justify"&gt;Besides normal text it is also possible to add media like images or videos to a data model.&lt;/P&gt;
&lt;P class="text-align-justify"&gt;First we add a new entity (table) "&lt;EM&gt;animals"&lt;/EM&gt;&amp;nbsp;in the data model. Then we add two attributes (columns) "&lt;EM&gt;img"&lt;/EM&gt;&amp;nbsp;and "&lt;EM&gt;text"&lt;/EM&gt;. Now we fill it with data. The attribute&amp;nbsp;&lt;EM&gt;img&amp;nbsp;&lt;/EM&gt;holds the urls of the images. The attribute&amp;nbsp;&lt;EM&gt;text&amp;nbsp;&lt;/EM&gt;holds a description of the image.&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="4.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7015i1C2935E76DD6DA4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.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"&gt;Then we connect the datamodel to a variable. We create a variable named "animals" of type entity with the value of "animals."&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="5.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7016i2E841D8842495A6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.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"&gt;Now we can make use of this variable in a dialogue. In the detailed view of the dialogue you have to switch to the image tab of the bot answer. Then you can click on the little pen symbol for editing the image settings.&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="6.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7017iCD119112D5DDECA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="text-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you have the opportunity to add the image attribute from the entity with the help of the connected variable using the known Dollar syntax like this:&amp;nbsp;&lt;STRONG&gt;$animals.img$&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.png" style="width: 999px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7018i90E86F7018F01F02/image-size/large?v=v2&amp;amp;px=999" role="button" title="7.png" alt="7.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great, you are all set and can test what you built in WhatsApp:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8.png" style="width: 834px;"&gt;&lt;img src="https://community.sinch.com/t5/image/serverpage/image-id/7019i0110D0EE5A50E8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="8.png" alt="8.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Feb 2026 15:30:25 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Legacy-Engage-Bot/Datamodels/ta-p/19164</guid>
      <dc:creator>VishalSandhu</dc:creator>
      <dc:date>2026-02-19T15:30:25Z</dc:date>
    </item>
  </channel>
</rss>

