{"id":551,"date":"2018-08-17T14:18:45","date_gmt":"2018-08-17T14:18:45","guid":{"rendered":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/?p=551"},"modified":"2018-08-21T11:44:14","modified_gmt":"2018-08-21T11:44:14","slug":"artificial-intelligence-and-chatbots","status":"publish","type":"post","link":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/posts\/551","title":{"rendered":"Artificial Intelligence and Chatbots"},"content":{"rendered":"<p>I have been working through the MOOC <a href=\"https:\/\/www.edx.org\/course\/how-to-build-chatbots-and-make-money\">How to Build Chatbots and Make Money<\/a> on <a href=\"https:\/\/www.edx.org\/\">edX<\/a> offered by <a href=\"https:\/\/www.ibm.com\/uk-en\/\">IBM.\u00a0<\/a>In this course they give access to use <a href=\"https:\/\/www.ibm.com\/watson\/ai-assistant\/\">IBM Watson Assistant<\/a>\u00a0 to create your own chatbot and try out.<\/p>\n<p>The course asked to create a chatbot that can help an online florist to give suggestions about flowers suitable for various occasions (birthdays, anniversaries, valentines day etc.) for various recipients (mother, girl friend, teacher etc.) and to provide delivery information. However, I tried to use <a href=\"https:\/\/www.ucem.ac.uk\/faqs\/\">UCEM FAQs<\/a>\u00a0specifically the ones relating to &#8220;Studying with UCEM&#8221; and see how my chatbot, Nikki, will cope.<\/p>\n<p>I picked the name Nikki for my chatbot because I wanted a name that is easy to remember as well as has relevance in more than one region.\u00a0 Nikki, I thought\u00a0 would have relevance in the Western world (shorten for Nichola, Nicole) as well as in the East (Nikita, Nikki).<\/p>\n<p>In the first instance, for a chatbot to work you have to identify <strong>intent(s).<\/strong>\u00a0In the course intent was defined as the goal or purpose of the user input. For example, I have named an intent <em>#greetings<\/em> to encompass &#8220;hello&#8221;, &#8220;hi&#8221;, &#8220;hey&#8221;, &#8220;good morning&#8221; and &#8220;good evening&#8221; type of user inputs intended as greetings.<\/p>\n<p><strong>Entities<\/strong>\u00a0enable IBM Watson to identify details in the user&#8217;s input, which can then be used to provide a customised or differentiated responses to the user. For example &#8220;Which flowers for birthday?&#8221; and &#8220;what are best flowers for Valentine&#8217;s day?&#8221; both express an intention of getting a suggestion about flowers (<em>#flower_suggestions<\/em> we can name it), but the two questions will need different answers and this differentiation can be made using entities.\u00a0 Entities have a name and values (a series of values and associated synonyms).<\/p>\n<p><strong>Dialogue\u00a0<\/strong>defines how the chatbot will respond to the questions posed by the user. Dialogue is structured using the concept of nodes, which has a name, condition and one or more responses. You can have hierarchical nodes (parent nodes and child nodes) and ask user for more information to match conditions to continue with a meaningful dialogue.<\/p>\n<p>In setting up Nikki, I only used intents as the questions and answers I have trained her were of very simple nature. However, I was impressed how good Nikki was in understanding natural language.<\/p>\n<p>For example, I have trained Nikki to give information to student(s) about change of circumstances, something unexpected happening in your life that may affect your studies. These included being unwell, travelling for work etc. In a conversation with Nikki, one colleague typed in &#8220;<em>I&#8217;m under the weather<\/em>&#8221; and I wasn&#8217;t sure what Nikki would say.<\/p>\n<figure id=\"attachment_553\" aria-describedby=\"caption-attachment-553\" style=\"width: 468px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/2018-08-17_12-29-46.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-553 size-full\" src=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/2018-08-17_12-29-46.jpg\" alt=\"Nikki responded to the question &quot;I'm under the weather&quot; correctly directing the user to change of circumstances procedure\" width=\"468\" height=\"815\" srcset=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/2018-08-17_12-29-46.jpg 468w, https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/2018-08-17_12-29-46-172x300.jpg 172w\" sizes=\"(max-width: 468px) 100vw, 468px\" \/><\/a><figcaption id=\"caption-attachment-553\" class=\"wp-caption-text\">Conversation with Nikki the chatbot<\/figcaption><\/figure>\n<p>Nikki surprised us by correctly identifying the request and with the response to direct the user to change of circumstances procedure.<\/p>\n<p>Another colleague informed Nikki &#8220;I am ill&#8221; again for which she directed them to the change of circumstances page. Then my colleague typed &#8220;death&#8221; at which point Nikki said<\/p>\n<p>&#8220;Great talking to you. Have a good day.&#8221;<\/p>\n<figure id=\"attachment_554\" aria-describedby=\"caption-attachment-554\" style=\"width: 488px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/nikki.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-554 size-full\" src=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/nikki.jpg\" alt=\"Nikki chatbot responds with goodbye to the user who typed death\" width=\"488\" height=\"533\" srcset=\"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/nikki.jpg 488w, https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-content\/uploads\/2018\/08\/nikki-275x300.jpg 275w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/a><figcaption id=\"caption-attachment-554\" class=\"wp-caption-text\">Second conversation with Nikki the chatbot<\/figcaption><\/figure>\n<p>If someone is dead they can&#8217;t communicate with you anymore so Nikki ended the conversation which was funny and clever. However, I have now taught her to be more empathetic and suggest the response as for change of personal circumstances as it is more likely to be a death in the family that they are talking about. Until I specifically introduce entities to capture different change of circumstances situations Nikki is directing them to the same change of circumstances answer.<\/p>\n<p>I would highly recommend this course if you are looking to get yourself familiar with AI chatbots. It is fun, doesn&#8217;t take a long time and most of all it is free.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been working through the MOOC How to Build Chatbots and Make Money on edX offered by IBM.\u00a0In this course they give access to&hellip;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[47,52,48,49,50,51],"_links":{"self":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts\/551"}],"collection":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/comments?post=551"}],"version-history":[{"count":6,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"predecessor-version":[{"id":561,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/posts\/551\/revisions\/561"}],"wp:attachment":[{"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ucem.ac.uk\/onlineeducation\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}