{"id":2631,"date":"2025-12-17T12:46:00","date_gmt":"2025-12-17T11:46:00","guid":{"rendered":"https:\/\/botnation.ai\/everything-you-need-to-know-about-artificial-intelligence-on-botnation-basic-features\/"},"modified":"2026-02-19T11:00:40","modified_gmt":"2026-02-19T10:00:40","slug":"everything-you-need-to-know-about-artificial-intelligence-on-botnation-basic-features","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/everything-you-need-to-know-about-artificial-intelligence-on-botnation-basic-features\/","title":{"rendered":"All you need to know about Artificial Intelligence on Botnation: Basic Features"},"content":{"rendered":"<p>Part 4 of 8<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.1 Keywords and Expressions<\/strong><\/h3>\n\n\n\n<p>To properly configure your AI, you need to understand how a chatbot analyzes what users are typing. We based our NLP on the detection of isolated or associated keywords.<br><br><strong>Definition of an Intent:<\/strong><br>In the context of Artificial Intelligence, intent refers to the goal that the user has in mind when entering text.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example<\/em><\/strong> <em>:<\/em> <br><em>If the user enters \u201cI am looking to own a villa\u201d his intent is \u201cto buy a house\u201d.<\/em><\/p>\n<\/blockquote>\n\n\n\n<p><strong>Definition of a Keyword:<\/strong><br>It is a word that triggers a response from the chatbot. You need to select words that will be most frequently used by users to express an intention. Think about synonyms and sometimes conjugations.<br><em>EX: \u201cto buy\u201d, \u201cpurchase\u201d, \u201cto acquire<\/em><\/p>\n\n\n\n<p><strong>Definition of an Expression:<\/strong><br>It is a combination of keywords that generally distinguish two similar intentions. When an Expression is used in an AI rule, the rule is only triggered if all the keywords in the expression are present. However, the order in which these words were entered by the user or if they are separated by other words does not influence the triggering of the rule.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>The Expression \u201c<strong>buy house<\/strong>\u201d triggers a response even if the user entered \u201cI am looking for a <strong>house<\/strong> to <strong>buy<\/strong>.\u201d<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-5.png.webp\" alt=\"\" class=\"wp-image-2635\"><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-6.png.webp\" alt=\"\" class=\"wp-image-2637\"><\/figure>\n<\/blockquote>\n\n\n\n<p><strong>Definition of an AI rule:<\/strong><br>It is a set of keywords and Expressions corresponding to an Intent that triggers a response from the chatbot.<\/p>\n\n\n\n<p><br>The chatbot does not understand a sentence in its entirety but it will recognize some words. It is by comparing these words with those configured in the rules of its AI that it will be able to associate the right answer.<\/p>\n\n\n\n<p><strong>The selection of the right Keywords and Expressions is therefore essential for a successful AI.<\/strong><\/p>\n\n\n\n<p>You need to look for the differentiating elements between rules and translate the intentions you want your chatbot to understand into relevant keywords.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example: <\/em><\/strong><br><em>Let\u2019s imagine a chatbot specialized in real estate sales<strong>(and only sales<\/strong>).<\/em><\/p>\n\n\n\n<p><br><em>We want the chatbot to react to the desire to buy a house, which we differentiate from the desire to buy an apartment. There are two intentions: the type of transaction (purchase) and the type of property (house).<\/em><\/p>\n\n\n\n<p><br><em>Since it\u2019s a sales-focused chatbot, we don\u2019t need to detect the type of transaction. It is the type of property that is the differentiator.<\/em><\/p>\n\n\n\n<p><br><em>Therefore, it is enough to make rules on synonyms of house and apartment.<\/em><br><\/p>\n\n\n\n<p><em>\u201cBuying House\u201d Rule:<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-7.png.webp\" alt=\"\" class=\"wp-image-2639\"><\/figure>\n\n\n\n<p><em>\u201cBuying Apartment\u201d Rule<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-8.png.webp\" alt=\"\" class=\"wp-image-2641\"><\/figure>\n<\/blockquote>\n\n\n\n<p><strong>Always type in the key words with the correct spelling<\/strong>. Botnation\u2019s algorithms will handle typos, accents or plurals. However, when the user makes too many mistakes in the same word, the chatbot may not be able to understand and will return to the Default Response Sequence. The misunderstood words will then appear in the recommendation algorithm. Only these errors should be added to your AI rules. We will deal with this point later.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>the keyword \u201c<strong>purchase<\/strong>\u201d will be recognized even when it is written:<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>pu<strong>rr<\/strong>chase<\/li>\n\n\n\n<li>purchase<strong>s<\/strong><\/li>\n\n\n\n<li><strong>m<\/strong>urchase<\/li>\n<\/ul>\n\n\n\n<p>But it will not be understood if it is written:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>pur<strong>rs<\/strong>hase<\/li>\n\n\n\n<li>p<strong>o<\/strong>rch<strong>o<\/strong>se<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<p><strong>Don\u2019t worry about case either<\/strong>, whether your keywords and expressions are in upper or lower case the algorithm will treat them the same.<\/p>\n\n\n\n<p><strong>Use an Expression only if one of the words is common to another rule.<\/strong><\/p>\n\n\n\n<p>Note that the AI triggers a rule only if all the words of an Expression are contained in the user\u2019s sentence. So <strong>the more words in the Expression, the less likely the user is to use that combination<\/strong>.<\/p>\n\n\n\n<p><strong>Expressions of more than 2 words should be limited to strict necessity.<\/strong><\/p>\n\n\n\n<p><strong>Do not include pronouns, conjunctions, prepositions, definite articles or contractions<\/strong>: <em>the, the, his, the, I, you, he, she, to, from, and, or, nor, or, etc<\/em>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>Now let\u2019s imagine that our real estate chatbot also wants to offer property sales. The chatbot must react to the intention to buy or sell a house or an apartment. That\u2019s four possibilities, so we need to create four AI rules.<\/em><br><\/p>\n\n\n\n<p><em>And when you think about it in terms of keywords, you realize that there are going to be words common to several rules. You can\u2019t use isolated keywords, you have to make associations to differentiate the intentions.<\/em><br><\/p>\n\n\n\n<p><em>First,<strong> we need to imagine the different ways in which users might express<\/strong> purchase<strong> intent<\/strong>:<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I want to buy \u2026<\/li>\n\n\n\n<li>I am considering the purchase of \u2026.<\/li>\n\n\n\n<li>I would like to be the owner of \u2026<\/li>\n<\/ul>\n\n\n\n<p><em>And for the sales intention we have :<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I want to sell \u2026<\/li>\n\n\n\n<li>I am considering the sale of \u2026<\/li>\n\n\n\n<li>I sell\u2026<\/li>\n<\/ul>\n\n\n\n<p><em>When we isolate the differentiating elements we get :<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>for purchase: buy, purchase, owner<\/li>\n\n\n\n<li>for sale: sell, sell, sell.<\/li>\n<\/ul>\n\n\n\n<p><em>For the type of property we have :<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>synonyms for house: villa, residence<\/li>\n\n\n\n<li>synonyms for apartment: studio.<\/li>\n<\/ul>\n\n\n\n<p><em>This gives the following rules:<\/em><br><\/p>\n\n\n\n<p><em><strong>\u201cBuying House\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-9.png.webp\" alt=\"\" class=\"wp-image-2644\"><\/figure>\n\n\n\n<p><strong><em>\u201cBuying Apartment\u201d Rule<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-10.png.webp\" alt=\"\" class=\"wp-image-2646\"><\/figure>\n\n\n\n<p><em><strong>\u201cSelling House\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-11.png.webp\" alt=\"\" class=\"wp-image-2648\"><\/figure>\n\n\n\n<p><em><strong>\u201cSelling Apartment\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-12.png.webp\" alt=\"\" class=\"wp-image-2650\"><\/figure>\n<\/blockquote>\n\n\n\n<p><strong>If in the same rule you have an isolated keyword that is found in an Expression, this Expression is useless<\/strong> because the rule is triggered anyway as soon as this keyword appears in the sentence.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><\/p>\n\n\n\n<p><em>If we have the following rule:<\/em><br><\/p>\n\n\n\n<p><em><strong>\u201cBank Account Problems\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-13.png.webp\" alt=\"\" class=\"wp-image-2652\"><\/figure>\n\n\n\n<p><em>Since we have \u201c<strong>bank<\/strong>\u201d as an isolated keyword, the rule is triggered when the user enters any phrase containing this word. This includes sentences containing \u201d <strong>bank<\/strong>problem\u201d, \u201d <strong>bank<\/strong>account\u201d and \u201d <strong>bank<\/strong>forbidden\u201d and therefore makes these Expressions useless.<\/em><br><\/p>\n\n\n\n<p><em>So in the end we have:<\/em><br><\/p>\n\n\n\n<p><em><strong>\u201cBank Account Problems\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-14.png.webp\" alt=\"\" class=\"wp-image-2654\"><\/figure>\n<\/blockquote>\n\n\n\n<p><strong>Between two conflicting rules, the AI will choose the one that has been used the most statistically<\/strong> and not the one that is potentially the most relevant (see the paragraph on Machine Learning).<\/p>\n\n\n\n<p><strong>AI optimization also involves using the fewest possible rules with the fewest possible Keywords and Expressions.<\/strong>  The less there is, the more responsive the chatbot will be to find the right answer.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.2 Negative Expressions<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><br>It is an Expression that excludes a keyword. Simply add a minus sign in front of the keyword you want to exclude.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>\u201cmaison -marseille\u201d is triggered when the entered sentence <strong>contains<\/strong> the keyword \u201cmaison\u201d <strong>AND does not contain<\/strong> the word \u201cmarseille<\/em><\/p>\n<\/blockquote>\n\n\n\n<p>This is a useful feature when you want to distinguish between two rules that might overlap.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>In our real estate chatbot, we want to distinguish between requests for houses with pools and those without.<\/em><br><\/p>\n\n\n\n<p><em>So we make two rules:<\/em><br><\/p>\n\n\n\n<p><em><strong>\u201cHouse without swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-15.png.webp\" alt=\"\" class=\"wp-image-2656\"><\/figure>\n\n\n\n<p><em><strong>\u201cHouse with swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-16.png.webp\" alt=\"\" class=\"wp-image-2658\"><\/figure>\n\n\n\n<p><em>The problem here is that \u201chouse\u201d is common to both rules. The AI will not know what to choose between the two rules at first. Then with our learning algorithms the AI will choose the most popular answer of the two (see paragraph on Machine Learning). But then you have a 50\/50 chance of giving the wrong answer.<\/em><br><\/p>\n\n\n\n<p><em>One way to solve this problem is to use a Negative Expression by excluding \u201cpool\u201d from the first rule.<\/em><br><\/p>\n\n\n\n<p><em><strong>\u201cHouse without swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-17.png.webp\" alt=\"\" class=\"wp-image-2660\"><\/figure>\n\n\n\n<p><em><strong>\u201cHouse with swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-18.png.webp\" alt=\"\" class=\"wp-image-2662\"><\/figure>\n<\/blockquote>\n\n\n\n<p>When using a Negative Expression, it must be active on all keywords and phrases in a rule.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>For our no-pool rule:<\/em><\/p>\n\n\n\n<p><br><em><strong>\u201cHouse without swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-19.png.webp\" alt=\"\" class=\"wp-image-2664\"><\/figure>\n<\/blockquote>\n\n\n\n<p>We see here one of the limits of the Negative Expressions because if we have two rules with several keywords, we have to make all the combinations. Furthermore, our algorithms will not apply to negative keywords (for response time optimization purposes) and do not detect input errors on them.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>For our rules on homes with and without pools:<\/em><\/p>\n\n\n\n<p><br><em><strong>\u201cHouse without swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-20.png.webp\" alt=\"\" class=\"wp-image-2666\"><\/figure>\n\n\n\n<p><em><strong>\u201cHouse with swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-21.png.webp\" alt=\"\" class=\"wp-image-2668\"><\/figure>\n<\/blockquote>\n\n\n\n<p>We will see later on a more efficient way on Botnation to solve this kind of rule conflict with Priority Keywords.<\/p>\n\n\n\n<p>Negative Expressions are therefore reserved for chatbots whose AI is not very complex.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.3 Priority Keywords (or Outgoing Keywords)<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><br>It is a Keyword that will trigger a rule, even if the phrase entered by the user contains other keywords that could have triggered other rules. To activate this option on a Keyword, it is preceded by a _ (underscore).<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Example:<\/em><\/strong><em> <\/em><br><em>If we take the example above and want a rule to be triggered when the Keyword \u201cHouse\u201d is used alone in a sentence but another rule is triggered when the user enters \u201cI am looking for a house with a pool\u201d.<\/em><br><\/p>\n\n\n\n<p><em>So we have the same problem as before but by putting \u201cpool\u201d in Priority Keyword, the solution is really much simpler.<\/em><br><\/p>\n\n\n\n<p><em><strong>\u201cHouse without swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-22.png.webp\" alt=\"\" class=\"wp-image-2670\"><\/figure>\n\n\n\n<p><em><strong>\u201cHouse with swimming pool\u201d Rule<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-23.png.webp\" alt=\"\" class=\"wp-image-2672\"><\/figure>\n<\/blockquote>\n\n\n\n<p>Unfortunately, Priority Keywords have their limits because they do not work on Expressions. And in a complex chatbot, rather than creating a set of complicated rules, one would prefer to use <strong>Botnation\u2019s advanced AI features, i.e. Contexts and Tunnels<\/strong>.<\/p>\n\n\n\n<p><strong>Online help:<\/strong><br><a href=\"https:\/\/botnation.ai\/en\/exit-keywords-in-nlp-or-priority-keywords\/\">Exit keywords in NLP<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p class=\"has-text-align-center\"> <a href=\"https:\/\/botnation.ai\/en\/all-you-need-to-know-about-artificial-intelligence-on-botnation-before-you-start\/\">&lt;&lt; Previous part<\/a> <strong>\u2013<\/strong> <a href=\"https:\/\/botnation.ai\/en\/all-you-need-to-know-about-artificial-intelligence-on-botnation-table-of-contents\/\">Table of contents<\/a> <strong>\u2013<\/strong> <a href=\"https:\/\/botnation.ai\/en\/everything-you-need-to-know-about-artificial-intelligence-on-botnation-advanced-features\/\">Next part &gt;&gt;<\/a> <br><br><a href=\"https:\/\/nono.botnation.ai\/Botnation_NLP_EN.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Download the guide in PDF format<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n","protected":false},"featured_media":21261,"template":"","meta":{"_acf_changed":false},"categorie-support":[194,198,221],"class_list":["post-2631","support","type-support","status-publish","has-post-thumbnail","hentry","categorie-support-features","categorie-support-tutorials","categorie-support-web-chatbot-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/2631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/types\/support"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media\/21261"}],"wp:attachment":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=2631"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=2631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}