{"id":19597,"date":"2019-04-25T09:43:27","date_gmt":"2019-04-25T09:43:27","guid":{"rendered":"https:\/\/developer.kore.ai\/v8-0\/?p=19597"},"modified":"2021-03-25T17:17:43","modified_gmt":"2021-03-25T17:17:43","slug":"talk-to-bot","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v8-0\/docs\/bots\/test-your-bot\/talk-to-bot\/","title":{"rendered":"Talk to Bot"},"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>After you have defined your bot and configured one or more tasks, you should test your settings before you publish your NLP-enabled bot. Bot owners and developers can chat with the bot in real-time to test recognition, performance, and flow as if it were a live session.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Testing_a_Bot\">Testing a Bot<\/span><\/h2>\n<p>To test your tasks in a messaging window,\u00a0click the <strong>Talk to Bot<\/strong>\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"icon alignnone wp-image-9132\" src=\"\/wp-content\/uploads\/sites\/16\/talk-icon.png\" alt=\"Run Bot Dialog\" width=\"25\" height=\"26\" \/> icon located on the lower right corner on the Bot Builder.<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/16\/Talk-to-your-bot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16681 alignnone\" src=\"\/wp-content\/uploads\/sites\/16\/Talk-to-your-bot.png\" alt=\"\" width=\"820\" height=\"461\" \/><\/a><\/p>\n<p>A\u00a0messaging window for the bot is displayed and connected to the NLP interpreter as shown in the following illustration for the <em>Flight Management Bot<\/em>.<\/p>\n<div class=\"alert alert-info\"><strong>Note:<\/strong> The <strong>Talk to Bot\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"icon alignnone wp-image-9132\" src=\"\/wp-content\/uploads\/sites\/16\/talk-icon.png\" alt=\"Run Bot Dialog\" width=\"25\" height=\"26\" \/><\/strong> icon is not enabled until and unless at least one task is created.<\/div>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/16\/Talk-Chat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14433 alignnone\" src=\"\/wp-content\/uploads\/sites\/16\/Talk-Chat.png\" alt=\"\" width=\"383\" height=\"458\" \/><\/a><\/p>\n<p>When you first open the window, the <strong>Bot Setup Confirmation Message<\/strong>\u00a0field definition for the bot is displayed, if defined. In the <strong>Message<\/strong> section, enter text to begin interacting and testing your bot, for example, <em><span style=\"color: #0000ff\">Book a flight.<\/span><\/em><\/p>\n<p>The NLP interpreter begins processing the task, verifying authentication with the user and the web service, and then prompting for required task field information. When all the required task fields are collected, it executes the task.<\/p>\n<p>While testing your bot, try different variations of user prompts and ensure the NLP interpreter is processing the synonyms (or lack of synonyms) properly. If the bot returns unexpected results, consider adding or modifying synonyms for your tasks and task field names as required. For more information, see <a href=\"\/docs\/bots\/nlp\/optimizing-bots\/\" target=\"_blank\" rel=\"noopener noreferrer\">Natural Language Processing<\/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><span class=\"ez-toc-section\" id=\"Troubleshooting\">Troubleshooting<\/span><\/h2>\n<p>You can open a <strong>debug<\/strong> window to view the natural language processing, logs, and session context and variables of the chat. To open the debug, click the Debug icon \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"icon alignnone wp-image-9717 size-full\" src=\"\/wp-content\/uploads\/sites\/16\/DIYDialogTaskTalkToBotDebugIcon.png\" alt=\"\" width=\"11\" height=\"11\" \/> located on the top right-hand side of the Talk to Bot chat window. The Debug window consists of the following tabs: <strong>Debug Log<\/strong>, <strong>NL Analysis<\/strong>, <strong>Session Context &amp; Variables<\/strong>.<\/p>\n<ul>\n<li><strong>NL Analysis:<\/strong> Describes the bot tasks loading status, and for each utterance presents a task name analysis and recognition scores.<\/li>\n<li><strong>Debug Log<\/strong>: Lists the processing or processed Dialog task components along with a date timestamp.<\/li>\n<li><strong>Session Context &amp; Variables<\/strong>: Shows both context object and session variables used in the dialog task processing.<\/li>\n<\/ul>\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<h3><span class=\"ez-toc-section\" id=\"Debug_Log\">Debug Log<\/span><\/h3>\n<p><strong>Debug Log<\/strong> provides the sequential progression of a dialog task and context and session variables captured at every node. The Debug log supports the following statuses:<\/p>\n<ul>\n<li><em>processing<\/em>:\u00a0The Bots Platform begins processing of the node<\/li>\n<li><em>processed<\/em>:\u00a0 The node and node\u00a0connections are processed, the following node is found but the dialog has not yet moved to that node.<\/li>\n<li><em>waitingForUserInput<\/em>:\u00a0The user was prompted\u00a0for input<\/li>\n<li><em>pause<\/em>:\u00a0The current dialog\u00a0task is paused while another task is started.<\/li>\n<li><em>resume<\/em>:\u00a0The current dialog with paused status continues at the same point in the flow after completion of another task that was started.<\/li>\n<li><em>waitingForServerResponse<\/em>: The server request is pending an asynchronous response.<\/li>\n<li><em>error<\/em>:\u00a0An error occurred, for example, the loop limit is reached, a server or script node execution fails.<\/li>\n<li><em>end<\/em>:\u00a0The dialog reached the end of the dialog\u00a0flow.<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/16\/Debug-log-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21900\" src=\"\/wp-content\/uploads\/sites\/16\/Debug-log-1.png\" alt=\"\" width=\"650\" height=\"576\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/16\/20221201100015\/Debug-log-1.png 650w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/16\/20221201100015\/Debug-log-1-300x266.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/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<h3><span class=\"ez-toc-section\" id=\"NL_Analysis\">NL Analysis<\/span><\/h3>\n<p>NL Analysis tab shows the task name analysis and recognition scores of each user utterance.\u00a0 It presents a detailed tone analysis, intent detection, and entity detection performed by the Kore.ai NLP engine. As a part of intent detection, the NL Analysis tab shows the outcomes of Machine Learning, Fundamental Meaning, and Knowledge Graph engines. For a detailed discussion on the scores, see <a href=\"\/docs\/bots\/bot-builder\/optimizing-bots\/testing-your-bot-with-nlp\/\">Training Your Bot<\/a> topic.<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/16\/NL-Analysis-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21899\" src=\"\/wp-content\/uploads\/sites\/16\/NL-Analysis-1.png\" alt=\"\" width=\"650\" height=\"577\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/16\/20221201100016\/NL-Analysis-1.png 650w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/16\/20221201100016\/NL-Analysis-1-300x266.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/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<h3><span class=\"ez-toc-section\" id=\"Session_Context_and_Variables\">Session Context and Variables<\/span><\/h3>\n<p>The <strong>Session Context &amp; Variables\u00a0<\/strong>tab displays dynamically the populated <code>Context<\/code>\u00a0object and session variables updated at each processed component\u00a0in Dialog Builder. The following is an example of the\u00a0<strong>Session &amp; Context Variables<\/strong>\u00a0panel in\u00a0<strong>Debug Log<\/strong>. For more information about the parameters, see\u00a0<a href=\"https:\/\/developer.kore.ai\/v8-0\/v6-4\/docs\/bots\/bot-builder\/defining-bot-tasks\/using-session-and-context-variables-in-tasks\/\">Using Session and Context Variables in Tasks<\/a>\u00a0and\u00a0<a href=\"https:\/\/developer.kore.ai\/v8-0\/v6-4\/docs\/bots\/bot-builder\/defining-bot-tasks\/dialog-tasks\/context-object\/\">Context Object<\/a>.<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/16\/session_contVar.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21901\" src=\"\/wp-content\/uploads\/sites\/16\/session_contVar.png\" alt=\"\" width=\"650\" height=\"578\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/16\/20221201100015\/session_contVar.png 650w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/16\/20221201100015\/session_contVar-300x267.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/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<h3><span class=\"ez-toc-section\" id=\"System_Commands\">System Commands<\/span><\/h3>\n<p>System Commands allow you to take control of the user-bot conversation during evaluation. These can also be injected into the bot using JavaScript code. <a href=\"\/docs\/bots\/bot-builder-tool\/system-commands\/\" rel=\"noopener noreferrer\" target=\"_blank\">See here for more<\/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><span class=\"ez-toc-section\" id=\"Record_Session\">Record Session<\/span><\/h2>\n<p>Record option allows you to record conversations to help in regression testing scenarios. <a href=\"\/docs\/bots\/test-your-bot\/record-conversations\/\" target=\"_blank\" rel=\"noopener noreferrer\">More&#8230;<\/a><\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/16\/talktobot_record.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21901\" src=\"\/wp-content\/uploads\/sites\/16\/talktobot_record.png\" alt=\"\" width=\"450\" height=\"545\" \/><\/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<div class=\"w-post-elm post_navigation layout_simple inv_false\">\n\t<a class=\"post_navigation-item order_first to_prev\" href=\"#\"><\/p>\n<div class=\"post_navigation-item-meta\"><\/div>\n<div class=\"post_navigation-item-title\"><\/div>\n<p>\t<\/a><br \/>\n<a class=\"post_navigation-item order_second to_next\" href=\"https:\/\/developer.kore.ai\/v8-0\/docs\/bots\/test-your-bot\/testing-your-bot-with-nlp\/\"><\/p>\n<div class=\"post_navigation-item-arrow\"><\/div>\n<div class=\"post_navigation-item-meta\">Next<\/div>\n<div class=\"post_navigation-item-title\"><span>Utterance Testing<\/span><\/div>\n<p>\t<\/a><\/div>\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":"After you have defined your bot and configured one or more tasks, you should test your settings before you publish your NLP-enabled bot. Bot owners and developers can chat with the bot in real-time to test recognition, performance, and flow as if it were a live session. Testing a Bot To test your tasks in...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-19597","post","type-post","status-publish","format-standard","hentry","category-test-your-bot"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/posts\/19597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/comments?post=19597"}],"version-history":[{"count":21,"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/posts\/19597\/revisions"}],"predecessor-version":[{"id":26295,"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/posts\/19597\/revisions\/26295"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/media?parent=19597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/categories?post=19597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-0\/wp-json\/wp\/v2\/tags?post=19597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}