{"id":2819,"date":"2023-01-18T15:45:13","date_gmt":"2023-01-18T14:45:13","guid":{"rendered":"https:\/\/botnation.ai\/introduction-to-the-context\/"},"modified":"2026-01-02T15:27:56","modified_gmt":"2026-01-02T14:27:56","slug":"introduction-to-the-context","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/introduction-to-the-context\/","title":{"rendered":"Introduction to Contexts"},"content":{"rendered":"<p>Or how to contextualize the conversations of your chatbot<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>   <em>FIND A NEW VERSION OF THE COMPLETE GUIDE ON<\/em> <\/strong> <strong>   <em>the AI NLP BOTNATION <a href=\"https:\/\/botnation.ai\/en\/all-you-need-to-know-about-artificial-intelligence-on-botnation-table-of-contents\/\">by CLICKING HERE<\/a><\/em> <\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Introduction<\/h2>\n\n\n\n<p>The \u201ccontext\u201d function is very powerful and recommended for advanced users.<br><br>You will discover why and how Context will make your Chatbot Botnation much more accurate!<\/p>\n\n\n\n<p>Let\u2019s start by analyzing the conversation below, read the user\u2019s responses carefully.<\/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-50.png.webp\" alt=\"\" class=\"wp-image-2823\"><\/figure>\n\n\n\n<p>If we don\u2019t use Contexts, this conversation is not really feasible because the expression \u201cthe phone\u201d cannot trigger 2 different sequences \u2013 the first one analyzing the broken object, the second one proposing a connection \u2013 except by juggling with conditions\/incrementations and a result that could sometimes be random.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. How to define contexts in your chatbot:  <\/h3>\n\n\n\n<p>In the \u201cAI\u201d menu a tab bar is available where you can define contexts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-51-1024x346.png.webp\" alt=\"\" class=\"wp-image-2826\"><\/figure>\n\n\n\n<p><br>You can add as many contexts as you want and define the NLP keywords associated with them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-141-1024x539.png.webp\" alt=\"\" class=\"wp-image-6728\"><\/figure>\n\n\n\n<p><br>Contexts are also compatible with the use of <a href=\"https:\/\/botnation.ai\/en\/keyword-libraries-in-nlp\/\">keyworrd librairies<\/a> and expressions.<\/p>\n\n\n\n<p>You can then apply the contexts to the sequences via the \u201ccontext\u201d drop-down menu in the sequence parameters.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2023\/01\/image-52-1024x336.png.webp\" alt=\"\" class=\"wp-image-2828\"><\/figure>\n\n\n\n<p>It is thus possible to have a Chatbot that manages French and English, including words common to both languages such as \u201cmenu\u201d. It is enough to \u201ccontextualize\u201d the user in French or English upon arrival.  <\/p>\n\n\n\n<p>Or, in the case of a quiz, by creating a context for each question, they can trigger similar answers but with different results.<\/p>\n\n\n\n<p><strong>Question 1:<\/strong><\/p>\n\n\n\n<p>\u201cWhat is the color of Henry IV\u2019s white horse? \u201c<\/p>\n\n\n\n<p>Answer: \u201cWhite\u201d.<\/p>\n\n\n\n<p><br><strong>Question 22:  <\/strong> <\/p>\n\n\n\n<p>\u201cI am a French actor playing the role of Jean-Claude Dusse in Les Bronz\u00e9s, I am Michel\u2026 \u201c<\/p>\n\n\n\n<p>Answer: \u201cWhite\u201d.<\/p>\n\n\n\n<p><br>Identical keywords and expressions no longer interfere with the answers; those attributed to a context are isolated to that context.  <\/p>\n\n\n\n<p>You can rename or delete a context by activating the tab and changing its title or clicking on the trash can.<\/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-53.png.webp\" alt=\"\" class=\"wp-image-2830\"><\/figure>\n\n\n\n<p><br>The development of <a href=\"https:\/\/botnation.ai\/en\/?p=3013\">your chatbots<\/a> will become more complex, that\u2019s why we advise you to activate the contexts only for bots with depth and an important use of NLP, but they will be more relevant and efficient!<br><\/p>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[194,198,221],"class_list":["post-2819","support","type-support","status-publish","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\/2819","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:attachment":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=2819"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=2819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}