{"id":19934,"date":"2019-05-03T04:30:17","date_gmt":"2019-05-03T04:30:17","guid":{"rendered":"https:\/\/developer.kore.ai\/v7-1\/?p=19934"},"modified":"2021-03-30T11:53:20","modified_gmt":"2021-03-30T10:53:20","slug":"chatbot-overview","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-1\/docs\/bots\/chatbot-overview\/chatbot-overview\/","title":{"rendered":"Chatbot Overview"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>Communication has been the essence of life from the beginning of times. With the evolution of technology, mode and style of communication have also evolved.<\/p>\n<p>In the early days, conversations were restricted to verbal and textual interaction between humans. These interactions are usually guided by emotions, context, and awareness of the previous conversation. With the advent of computers, interactions have now expanded to include machines i.e. human-machine interactions. The transition from a command-based interface to a graphical user interface (GUI) to a conversational user interface (CUI) was natural, need-based and this transition made communication easier.<\/p>\n<p>With CUI, came chatbots which could interact with the users in a natural language. Further enhancements using Artificial Intelligence and NLP capabilities enabled a chatbot to understand user utterance in the natural language and derive the task from the user utterance as well extract the information required to successfully execute the task.<\/p>\n<p>AI-driven, NLP-based chatbots and voice assistants are the latest in technology and a must for all businesses these days.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot0.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19938\" src=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot0.png\" alt=\"\" width=\"820\" height=\"332\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2 id=\"conversational-bots\"><span class=\"ez-toc-section\" id=\"What_are_Conversational_Bots\">What are Conversational Bots<\/span><\/h2>\n<p>A <strong>Chatbot<\/strong> can be defined as a virtual assistant that acts as an intelligent intermediary between people, digital systems and Internet-enabled things. It replaces the traditional graphical user interfaces (GUIs) of an application or website with a &#8220;Conversational User Interface&#8221;. It is a paradigm shift from the earlier communications achieved either by entering syntax-specific commands or clicking icons.<\/p>\n<p>Chatbots can be designed to chat with people through a mix of natural language-based conversations, and responses can come in the form of buttons, calendars or other widgets that accelerate the speed with which a person can respond.<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19937\" src=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot1.png\" alt=\"\" width=\"820\" height=\"458\" \/><\/a><\/p>\n<p>One of the first stepping stones to this future are AI-powered messaging solutions or <strong>conversational bots<\/strong>. A conversational bot is a computer program that works automatically and is skilled in communicating through various digital media\u2014including intelligent virtual agents, organizations&#8217; apps, organizations&#8217; websites, social platforms, and messenger platforms. Users can interact with such bots, using voice or text, to access information, complete tasks or execute transactions.<\/p>\n<p>So what makes the Conversation Bots so special? This in a nutshell:<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19939\" src=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot2.png\" alt=\"\" width=\"820\" height=\"342\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2 id=\"entities-intents\"><span class=\"ez-toc-section\" id=\"What_are_Intents_Entities\">What are Intents &amp; Entities<\/span><\/h2>\n<p>Every Conversational Bot faces three challenges:<\/p>\n<ol>\n<li>Understanding what the user wants &#8211; <strong>Intent<\/strong> Detection<\/li>\n<li>Extracting the required information from the user to accomplish what the user wants &#8211; <strong>Entity<\/strong> Extraction<\/li>\n<li>Accomplishing the user wants &#8211; Conversation\/<strong>Dialog Flow.<\/strong><\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>Whatever user says is considered as an\u00a0<strong>Utterance<\/strong>. It is the task of the Conversational Bot to extract from this user Utterance the\u00a0<strong>Intent<\/strong> and the\u00a0<strong>Entities\u00a0<\/strong>essential to carry a conversation. For the rest of this article, we will consider the following user utterance: <em>&#8220;I want to fly to London this weekend&#8221;<\/em><\/p>\n<p>An\u00a0<strong>Intent<\/strong> is the user&#8217;s intention. It usually comes in the form of a verb or noun within the user utterance. From the above user utterance, a conversational bot will understand the user intent as <em>&#8220;want to fly&#8221;<\/em> and will trigger the corresponding dialog task.<\/p>\n<p><strong>Entities<\/strong> are pieces of data or information that the Bot requires to complete the task as identified in the user Intent. There can be multiple entities in various formats that are required by the Bot. These can be as a part of user utterance or the Bot needs to prompt the user for the entity values. For example in the above user utterance, <em>&#8220;London&#8221;<\/em> and <em>&#8220;this weekend&#8221;<\/em> form the values for the entities Destination and Travel Date respectively. As you can notice, the <em>&#8220;Source&#8221;\u00a0<\/em>entity value is missing and the Bot needs to prompt the user for the same.<\/p>\n<p>As seen, an Entity can be of any type like location, date, time, person etc..<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19944\" src=\"\/wp-content\/uploads\/sites\/12\/ConversationalBot3.png\" alt=\"\" width=\"820\" height=\"374\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2 id=\"intelligent-bots\"><span class=\"ez-toc-section\" id=\"How_to_build_Intelligent_Bots\">How to build Intelligent Bots<\/span><\/h2>\n<p>Bots aren\u2019t smart by default. They are made capable of showing some level of artificial intelligence by leveraging technologies like <strong>machine learning<\/strong>, <strong>big data<\/strong>, <strong>natural language processing<\/strong>, etc. A chatbot is intelligent when it becomes aware of user needs, understands the user perspective or context and responds according to the user&#8217;s mood or emotion. Its intelligence is what gives the chatbot the ability to handle any scenario of a conversation with ease.<\/p>\n<p>The key for a conversational bot to understand humans is its ability to identify the intentions of humans and extract relevant information from the user utterance and map the relevant action\/task against that utterance. <strong>NLP (Natural language processing)<\/strong> is the science of extracting the intention(Intent) of text and relevant information(Entity) from the text.<\/p>\n<p><strong>Managing dialogs<\/strong> to keep track of multiple conversation threads, remembering the <strong>context<\/strong> and responding to the user tone or <strong>sentiment<\/strong> helps in giving the much needed humane touch to the conversation and at the same time serving the user with accurate and appropriate responses.<\/p>\n<p>Another aspect that helps build an intelligent Bot is having a <strong>Knowledge Base<\/strong>. This gives the Bot an ability to respond to frequently asked questions that return static responses. Building <strong>Knowledge Collection <\/strong>is an attempt to represent entities, ideas, and events, with all their interdependent properties and relations, according to a system of categories. This structured categorization of data will aid the Bot in answering user queries effectively and with ease.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Communication has been the essence of life from the beginning of times. With the evolution of technology, mode and style of communication have also evolved. In the early days, conversations were restricted to verbal and textual interaction between humans. These interactions are usually guided by emotions, context, and awareness of the previous conversation. With the...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[],"class_list":["post-19934","post","type-post","status-publish","format-standard","hentry","category-chatbot-overview"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/19934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/comments?post=19934"}],"version-history":[{"count":8,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/19934\/revisions"}],"predecessor-version":[{"id":21589,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/19934\/revisions\/21589"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/media?parent=19934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/categories?post=19934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/tags?post=19934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}