<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oliver Ivanoski on Medium]]></title>
        <description><![CDATA[Stories by Oliver Ivanoski on Medium]]></description>
        <link>https://medium.com/@oivanoski?source=rss-c96f126c6d06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*sjOwUzm9xtA4lP0A.jpg</url>
            <title>Stories by Oliver Ivanoski on Medium</title>
            <link>https://medium.com/@oivanoski?source=rss-c96f126c6d06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 00:12:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oivanoski/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beyond Coding: Watson Assistant Multiple Condition Responses]]></title>
            <link>https://medium.com/ibm-watson/beyond-coding-watson-assistant-multiple-condition-responses-6361c7c69ebf?source=rss-c96f126c6d06------2</link>
            <guid isPermaLink="false">https://medium.com/p/6361c7c69ebf</guid>
            <category><![CDATA[wa-tutorial]]></category>
            <category><![CDATA[editorials]]></category>
            <category><![CDATA[watson-assistant]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Oliver Ivanoski]]></dc:creator>
            <pubDate>Wed, 06 Nov 2019 21:39:43 GMT</pubDate>
            <atom:updated>2019-11-06T21:39:43.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beyond Coding: Watson Assistant Multiple Conditioned Responses</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M0f8AM5Fby93HmEv" /><figcaption>Photo by <a href="https://unsplash.com/@charlesdeluvio?utm_source=medium&amp;utm_medium=referral">Charles 🇵🇭</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Watson Assistant is a powerful cognitive solution which lets you quickly build a virtual assistant. But with the wide variety of features available, you need to be aware how best to utilise them to build a successful assistant.</p><p>The feature we’ll be looking at in this article is multiple conditioned responses.</p><p>Please note, this article assumes you are aware of dialog nodes (see the <a href="https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-overview">Dialog Overview</a> page for more information).</p><h3><strong>Overview</strong></h3><p>Multiple conditioned responses allow you to provide different answers based on conditions related to the intent — all in one dialog node.</p><p>A very simple example would be a customer saying “Hello” to your assistant. Typically, you would have a single response (such as “Hello, I am here to help you with…”). But, you can customize the node to provide a different answer based on certain criteria.</p><p>For example, responses which differ based on the time of day, or, responses which incorporate the customer’s name to provide a personalized response.</p><p>The scenario below provides a greeting based on the time of day. The conditions here are looking to match to:</p><ul><li>Time of day which is after 5:59pm and before 11:59pm</li><li>Time of day which is before 12pm (noon)</li><li>Time of day which is before 6pm</li><li>True condition (default/catch-all value)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*6TqoOKSkAR-rv1FggtfatQ.png" /><figcaption>Multiple condition response example</figcaption></figure><p>The system will look at these conditions (starting from the top of the list and working its way down) until a match occurs, then it will send the corresponding response to the customer.</p><h3><strong>A Closer Look</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KUmKDOAk9Q1hgznS" /><figcaption>Photo by <a href="https://unsplash.com/@joneau?utm_source=medium&amp;utm_medium=referral">Johanna Huber</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>At its core a normal response node has a single intent which provides a single response (or a single response with slight variations).</p><p>A conditioned response is different to a standard response as the customer will see a different answer based on:</p><ul><li>Their previous interactions with the assistant</li><li>External criteria, such as the time of day</li></ul><p>Typically, the multiple responses will be based on data collected about the customer during their interactions to personalize the conversation.</p><p>As mentioned, the conditions are processed from top to bottom. If an important condition is further down in the list, it will be ignored if the system finds a matching condition further up.</p><p>Let’s look at the Hello/Greeting example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*n5ooLVGCjN9XqrsXvsdU7g.png" /><figcaption>Processing conditions</figcaption></figure><p>The first item (1) in our conditions list is set to “now().after(’17:59:59’)…”. This is checking to see if the current time (now) is after 5:59pm and before midnight. The system will look at this first condition and compare it to the time. If the current time is anywhere between 6pm and midnight, it will respond with “Good evening…”.</p><p>If the condition is not met (in other words if the time falls outside this range), the system goes to the next condition in the list and checks to see if that condition can be met. In this case, it checks to see if the current time (now) is before noon. If it is, it responds with “Good morning…”.</p><p>If that condition isn’t met it continues on to the next. The system will continue processing the list until it either finds a condition which matches, or it runs out of conditions to check. That’s why it’s important to make a note of which conditions should take priority and the logical steps between them.</p><p>If we had item 3 — now().before(’18:00:00’) — in position 2, the system would be saying “Good afternoon…” at 8am, because 8am does indeed occur before 6pm!</p><p>In this example we used a function called now(). But you can use any criteria/condition in your node such as entities (see article <a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-1-a-quick-overview-c127a32d077d">Beyond Coding: Watson Assistant Entities — Part 1, A Quick Overview</a> for more information about entities).</p><p>You can also find more information about the now() function at the <a href="https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-methods#dialog-methods-dates-now">Dialog Methods</a> page.</p><p>The more common conditions implemented are:</p><ul><li>Check to see if a context item has any value associated with it<br>- For example, does the customer own any banking products?</li><li>Check to see if a specific value exists for a context variable<br>- For example, does the customer own savings product ABC?</li><li>Check to see if an entity has been mentioned<br>- For example, has the customer mentioned a specific product name in their question?</li><li>Default (true) value<br>- The default response provided if the previous conditions haven’t been met.</li></ul><p>Multiple conditioned responses can be a combination of the above conditions, they are not limited to only one scenario or condition type.</p><h3><strong>Implementing Multiple Conditioned Responses</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vfXYreIX7gZnyPoV" /><figcaption>Photo by <a href="https://unsplash.com/@m0851?utm_source=medium&amp;utm_medium=referral">m0851</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s create a conditioned response node to see how the process works.</p><p>To create conditioned response nodes, you will need to tell the system to change the behaviour of the node.</p><p>First, select the node you want to modify. Then click on the <em>Customize </em>option at the top of the node details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*EfIlGsrWG87Q_AkmVpgzQg.png" /><figcaption>Setting conditional responses</figcaption></figure><p>The system will now open the customization window for the node. Note, this is not a global setting, this customization option is only for the node in which you select <em>Customize</em>.</p><p>At the bottom of the new window you will see a section titled <em>Multiple conditioned responses</em>. This is the option which will activate the feature for the node.</p><p>Simple click on the <em>Off </em>setting to change it to <em>On</em>, then click on the <em>Apply</em> button.</p><p>If you don’t click on <em>Apply</em>, the setting will not take effect and your node will remain as a simple single response node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*tPzeBdzq4y9UkK3rvaTsEQ.png" /><figcaption>Activating conditional responses</figcaption></figure><p>Now that you’ve applied the <em>Multiple conditioned responses</em> setting, your node will show a different display in the <em>Then respond with:</em> section. It now contains two columns/areas —<em> If assistant recognizes</em> and <em>Respond with</em>.</p><p>These options control how the system processes the conditions and what happens once the condition is met.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*o_Ecvw5Z3ai0JxM2hoRhGw.png" /><figcaption>Setting the conditions and responses</figcaption></figure><p>Now we come to the condition list — remember, the system processes the conditions in the order provided. The first condition is processed, followed by the second, then the third etc, until a condition is matched, or there aren’t any other conditions to check.</p><p>So, it’s simply a matter of adding a condition and its corresponding response. In this example we’ll use a context variable to check if the assistant knows the customer’s name. If you need more information about context variables, see the <a href="https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-runtime#dialog-runtime-context-variables">Dialog Runtime Context Variables</a> page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*Om2uNn05TCaRcjkYFJQFgA.png" /><figcaption>Adding the first conditioned response</figcaption></figure><p>When you want to add another condition, click on the <em>Add response</em> plus sign (+).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*5-S0xryHe9I7OJmt1WNKsA.png" /><figcaption>Adding Conditions</figcaption></figure><p>In this case we will add a “true” condition to the node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*ukoSyIzkwE44Z10f4j54hA.png" /><figcaption>Always include true</figcaption></figure><p>You should always include a default (“true”) condition at the end of the list. This will always trigger a response and ensures the customer receives an answer/acknowledgement.</p><p>We now have a multiple conditioned response node!</p><h3><strong>Customizing Conditioned Responses</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p-4LeJ1btA6SAV6T" /><figcaption>Photo by <a href="https://unsplash.com/@jaysung?utm_source=medium&amp;utm_medium=referral">Jehyun Sung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you ever find that you can’t see the full text of a conditional response, or you need to see the details for the response, simply click on the <em>Customize response</em> option beside it (the cogwheel next to the response).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*LQmGPBLJ6_sOjil9kiDhew.png" /><figcaption>Conditional response details</figcaption></figure><p>This will expand the condition and allow you to specify whether you want to set a context value on the response, if you want variations of the response for the condition and, most importantly, what you would like the system to do once it has reached this condition — the <em>And finally</em> drop-down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*I4skDNVtnE3KnpyrM-wF7Q.png" /><figcaption>Conditional response actions</figcaption></figure><p>What this extremely useful option allows you to do is select whether the system performs the default action for that specific response (<em>Default to node settings</em>), or whether the system moves to another structure/node in the dialog tree (<em>Jump to…</em>).</p><p>With this option each conditional response can lead the customer to a different pathway, if desired.</p><p>For example, if we know the customer’s name, we might know more information, such as the products they own. In that case we can set the conditional response to jump to a node which discusses cross-selling a product.</p><p>With the ability to change the behaviour of the individual conditional responses, you can further personalize the conversation.</p><h3><strong>Multiple Conditioned Response Recommendations</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WFcTrUBk0bwtMJ_d" /><figcaption>Photo by <a href="https://unsplash.com/@c_b_ozaltun?utm_source=medium&amp;utm_medium=referral">Cenk Batuhan Özaltun</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When creating a conditioned response, you should consider the following aspects — some of which have been briefly discussed here:</p><ul><li>The requirement for the multiple conditioned response</li><li>The scope of your conditions and their placement</li><li>The response provided by the conditions</li><li>The final behaviour of the condition</li></ul><h3><strong>Multiple Conditioned Response Requirement</strong></h3><p>Consider whether a conditional response is the correct option for the intent. While they are useful, they’re not necessarily always required.</p><p>Sometimes a single, straight-forward answer can be just as, if not more, useful. With the ability to create variations on single responses, you can still provide an engaging interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*ZlAUWTL9bKfSDGlfozUIrw.png" /><figcaption>Answer variations</figcaption></figure><p>A rule of thumb should be whether the intent you have built consists of multiple questions or refers to multiple subjects which differ in their behaviours.</p><p>For example, an intent may be “#Product_Application” and the examples for that intent consist of “How do I apply for product ABC?”, “Where can I get Product XYZ?”, “Can I apply online for Product 123?”.</p><p>Here we can see the main topic for the intent (applying for a product) mentions three different products (Product ABC, Product XYZ and Product 123). Consider how a customer would apply for each of these products.</p><p>Does the customer use the same web page to apply for a product? If so, a single response is most useful.</p><p>Does each product have its own application process? If so, then conditional responses are most useful.</p><h3><strong>Condition Scope And Placement</strong></h3><p>When adding conditions to your conditional node, consider the order. Since the system processes the conditions from top to bottom, will one condition block another?</p><p>The best approach is to provide specific conditions higher up in the list, general conditions further down in the list and the default (true) condition as the final item in the list.</p><p>For example, we may want to check if the customer owns Product ABC and if they have owned it for more than 3 years. This is a specific condition — the number of people who meet this condition would be considered a sub-set of Product ABC owners.</p><p>Further down the list (or the next condition) would be a check to see if the customer owns Product ABC. This general condition addresses the wider group of Product ABC owners.</p><p>Then the final condition, the default (true) condition, is triggered if the previous conditions haven’t been triggered. In other words, we’ll provide an answer, but it won’t be specific to Product ABC.</p><h3><strong>Responses Provided</strong></h3><p>Remember that with multiple conditioned response nodes, you need multiple responses (as the name suggests). There’s little point in having conditional responses if the response is going to be the same for all scenarios.</p><p>This is an important factor to consider. This aspect of multiple conditioned responses ties closely with the next (Response Behaviour), and typically both would be considered together.</p><p>For now, let’s only consider the responses provided. If the response is the same for all conditions of the intent, then you need a single response node.</p><p>If the responses are different for each condition of the intent, then you want to use conditional responses.</p><p>The next thing to consider is the wording of the response itself. Specific conditions should have specific answers — for example, owners of Product ABC who have owned it for 3 years or more, could receive a specific answer mentioning the product, the fact that they have owned it for 3 or more years and the answer to the intent.</p><p>General conditions should provide more generalised responses — for example, owners of Product ABC could receive an answer mentioning the product and answering the intent.</p><p>Finally, the default (true) condition would provide one of two possible responses:</p><ul><li>A general response to customers to address the intent, or,</li><li>If the conditions are important to the response, ask the customer to clarify which product they want to discuss</li></ul><p>This means the customer will always have their interaction addressed.</p><p>The default (true) condition should always be included in your condition response nodes. While we can create many conditions to try and personalize a response, there will be times when we forget about a specific condition, or the way we handle conditions changes, and we need a mechanism to ensure the assistant always responds.</p><p>Typically, a default (true) response indicates to the customer that the assistant has understood the question and addressed it. Not adding a default (true) response can lead to the customer not receiving a response at all. This makes the assistant seem like it didn’t understand the question, or worse, that it has broken down.</p><h3><strong>Response Behaviour</strong></h3><p>When considering the responses, you will also consider what happens after the response has been provided. You want your assistant to provide an answer to the intent, but you also want it to behave accordingly.</p><p>When deciding whether to use conditional responses, examine the need for the subsequent actions taken. Does the assistant need to move to a different part of the system to continue for each condition? Does it simply provide the response and wait?</p><p>If the response is the same for all interactions, but you need the assistant to perform different behaviours, you don’t need a condition response node. Likely you need a standard single response node with children nodes which handle traffic flow between your design structures.</p><p>If the behaviour differs for each condition <em>and</em> the response is different for each condition, then a multiple conditioned response node is the best option.</p><p>If you need different responses for each condition, but the subsequent behaviour is the same for all conditions, then a multiple conditioned response node is the best option.</p><p>Remember, the combination of the previous topic (Responses Provided) and this topic (Response Behaviour), typically work together when deciding to use a conditional response.</p><h3><strong>Recommendations Summary</strong></h3><p>The above related areas can sometimes seem overwhelming, or confusing. Simply remember the following to identify the different aspects:</p><p><strong>· </strong>Multiple conditioned response requirement — consider the intent and how it drives the response(s)</p><p><strong>·</strong> Condition Scope And Placement — consider how the list of conditions will be processed</p><p><strong>·</strong> Responses Provided : regardless of the intent, consider whether the responses rely on additional, possibly external criteria to change the response. For example, from “Good morning” to “Good evening”. Or the length of time the customer has owned a product might change a cross-selling response.</p><p><strong>·</strong> Response Behaviour : consider the subsequent behaviour after the response has been provided</p><h3><strong>Final Thoughts</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f2XVGzgRbOa8Em2k" /><figcaption>Photo by <a href="https://unsplash.com/@honza_kahanek?utm_source=medium&amp;utm_medium=referral">Jan Kahánek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The lure of using conditional responses throughout the build is ever-present, but if you consider each of the aspects mentioned above, you will begin to easily identify when to use this feature.</p><p>Multiple conditioned responses provide a simple, but powerful, way to personalize your assistant’s interactions and introduce added intelligence to the assistant’s responses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6361c7c69ebf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-multiple-condition-responses-6361c7c69ebf">Beyond Coding: Watson Assistant Multiple Condition Responses</a> was originally published in <a href="https://medium.com/ibm-watson">IBM watsonx Assistant</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Coding: Watson Assistant Entities — Part 4, New System Entities]]></title>
            <link>https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-4-new-system-entities-5db4447524a3?source=rss-c96f126c6d06------2</link>
            <guid isPermaLink="false">https://medium.com/p/5db4447524a3</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[watson-assistant]]></category>
            <category><![CDATA[wa-tutorial]]></category>
            <dc:creator><![CDATA[Oliver Ivanoski]]></dc:creator>
            <pubDate>Wed, 06 Nov 2019 21:39:05 GMT</pubDate>
            <atom:updated>2019-11-06T21:39:05.210Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beyond Coding: Watson Assistant Entities — Part 4, New System Entities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2rXPQN___DSR1Z1w" /><figcaption>Photo by <a href="https://unsplash.com/@franckinjapan?utm_source=medium&amp;utm_medium=referral">Franck V.</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the <a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-3-system-entities-16d7351a94c4">previous article</a> we looked at system entities — a group of Watson pre-packaged entities available for commonly used concepts. We also saw that this useful feature allows us to quickly build a powerful assistant without having to spend time creating synonyms or Regular Expression patterns.</p><p>But system entities are going through an improvement process! In this article we’ll be looking at the upcoming new system entities and the major improvements upon the current system entities.</p><h3><strong>System Entities, New And Old</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YN6hwCSPvOblxW1b" /><figcaption>Photo by <a href="https://unsplash.com/@samuelzeller?utm_source=medium&amp;utm_medium=referral">Samuel Zeller</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We should first understand that at the time of this article, the new system entities are in Open Beta. This means that:</p><p>• New system entities may slightly change in the future<br>• New system entities are available to users, not just Beta users<br>• They are only available for certain languages (see the <em>System entity feature support details</em> table on the <a href="https://cloud.ibm.com/docs/services/assistant?topic=assistant-language-support">Supported Languages</a> page for more information)</p><p>Also, not all system entities have gone through changes. We’ll only be looking at system entities which have been overhauled. If a system entity is not mentioned in this article it means that it will continue with its current behaviour (see the previous article <a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-3-system-entities-16d7351a94c4">Beyond Coding: Watson Assistant Entities Part 3 — System Entities</a> for system entity behaviours).</p><p>Now let’s look at some of the new system entity features to help you get an understanding of what’s available and what might be useful to you.</p><h3><strong>The Date System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q4M_fm3G1XgNb4hG" /><figcaption>Photo by <a href="https://unsplash.com/@erothermel?utm_source=medium&amp;utm_medium=referral">Eric Rothermel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As we’ve seen, the Date system entity identifies dates and date ranges, but the new Date system entity allows for additional date detection.</p><p>With the current Date system entity a customer might mention an incomplete date, such as “Show me the invoice for 11th of May”. The Date system entity will assume the customer is talking about the future date (such as 11th May 2020) — in other words the following year will be inserted into the date to form a complete date structure.</p><p>With the Alternatives feature, the system entity will now supply a list of alternative dates — including the current year. This allows us to get a better understanding of the specific date without having to create complex structures to define aspects such as year.</p><p>The Date/Time link now improves the connection between date and times being mentioned in a customer’s query. For example, if a customer were to say “I want to make an appointment for Monday at 2pm”, the current Date and Time system entities would detect the relevant information. With the new Date system entity, both date and time are detected by the Date entity.</p><p>This means the assistant has detected a link between the two components, that the customer is likely talking about a time for the specified date. With the current system entity no such link is detected and the system treats the information as two separate items.</p><p>If you’ve ever had to deal with public holidays you know that sometimes they occur on slightly different dates. The Festival improvement helps alleviate some of the holiday headaches!</p><p>With the Festival improvement the system entity will detect that a significant day has been mentioned, such as New Year. The added advantage is that the system will also use the date and populate the Alternatives feature to help determine the year — does the customer mean New Year from the current year, or the following year?</p><p>The Range Link feature allows the assistant to detect a range of dates mentioned in the customer’s query. For example, if a customer were to say “Can I make a booking from 16th May to 1st June?”, the assistant would detect that a range of dates have been mentioned as well as the start and end dates — in this case starting at 16th May and ending at 1st June.</p><h3><strong>The Number System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*38CBHnzl0h6RVarI" /><figcaption>Photo by <a href="https://unsplash.com/@mbaumi?utm_source=medium&amp;utm_medium=referral">Mika Baumeister</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The Number system entity also has a Range Link addition. This is similar to the Date Range Link, but based on number detection instead of date detection.</p><p>For example, if a customer were to say “I want to buy items 12 to 15”, the system entity would detect the start and end of the range — allowing for a smoother understanding of the customer’s interaction, rather than forcing the customer to identify every item number.</p><h3><strong>The Time System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bGxN3eszqqwSL7wz" /><figcaption>Photo by <a href="https://unsplash.com/@nooryounis?utm_source=medium&amp;utm_medium=referral">noor Younis</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The current Time system entity automatically assumes a time indicator. For example, if a customer says “Can I make a booking at 2?”, the system entity assumes the time discussed is 2am. In some cases this might be correct, but not in all cases.</p><p>This is where the Alternatives feature helps to determine the correct time. This feature provides an alternative time to that which was identified — in this case it would detect that the alternative is 2pm and allow the system to confirm the correct time.</p><p>If a customer uses the 24-hour time format, for example, “Can I make a booking at 14?”, the entity will detect that 2pm is being discussed and will not provide an alternative time.</p><p>The Time system entity also has a Range Link feature. If a customer were to say “Can I make a booking from 2pm to 5pm”, the system entity would detect the range starting at 2pm and finishing at 5pm.</p><p>The advantage is that the system entity will also recognise a time range when the time indicator isn’t provided — and customers can often do this!</p><p>For example, “Can I make a booking from 2 to 5?”, would be detected as a time range beginning at 2am and ending at 5am. When associated with the Alternatives feature, the system can begin to identify if the customer was truly talking about 2am, or 2pm.</p><p>However, if the customer were to say “Can I make a booking from 14 to 17?”, the time range would be detected as 2pm to 5pm and an alternative wouldn’t be provided.</p><p>More often customers will use 12-hour time rather than 24-hour time, so the Alternatives feature is a great way to clarify the customer’s interaction.</p><p>One pitfall to look out for is the case where customer omit time indicators and don’t use time formats — for example, “Can I make a booking from 230 to 530?”. The Time entity won’t identify this as a time range.</p><p>This is where the Number Range Link can be used. The Number system entity will identify the range starting at 230 and ending at 530. This would allow your assistant to then ask subsequent questions to confirm the time range, or to ask the customer if they could include the time indicators (am/pm). Providing a much better experience than not detecting the range at all.</p><p>One thing to note, if the customer provides a time format, such as “Can I make a booking from 2:30 to 5:30?”, the system will detect the time range (and provide alternatives where required).</p><p>The last improvement we’ll look at is the Part Of Day feature. Currently the Time entity interprets the time of day references as the following:</p><p>• “Morning” is interpreted as 9am<br>• “Afternoon”, “Evening” and “Night” are interpreted as 6pm</p><p>The Part Of Day feature extends this existing component to provide a wider range of times by returning a range of hours, as follows:</p><p>• “Morning” is now interpreted as 6am to 12pm<br>• “Afternoon” is now interpreted as 12pm to 6pm<br>• “Evening” is now interpreted as 6pm to 10pm<br>• “Night” is now interpreted as 10pm to 11:59pm</p><p>This wider range of interpretations allows for a better understanding of a customer’s interaction.</p><h3><strong>Other System Entity Improvements</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XQi5Po98RVBBM9th" /><figcaption>Photo by <a href="https://unsplash.com/@romankraft?utm_source=medium&amp;utm_medium=referral">Roman Kraft</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The feature discussed above are some of the more commonly used, but there are several other features available which you may find useful.</p><p>You can find more information about the features discussed here and technical changes for new system entities at the <a href="https://cloud.ibm.com/docs/services/assistant?topic=assistant-beta-system-entities">New system entities</a> page.</p><h3><strong>More About Entities</strong></h3><p>Now we’ve taken look at system entities we’ll be taking a closer look at implementing user generated entities. In future articles, we will examine:</p><p>• How to use entities<br>• How to determine which entities we need<br>• Entity Best Practices</p><p>Stay tuned for future updates!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5db4447524a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-4-new-system-entities-5db4447524a3">Beyond Coding: Watson Assistant Entities — Part 4, New System Entities</a> was originally published in <a href="https://medium.com/ibm-watson">IBM watsonx Assistant</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Coding: Watson Assistant Entities — Part 3, System Entities]]></title>
            <link>https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-3-system-entities-16d7351a94c4?source=rss-c96f126c6d06------2</link>
            <guid isPermaLink="false">https://medium.com/p/16d7351a94c4</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[wa-tutorial]]></category>
            <category><![CDATA[watson-assistant]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Oliver Ivanoski]]></dc:creator>
            <pubDate>Wed, 28 Aug 2019 13:48:38 GMT</pubDate>
            <atom:updated>2019-08-28T20:33:31.215Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beyond Coding: Watson Assistant Entities — Part 3, System Entities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yxXCz69-3Y_Gd2QE" /><figcaption>Photo by <a href="https://unsplash.com/@tierramallorca?utm_source=medium&amp;utm_medium=referral">Tierra Mallorca</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the first two articles, we examined the part entities play in an assistant and the difference between entities as synonyms versus entities as patterns.</p><p>In this article, we’ll be looking at system entities and how they differ from user-generated entities. We’ll also examine some helpful tips on how to avoid potential pitfalls to make sure you’re getting the best out of system entities.</p><h3><strong>User Generated Entities vs System Entities</strong></h3><p>As we’ve seen, user-generated entities allow you to create your own custom entities — either as synonyms or patterns. But what about those times when we want to identify a number? What do we do when we want to understand the user is talking about a date? Surely we don’t want to create and import these common entities every time we build an assistant!</p><p>This is where system entities can be used. System entities are a special type of entity which uses patterns and synonyms, but they are a part of the Watson system. This means we can implement them in our system for every skill and they will work the same way for every build.</p><p>However, it’s important to note you cannot modify these entities. They are available for use in all assistants, but the definitions — the synonyms and patterns — behind each entity exists within the Watson Assistant code and is not exposed to users.</p><p>To find the list of system entities you need to log in to your Watson Assistant, then click on <em>Entities</em>. You will then see two entity options — <em>My entities</em> and <em>System entities</em>. Click on <em>System entities</em> to display the list of available entities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*DCxQe19PsWQM1tyGWWQmcQ.png" /><figcaption>System entities location</figcaption></figure><p>The first thing you should notice is the naming convention of system entities. All system entities start with the prefix “sys-”. This allows Watson Assistant to differentiate between an entity created by a user and those available to all users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*o5dHIp3Zt29KZGoPF_Mq1A.png" /><figcaption>List of System entities</figcaption></figure><p>What this means is you cannot create a user-generated entity which starts with the prefix “sys-”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*0hg0G4asuPsy4bblh7qRcQ.png" /><figcaption>User-generated entities naming limitation</figcaption></figure><p>Let’s look at each system entity to get a better understanding of what they can do. We’ll focus on the non-Beta system entities for this article.</p><h3><strong>The Currency System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nY_1ph5MRmd0pcB9" /><figcaption>Photo by <a href="https://unsplash.com/@snowjam?utm_source=medium&amp;utm_medium=referral">Ethan McArthur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As the name suggests, this system entity is used to detect a currency value. If the user mentions a currency and a dollar value Watson Assistant detects the currency type and the number mentioned.</p><p>For example, a customer may say “I want to withdraw $50 from my account”. The assistant will recognize that a currency has been mentioned (dollar symbol) and the amount (in this case 50).</p><p>But what if the customer were to say “I want to withdraw fifty dollars from my account”? No problem! Watson Assistant recognizes a currency is mentioned as well as a number, even though digits weren’t used.</p><p>The Currency system entity identifies the type of currency used by the customer:</p><p>• “I want to withdraw fifty pounds from my account” would be identified as Great British Pounds (GBP) <br>• “I want to withdraw fifty euro from my account” would be identified as Euro (EUR)<br>• “I want to withdraw fifty Japanese yen from my account” would be identified as Yen (JPY)</p><p>But what happens if you’re in a country where the currency indicator is “dollars”? When Watson Assistant detects the currency type as “dollar”, or the dollar symbol (“$”), the default is USD. For any other currency which uses the terminology “dollar”, the user will have to state the specific type — such as “I want to withdraw fifty Australian dollars from my account”.</p><p>If the currency type is irrelevant to your build, you can ignore this aspect. Otherwise, you will need to take this into account when trying to determine which “dollar” currency is referenced.</p><p>It’s also important to understand if the customer’s interaction doesn’t include a currency indicator (dollars, $, etc) the assistant will not identify the number. For example, “I want to withdraw 50 from my account” will not be identified as a currency. Instead, you would need to use the Number system entity (discussed further on).</p><h3><strong>The Date System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fGlozK9XGbrEM0Ky" /><figcaption>Photo by <a href="https://unsplash.com/@esteejanssens?utm_source=medium&amp;utm_medium=referral">Estée Janssens</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This system entity detects dates mentioned by a customer. It recognizes different types of dates and date formats (such as DD/MM/YY, MM/DD/YY, and YYYY-MM-DD).</p><p>For example, a customer could mention “Book an appointment for 13/1/2022”. The system entity detects the date is the 13th of January, of the year 2020. The statement “Book an appointment for 1/13/2022” would produce the same result.</p><p>But it can also detect the same date if the customer were to say any of the following:</p><p>• “Book an appointment for 13th January 2022”<br>• “Book an appointment for January 13, 2022”<br>• “Book an appointment for 13 Jan 2022”</p><p>It should be noted that the system entity is not case sensitive — thus January and January are the same things.</p><p>You should also be aware of the pitfall which applies to English language assistants only. The default date detection for English assistants is MM/DD/YYYY. In other words, 1/4/2022 is detected as 4th January, 2022. The assistant detects a date as DD/MM/YYYY only when the first number is greater than 12.</p><p>This is why “Book an appointment for 13/1/2022” and “Book an appointment for 1/13/2022” produce the same result — 13th January, 2022. However, the statement “Book an appointment for 1/4/2022” would be detected as 4th January, 2022. Again, this is for English language assistants only. In future articles, we will examine how to account for this and correct the information, but for now, you should be aware of this pitfall for English language assistants only.</p><p>The previous example deals with explicit dates mentioned in the customer’s interaction. But what if the customer didn’t know the specific date? What if they just knew they were available next Tuesday? Watson Assistant handles that for you!</p><p>The customer could say “Book an appointment for next Tuesday”. Watson Assistant understands that the user is referencing a date (Tuesday) and the future (next). In this case, the assistant would detect that the customer is talking about the first Tuesday after today.</p><p>This doesn’t mean the Tuesday next week, it means the first Tuesday which occurs after the current date. It’s important to understand the distinction.</p><p>For example, if a customer is interacting with your assistant on a Monday afternoon they may mean the Tuesday occurring next week (in approx. 8 days time). Watson Assistant will interpret “Book an appointment for next Tuesday” as tomorrow (in less than 24 hours time). This is because the system entity is looking for the first instance of Tuesday after today (Monday).<br> <br>The same applies to the detection of previous days mentioned — such as “I had a booking last Tuesday”. If the customer is interacting with the assistant on a Wednesday, it detects the date as yesterday (the first Tuesday before the current date), rather than the Tuesday approx. 8 days ago.<br>This pitfall applies to all assistants, not only English language assistants. We will also look at ways to work around this pitfall in future articles.</p><p>The final aspect of the Date system entity is that it can detect date ranges. This means if a customer were to say “I need to make a booking next month”, the system will detect a date range within the interaction (first of next month to the last of next month). The same applies to date ranges such as “next week”, “next year” etc. While the system entity wouldn’t pinpoint a specific date, it does provide the understanding that a range of dates is applicable.</p><h3><strong>The Number System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fgcVS8FpgqG4bo1T" /><figcaption>Photo by <a href="https://unsplash.com/@antoine1003?utm_source=medium&amp;utm_medium=referral">Antoine Dautry</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As the name suggests, this system entity detects numbers used in the customer’s interactions. The entity can detect cardinal numbers (and cardinal number words), such as 1, 2, three, four, etc. But it cannot detect ordinal numbers, such as 1st, 2nd, third, etc.</p><p>While this system entity is simple to understand, when used in conjunction with the Currency system entity you have a powerful set of tools. For example, a customer might be in a rush and decides to say “I want to withdraw 50 from my account”. There aren’t any currency indicators in the sentence which means the Currency system entity will not trigger. But with the Number system entity, your Assistant can identify the numeric value.</p><p>The Number system entity will also detect numbers used as part of a currency. For example, “I want to withdraw $50 from my account” would trigger both the Currency and Number system entities.</p><p>In future articles, we’ll examine situations where you might prefer to use the Number system entity versus the Currency system entity.</p><h3><strong>The Percentage System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tBMwGPVc2JA2BOHe" /><figcaption>Photo by <a href="https://unsplash.com/@belart84?utm_source=medium&amp;utm_medium=referral">Artem Beliaikin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The Percentage system entity detects whether a percentage has been mentioned in the customer’s statement. For example, if the customer were to say “I want 30% of my account transferred”, the assistant would detect that a percentage had been mentioned. The same would apply if the customer had said: “I want 30 percent of my account transferred”.</p><p>It should be noted that a percentage range would also be detected. For example, “I want 25–30 percent of my account transferred”, would trigger the Percentage system entity indicating that the percentage mentioned was 25 and 30.</p><p>Also note that the percentage in the sentence “I want 25 to 30 percent of my account transferred” would produce a different trigger. Only the number adjacent to the word “perfect” (or the % sign) (in this case “30”) is detected as a percentage.</p><p>The Percentage system entity overlaps with the Number system entity. A percentage trigger will also trigger detection from the Number system entity. This would allow for a combination to compensate for any pitfalls, such as the percentage example above where only the “30” is detected.</p><h3><strong>The Time System Entity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eudKqBXJJ96OzLBX" /><figcaption>Photo by <a href="https://unsplash.com/@loic?utm_source=medium&amp;utm_medium=referral">Djim Loic</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This system entity detects times mentioned by a customer. This system entity typically works in conjunction with the Date system entity, but they do function independently.</p><p>For example, a customer might say “Book an appointment for 3pm”. The Time system entity will detect that a time (3pm) has been mentioned. But what if the customer didn’t think to mention the am/pm indicator, but instead said “Book an appointment for 3”. The Time entity will not detect a time in this case since we can’t be sure the customer doesn’t mean book an appointment for 3 people. But, if the sentence had been “Book an appointment at 3”, the entity detects a time (“at 3”), but detects the time as 3am!</p><p>The Time entity can also detect implied times. For example, “Book an appointment in 3 hours”. The entity would interpret this as a time 3 hours into the future from the time the interaction occurred. The great thing is that the Date system entity detects that the user is talking about a date as well and automatically calculates the date discussed.</p><p>The other feature the Time system entity shares with the Date system entity is the ability to detect ranges. For example, “Book an appointment for 2pm to 3pm” is detected as a range starting at 2pm and ending at 3pm. But, “Book an appointment for 2–3pm” would be detected as a time range starting at 2am and ending at 3pm. There are techniques we can use to navigate around these pitfalls, which will be discussed in future articles.</p><p>It’s important to understand the subtleties of this system entity, as what we might expect may not be what the system has detected. By understanding these nuances, we can anticipate, and account for, pitfalls.</p><h3><strong>System Entity Benefits</strong></h3><p>Now that we’ve looked at each of the system entities why would we use them if we have the freedom to generate our own? One reason is re-usability. We can implement system entities across multiple assistants and they function the same way in every build.</p><p>But, beyond identifying information, system entities allow us to extract the information for later use — without creating Regular Expression patterns. The patterns are built into the system entity and we can easily extract the identified value!</p><p>So, with system entities, we have a great package where we can easily detect and, if required, extract data. The added benefit is that we can control whether to use them for our assistant. Unlike user-generated entities, we can turn system entities on or off. This means we can either use the pre-packaged system entity or if we prefer, create our own version.</p><p>System entities are a great solution to commonly used concepts and they are always available. They help to speed up our build time and get the assistant up and running that much faster!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jl4JPsO9GnbLNlM_" /><figcaption>Photo by <a href="https://unsplash.com/@leorivas?utm_source=medium&amp;utm_medium=referral">Leo Rivas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>More About Entities</strong></h3><p>Now we’ve taken look at system entities we’ll be taking a closer look at implementing entities in general. In future articles, we will examine:</p><ul><li>How to use entities<br>• How to determine which entities we need<br>• Entity Best Practices</li></ul><p>Stay tuned for future updates!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16d7351a94c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-3-system-entities-16d7351a94c4">Beyond Coding: Watson Assistant Entities — Part 3, System Entities</a> was originally published in <a href="https://medium.com/ibm-watson">IBM watsonx Assistant</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Coding: Watson Assistant Entities — Part 2, The Faces Of Entities]]></title>
            <link>https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-2-the-faces-of-entities-b51e849f27e7?source=rss-c96f126c6d06------2</link>
            <guid isPermaLink="false">https://medium.com/p/b51e849f27e7</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[wa-tutorial]]></category>
            <category><![CDATA[watson-assistant]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Oliver Ivanoski]]></dc:creator>
            <pubDate>Wed, 28 Aug 2019 13:43:39 GMT</pubDate>
            <atom:updated>2019-08-28T13:43:39.503Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beyond Coding: Watson Assistant Entities — Part 2, The Faces Of Entities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qtchm3NXBz5L_oZp" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the first article, we went through an overview of where entities fit in the Watson Assistant structure. We also touched upon the different types of entities and their benefits.</p><p>In this article, we will take a closer look at the different types of entities — synonyms and patterns. As we know, entities are a feature which allows us to group items or concepts. This allows us to strengthen the intelligence of our Watson Assistant. But to further improve a customer’s (or end-user’s) experience, we can use entities to recognize patterns and extract data.</p><p>Entities are also broken down in two areas. The first is user-generated entities and the second is system entities. For now, we will focus on user-generated entities (entities you create for your assistant). System entities will be discussed in other articles.</p><h3>User Generated Entities — Synonyms</h3><p>At their very core, entities are synonyms which help the assistant determine what the customer is asking (in conjunction with intents). Entities are the mechanism by which we link concepts (words) to one another.</p><p>Consider entities to be a collection of groups. Each entity contains its members, and each member contains its synonyms.</p><p>The simplest example (which has been used to explain various concepts) is the group of Animals. For instance, we want to provide people with an assistant which helps them navigate a zoo’s enclosures. Part of the process is to understand which animal is being discussed.</p><p>With this in mind, we would create an entity called Animals. Within this entity, we would have several animals and their synonyms.</p><p>For example, “Hippopotamus” would have the synonyms “hippo”, “river horse”, “hippopotami”, “hippopotamuses” (to take into account the evolution of language) and perhaps even “Hippopotamus amphibious”. For this example, we will ignore the pygmy hippopotamus.</p><p>You would then continue to add synonyms for animals as required. But the level of detail depends on the domain, or topic, the assistant will discuss. In our fictional zoo, all birds may be housed in a single enclosure, which means you could create “Birds” as part of the “Animals” entity and populate it with synonyms such as “parrot”, “owl”, “kookaburra”, “condor”, “eagle” etc. If the birds were scattered in multiple enclosures, you could create an entry for “Birds of prey” / “Raptors”, “Nocturnal birds” or “Marsh birds”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*Ah934dJlJgaqjX3Ka_AcSA.png" /><figcaption>An example of the Animals entity</figcaption></figure><p>The delineation on how to define the entity is something we will look at in future articles, but for now it should be understood that an entity is the umbrella concept while the entries underneath it are the group’s members.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*vUGAXFFeWAxBq5sJ4Ed1MQ.png" /><figcaption>Possible expansions of the Animals entity</figcaption></figure><p>This now means the assistant now understand that a hippo and a parrot are both animals.</p><p>But is that the extent of the synonyms capability? Not at all. We could expand the entity synonyms to use phrases, or multiple concepts.</p><p>Consider the phrase “Tell me about”. It’s an indicator that the customer is asking for information. We could create entities for the components, but a phrase entity would suffice. We could consider adding “Explain to me”, “What do you know”, “Do you have information”, etc. By going beyond simple word synonyms, we begin to expand the building blocks — and the power — of entities in our assistant.</p><p>We’ll take a closer look at creating and defining entities in future articles, for now, it’s important to understand that entities aren’t limited to single concepts or words — as I’ve mentioned, an entity houses the groups of similar concepts.</p><h3>User Generated Entities — Patterns</h3><p>Entities as synonyms are useful in identifying information and determining the topic being discussed. But is data identification the most we can expect? Definitely not!</p><p>With pattern entities, you can tell the Watson assistant that you expect customers will provide certain data types — anything from an email address to an alphanumeric serial number. With pattern entities, you’re only limited by the customer information you need to identify.</p><p>Unlike Synonym Entities, Pattern Entities identify a recognizable pattern in the customer’s query. The structure of the pattern is determined by the regular expression (or regex) defined in the entity. I won’t delve into regular expressions (not only is the subject extensive, but there are numerous online resources which can help), but I will provide a simple example to better understand what we mean by Pattern Entities.</p><p>A pattern entity should follow the same considerations as a Synonym Entity — a top-level entity containing groups of concepts. But instead of synonyms, you are simply defining patterns.</p><p>It should be noted, an entity <em>cannot</em> be both a Synonym Entity and a Pattern Entity — entities can only be one or the other.</p><p>With that in mind, let’s consider our zoo navigation example. Our customers have been traveling around the zoo and they are told about discounts and offers with the zoo’s partners. To find the best discounts for their area, we need a zip code. With System entities, we can’t do anything more than understand the topic is “zip code” and “discounts”.</p><p>So, we create a new entity — Contact_Details. We now have an entity devoted to understanding how we can communicate with the customer. But more importantly, we can <em>extract</em> the information.</p><p>Once we have the high-level entity, we add a “Zip” entry. We then tell the assistant which regular expression pattern we want to use — (\b|\s)\d{5}(\b|\s). This simple example tells the system to look for continuous 5 digits with spaces or boundaries around those digits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*nongFA53uciVRuYApzdHnw.png" /><figcaption>An example of Pattern entities</figcaption></figure><p>We now have a way of identifying the pattern, we can now extract this information from the customer’s response. The way we achieve this will be discussed in future articles, but for now we should understand that once we have the zip code we can decide what to do next — send it to the discount systems to display partners; provide analytics for the zoo to determine where they should increase discount partners and so on.</p><h3>More About Entities</h3><p>Now we’ve taken a quick look at the two different types of entities available. It’s important to understand how they work and how they differ to get the best out of entities. We’ll be looking at entities in-depth in future articles, where we examine:</p><ul><li>How to use entities</li><li>How to determine which entities we need</li><li>Entity Best Practices</li></ul><p>Read about pre-built system entities in the <a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-3-system-entities-16d7351a94c4">third article</a> of this series.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b51e849f27e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-2-the-faces-of-entities-b51e849f27e7">Beyond Coding: Watson Assistant Entities — Part 2, The Faces Of Entities</a> was originally published in <a href="https://medium.com/ibm-watson">IBM watsonx Assistant</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Coding: Watson Assistant Entities — Part 1, A Quick Overview]]></title>
            <link>https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-1-a-quick-overview-c127a32d077d?source=rss-c96f126c6d06------2</link>
            <guid isPermaLink="false">https://medium.com/p/c127a32d077d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[wa-tutorial]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[watson-assistant]]></category>
            <dc:creator><![CDATA[Oliver Ivanoski]]></dc:creator>
            <pubDate>Wed, 28 Aug 2019 13:40:29 GMT</pubDate>
            <atom:updated>2019-08-28T13:40:29.674Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Beyond Coding: Watson Assistant Entities — Part 1, A Quick Overview</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aluz8IR058PKk5bF" /><figcaption>Photo by <a href="https://unsplash.com/@askkell?utm_source=medium&amp;utm_medium=referral">Andy Kelly</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A Watson Assistant connects to users in many ways — via text on a screen, voice on a phone or even small, robotic bodies. But there are two common factors for each of these. The first is linking the assistant to the user interface. The second is the “brain”, the narrative, which drives the assistant.</p><p>The connections — such as Watson web-hosted chat widgets, webhooks, and channel connectors to platforms like Facebook, Slack and Intercom — allow the user to interact with our Watson Assistant. But that’s only half the story. The other half is the “brain” — the content and the intelligence — behind the interactive layer which interacts with customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*ht2D6SIXEKq6ShnSyYlYJA.png" /><figcaption>Watson Assistant Cognitive Architecture</figcaption></figure><p>By looking beyond the code, we can create positive, engaging and useful interactions.</p><h3><strong>Watson’s Brain</strong></h3><p>Watson Assistant has three components which work together to interact with users; the intents, the entities and the dialog. This is an over-simplification of the Watson Assistant system but it will suffice for this article, where we are examining Watson interactions, not Watson’s algorithms.</p><p>The intents allow a Watson Assistant to understand what the customer/end-user is asking.</p><p>The dialog component provides a Watson assistant with the narrative between itself and the customer/end-user.</p><p>In this article I’ll be looking at the third component, the entities. Entities allow a Watson Assistant to categorize and identify pieces of information to help make decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*sgnjBs1grMNklLvqYD_qmA.png" /><figcaption>Watson Assistant Components</figcaption></figure><p>But how can we use entities to ensure the systems we create are at their best? To help get us there we first need to understand what they are.</p><h3><strong>Explaining Entities</strong></h3><p>Entities. Are they synonyms? Are they patterns? The answer is Yes. Yes, they are synonyms. Yes, they identify recognizable patterns. But before we can explore how to implement entities, we should understand why they might be used.</p><p>An entity allows us to create categories of something. By something, I mean anything. An entity can represent several concepts, such as dates, locations, services provided, physical products, etc. Entities are only limited by the assistant’s domain, or topic, of discussion.</p><p>It’s important to understand an entity is used to group items or concepts to identify information.</p><p>But Watson Assistant has another use for entities — identifying recognizable patterns. This type of entity requires some knowledge of Regular Expressions, but this powerful feature allows you to extract information from a conversation.</p><p>For example, an entity can be used to recognize the pattern of an email address. The information can be identified and then stored for later use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*1CgCBemZMmoR0MSOv2qddA.png" /><figcaption>The two sides of entities</figcaption></figure><p>I’ll go into detail on each of these features of entities in later articles. For now we should understand that entities are a way of classifying a group and its members.</p><h3><strong>Entity Benefits</strong></h3><p>So why would we use entities if we already have intents to identify the customer’s/end-user’s question? Intents allow us to identify the customer’s query, but entities allow us to collect information, either for use with external systems, or to make decisions during interactions.</p><p>By identifying information, you can re-use the entity throughout your dialog structure. There is no need to create structures which identify each of the products we have for sale, or each of the end-user’s pets we want to learn about. We have a central location for these grouped concepts and they aren’t limited by the question being asked.</p><p>The fact that we can extract information from a question using multiplies the benefits. Understanding what the customer/end-user is talking about is vital, but being able to capture the information and personalize the conversation means you’re getting the most out of the assistant.</p><h3><strong>More About Entities</strong></h3><p>We’ve looked at a general overview of entities, but we haven’t scratched the surface. In future articles we will be looking at:</p><p>• The details of the different entity types<br>• How to use entities<br>• How to determine which entities we need<br>• Entity Best Practices</p><p>Read about the different types of entities in the <a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-2-the-faces-of-entities-b51e849f27e7">second article</a> of this series.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c127a32d077d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-watson/beyond-coding-watson-assistant-entities-part-1-a-quick-overview-c127a32d077d">Beyond Coding: Watson Assistant Entities — Part 1, A Quick Overview</a> was originally published in <a href="https://medium.com/ibm-watson">IBM watsonx Assistant</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>