{"componentChunkName":"component---src-templates-default-template-tsx","path":"/guides/ke-user-guide-7/","result":{"data":{"asciidoc":{"id":"51841f8d-0b7e-5dff-b8ab-bf95f9c8fbe7","html":"<div id=\"toc\" class=\"toc\">\n<div id=\"toctitle\">Table of Contents</div>\n<ul class=\"sectlevel1\">\n<li><a href=\"#_1_introduction\">1. Introduction</a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_1_1_what_is_hiro\">1.1 What Is HIRO&#8482;?</a></li>\n<li><a href=\"#_1_2_how_it_works\">1.2 How It Works</a></li>\n<li><a href=\"#_1_3_hiro_modes_and_workflow\">1.3 HIRO&#8482; Modes and Workflow</a></li>\n<li><a href=\"#_1_2_the_workflow\">1.2 The Workflow</a></li>\n<li><a href=\"#_1_3_user_roles\">1.3 User Roles</a></li>\n<li><a href=\"#_1_4_where_do_i_fit_in\">1.4 Where Do I Fit In</a></li>\n</ul>\n</li>\n<li><a href=\"#_2_getting_started\">2. Getting Started</a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_2_1_knowledge_expert_user_journey\">2.1 Knowledge Expert User Journey</a></li>\n<li><a href=\"#_2_2_peer_review\">2.2 Peer Review</a></li>\n</ul>\n</li>\n<li><a href=\"#_3_hiro_tools_for_knowledge_experts\">3. HIRO&#8482; Tools for Knowledge Experts</a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_3_1_hiro_desktop\">3.1 HIRO&#8482; Desktop</a></li>\n<li><a href=\"#_3_2_tasklist\">3.2 Tasklist</a></li>\n<li><a href=\"#_3_3_knowledge_acquisition_tool_kat\">3.3 Knowledge Acquisition Tool (KAT)</a></li>\n<li><a href=\"#_3_4_knowledge_item_management_tool_kim\">3.4 Knowledge Item Management Tool (KIM)</a></li>\n<li><a href=\"#_3_5_task_inspector\">3.5 Task Inspector</a></li>\n<li><a href=\"#_3_6_graph_explorer\">3.6 Graph Explorer</a></li>\n</ul>\n</li>\n<li><a href=\"#_4_translating_chat_conversations_for_ki_creation\">4. Translating Chat Conversations for KI Creation</a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_4_1_knowledge_acquisition_through_chat\">4.1 Knowledge Acquisition Through Chat</a></li>\n<li><a href=\"#_4_2_hiros_vocabulary_variables\">4.2 HIRO&#8482;'s Vocabulary - Variables</a></li>\n<li><a href=\"#_4_3_hiro_kat_principles\">4.3 HIRO&#8482; KAT Principles</a></li>\n</ul>\n</li>\n<li><a href=\"#_5_logic_of_ki_writing\">5. Logic of KI Writing</a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_5_1_what_are_kis\">5.1 What are KIs</a></li>\n<li><a href=\"#_5_2_what_are_nodes\">5.2 What are Nodes</a></li>\n<li><a href=\"#_5_3_what_are_tasks\">5.3 What are Tasks</a></li>\n<li><a href=\"#_5_4_intro_to_ki_syntax\">5.4 Intro to KI Syntax</a></li>\n</ul>\n</li>\n</ul>\n</div>\n<div id=\"preamble\">\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>This guide contains all the essential information for Knowledge Experts to teach HIRO&#8482; how to automate knowledge described by SMEs most efficiently. It provides an overview of the HIRO&#8482; world, direction on how to interact with HIRO&#8482; for best results, and hints and tips on navigating the user interface.</p>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_1_introduction\">1. Introduction</h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_1_1_what_is_hiro\">1.1 What Is HIRO&#8482;?</h3>\n<div class=\"paragraph\">\n<p>HIRO&#8482; is an automation tool based on artificial intelligence, created by Arago. It can be used to automate both IT and business processes, enabling companies to utilise time and resources effectively.</p>\n</div>\n<div class=\"paragraph\">\n<p>Knowledge is taught to HIRO&#8482; in small pieces that contain the context in which they can be used. Then, when a Task is assigned to HIRO&#8482;, it will try to solve it by recombining all the knowledge it&#8217;s been previously-taught based on the Task context at each given point in time. This means that HIRO&#8482; doesn&#8217;t learn in strict workflows like, for example, scripts. Instead, it will create a workflow in real time as it evaluates the Task context and, based on that, decides on the Steps to take, on the fly.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/sme-ug/HIRO7/KI_selection.gif\" alt=\"Steps selection\">\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_1_2_how_it_works\">1.2 How It Works</h3>\n<div class=\"paragraph\">\n<p>HIRO&#8482; integrates into your environment in order to receive Tasks, the same way that you do! For example, these may be in the form of ITSM Tickets that are assigned to you, or submitting of forms, even e-mails. Integration is the first step because these Tasks will now all be \"delegated\" to HIRO&#8482;, and only when HIRO&#8482; can&#8217;t solve it, it will go to the Subject Matter Expert (SME).</p>\n</div>\n<div class=\"paragraph\">\n<p>A simple look at the process is as follows:</p>\n</div>\n<div class=\"olist arabic\">\n<ol class=\"arabic\">\n<li>\n<p>Ticket/Task is assigned to SME</p>\n</li>\n<li>\n<p>SME sees what HIRO&#8482; has already done and determines which steps are missing from the solution</p>\n</li>\n<li>\n<p>SME solves the Ticket manually</p>\n</li>\n<li>\n<p>They locate the Ticket in HIRO&#8482; Tasklist and press Start Teaching (This is the same when a Knowledge Expert wishes to teach HIRO&#8482; directly)</p>\n</li>\n<li>\n<p>SME explains all the steps they took to HIRO&#8482; Chatbot in natural human language and hands it over to Knowledge Experts</p>\n</li>\n<li>\n<p>A Knowledge Expert selects chat from their Tasklist view and converts it to code that HIRO&#8482; understands7.</p>\n</li>\n<li>\n<p>Next time Task occurs, HIRO&#8482; will use this knowledge to solve the Ticket autonomously</p>\n</li>\n</ol>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/sme-ug/HIRO7/SME_workflow.gif\" alt=\"SME workflow\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>Teaching HIRO&#8482; is made simple with the help of a chatbot, which will guide the knowledge transfer by asking the SME questions regarding the Task solution. Once they complete and hand over the chat, it&#8217;s then available to all Knowledge Experts of the same team in the Tasklist app.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/sme-ug/HIRO7/SME_01.png\" alt=\"HIRO Chatbot\">\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_1_3_hiro_modes_and_workflow\">1.3 HIRO&#8482; Modes and Workflow</h3>\n<div class=\"paragraph\">\n<p>HIRO&#8482; is always working in the background, whether that be carrying out tasks, or learning how to automate new ones. This can be seen in the two modes HIRO&#8482; works in:</p>\n</div>\n<div class=\"dlist\">\n<dl>\n<dt class=\"hdlist1\">The Automatic Execution Mode</dt>\n<dd>\n<p>HIRO&#8482; solves tasks automatically by applying pre-existing knowledge.</p>\n</dd>\n<dt class=\"hdlist1\">The Agile Automation Mode</dt>\n<dd>\n<p>HIRO&#8482; gets taught new knowledge to automate new tasks in an agile manner.</p>\n</dd>\n</dl>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/MotW_simple.png\" alt=\"map of the hiro world - simple\">\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_1_2_the_workflow\">1.2 The Workflow</h3>\n<div class=\"paragraph\">\n<p>Primarily, HIRO&#8482; needs to understand the environment that it will automate in, including which tasks can occur there. These can both be extended as the scope grows, but to start off one should select an end to end process to automate, and define which tasks can occur there and their triggers.</p>\n</div>\n<div class=\"paragraph\">\n<p>Triggers will be defined for each problem type, and an Automation Task will be created in HIRO&#8482; every time a trigger is detected. In the <strong>Automatic Execution Mode</strong>, HIRO&#8482; tries to solve each task by applying existing knowledge that it will have been taught previously.</p>\n</div>\n<div class=\"paragraph\">\n<p>If the knowledge present is not sufficient for a specific task, HIRO&#8482; will request to be taught new knowledge in the <strong>Agile Automation Mode</strong>, so that it can solve the task automatically the next time a similar trigger occurs.</p>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_1_3_user_roles\">1.3 User Roles</h3>\n<div class=\"paragraph\">\n<p>Automating with HIRO&#8482; entails indirectly collaborating with various team members that will each use HIRO&#8482; differently. For this purpose, Arago has created some User Roles to better separate responsibilities, processes for hand-over, and allow for the user interface and training content to be better catered to each role.</p>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_1_3_1_hiro_developer_dev\">1.3.1 HIRO&#8482; Developer (Dev)</h4>\n<div class=\"paragraph\">\n<p>A HIRO&#8482; Developer is responsible for creating and configuring the Action Handlers and Connectors planned in the Solution Design phase. They are familiar with the source and target systems, and the available HIRO&#8482; APIs.</p>\n</div>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_1_3_2_subject_matter_expert_sme\">1.3.2 Subject Matter Expert (SME)</h4>\n<div class=\"paragraph\">\n<p>Experts who will teach HIRO&#8482; how to automate processes they are knowledgeable on through a chat conversation where they answer some questions regarding said processes and tasks within them.</p>\n</div>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_1_3_3_knowledge_expert_ke\">1.3.3 Knowledge Expert (KE)</h4>\n<div class=\"paragraph\">\n<p>This role will be given to users who understand how HIRO&#8482; works, and can edit HIRO&#8482;'s automatically generated code to ensure it has translated content from an SME’s chat conversation correctly into KIs.</p>\n</div>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_1_3_4_admin\">1.3.4 Admin</h4>\n<div class=\"paragraph\">\n<p>This role will be given to users who understand how HIRO&#8482; works, permissions required for each user, and how to configure this using HIRO&#8482; User Interface.</p>\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_1_4_where_do_i_fit_in\">1.4 Where Do I Fit In</h3>\n<div class=\"paragraph\">\n<p>Once a business process has been selected for automation, a Business Analyst will design the automated solution for the tasks within that business process and how they will be transferred into HIRO&#8482;. They will also define which external systems need to be connected to HIRO&#8482; and what content is needed from each.</p>\n</div>\n<div class=\"paragraph\">\n<p>These designs will be communicated to a Developer who will create the necessary Connectors and Action Handlers which will import data into HIRO&#8482; for automation, and define how HIRO&#8482; interacts with external systems.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/MotW_full.png\" alt=\"MotW full\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>Once the integration phase is complete, the Connectors will pick up any triggers that were defined to start an automation task, and push this information into HIRO&#8482;. HIRO&#8482; then tries to solve said task with existing knowledge. If there is no knowledge applicable to the task at hand, the Connector should pick up on this, and inform the relevant Subject Matter Expert, who will complete the task manually.</p>\n</div>\n<div class=\"paragraph\">\n<p>After manual resolution, this knowledge needs to be taught to HIRO&#8482; for next time the same issue occurs. In this case, the automation task that was not able to be solved by HIRO&#8482; appears in the user interface listed in the Tasklist app. This is where the SME would need to locate it and start teaching the HIRO&#8482; Chatbot when they&#8217;re redirected to the Knowledge Acquisition Tool.</p>\n</div>\n<div class=\"paragraph\">\n<p>Through the chat conversation, HIRO&#8482; understands the steps and translates it into code that is used for automation. These steps are called Knowledge Items and for the process to be complete, a Knowledge Expert would need to peer review HIRO&#8482;'s translation and edit where needed, before deploying all the new knowledge so that HIRO&#8482; can solve the problem itself next time it occurs.</p>\n</div>\n<hr>\n<hr>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_2_getting_started\">2. Getting Started</h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_2_1_knowledge_expert_user_journey\">2.1 Knowledge Expert User Journey</h3>\n<div class=\"paragraph\">\n<p><em>This User Guide will look at the workflow only from a Knowledge Expert&#8217;s perspective.</em></p>\n</div>\n<div class=\"paragraph\">\n<p>When HIRO&#8482; can&#8217;t solve a Task, it means there&#8217;s missing knowledge. In this case, the Task will be handed over to a Subject Matter Expert (SME) and they will solve it manually. Lastly, the SME will teach HIRO&#8482; how to solve Tasks like this in the future. The way they do that is by talking to a chatbot and answering questions to further define the knowledge being transferred.</p>\n</div>\n<div class=\"paragraph\">\n<p>SMEs will teach HIRO&#8482; what they did in so called Steps. Each Step will be translated by HIRO&#8482; into Knowledge Items(KIs), which is what HIRO&#8482; uses to carry out actions and automate solutions. These KIs are generated based on the SME&#8217;s input, and HIRO&#8482;'s understanding of it. Throughout the chat, HIRO&#8482; does check in with the SME on whether it understood correctly or not, but sometimes it requires a little extra teaching from a Knowledge Expert.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/sme-ug/HIRO7/SME_01.png\" alt=\"HIRO Chatbot\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>This means that a Knowledge Expert should know how to create KIs as they&#8217;re, in essence, peer reviewing HIRO&#8482;'s translation of natural language. By answering chatbot questions, the SME should have provided all the details necessary for a Step to be carried out, such as where it can be applied, under what conditions, and exactly how to carry out the action itself. This information can be mapped to the 3 parts of a Knowledge Item: On, When, Do.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_06.png\" alt=\"KE 06\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>It&#8217;s the Knowledge Expert&#8217;s job to verify that HIRO&#8482;'s automatically generated code, does what the SME has described in the chat. Once this is done for each Step, the Knowledge Expert can request reviews from their colleagues to confirm the correctness of the new KIs. Then, they can be deployed into HIRO&#8482;, and the next time this Task needs to be carried out, HIRO&#8482; can take care of it automatically.</p>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_2_2_peer_review\">2.2 Peer Review</h3>\n<div class=\"sect3\">\n<h4 id=\"_2_2_1_teaching_session_owner\">2.2.1. Teaching Session Owner</h4>\n<div class=\"paragraph\">\n<p>Once a Teaching Session is complete a Knowledge Expert can request a peer review from another colleague as a way of confirming their conversion, that all details are included, and that best practice is followed. Reviewers can be added by clicking on the icon at the top right of the screen in KAT, and typing in the names of the colleagues who will review and press OK.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/sme-ug/HIRO7/SME_06.png\" alt=\"SME 06\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>Then, the Reviewer is notified, and their comments will be visible in the screen on the right, and the Teaching Session owner can choose to reply to the reviewer comments, make the suggested changes and resolve the comments, filter, sort,edit, delete etc.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_02.png\" alt=\"KE 02\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>When a user replies to a comment, they have the option of tagging someone by using the \"@\" symbol and then their name. This will show up to the person who was tagged as a notification and a comment pending reply. When the owner of a session changes something that a comment by the reviewer is referring to, that comment is then marked as \"outdated\" and can be filtered out by clicking the icon at the top right, and unchecking the box. Here one can also sort the comments in the order they prefer.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_04.png\" alt=\"KE 04\" width=\"200px\">\n</div>\n</div>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_2_2_2_reviewer\">2.2.2 Reviewer</h4>\n<div class=\"paragraph\">\n<p>When a Teaching Session has been assigned to a Knowledge Expert to review, they will receive a notification by HIRO&#8482;, and it will appear on their HIRO&#8482; Dashboard. First the number will change at the \"Tasks to be Reviewed\" counter, and the Teaching Session will also be available at the top of their Task List. Once they click to start, they&#8217;re taken to KAT, in \"Review Mode\". This can be seen at the top right, next to the Teaching Session name, there will be a title \"Review Mode\", and also the colour scheme is different to that of SME view and Knowledge Expert view.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_03.png\" alt=\"KE 03\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>This KAT also has a comments pane on the right hand side of the screen. Here, a reviewer can add general comments about the Teaching Session. They can also add comments by clicking on the speech bubble icon wherever available (please see list below) if they wish to be more specific about their review point.</p>\n</div>\n<div class=\"paragraph\">\n<p>A Reviewer can comment on:</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>The Teaching Session as a whole</p>\n</li>\n<li>\n<p>A specific Step</p>\n</li>\n<li>\n<p>A specific KI</p>\n</li>\n<li>\n<p>Specific lines of KI code</p>\n</li>\n</ul>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_02.png\" alt=\"KE 02\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>When there&#8217;s multiple reviewers, one can distinguish who they&#8217;re referring to by tagging someone in a comment. This can be done simply using the \"@\" symbol and then their name. This will show up to the person who was tagged as a notification and a comment pending reply.</p>\n</div>\n<div class=\"paragraph\">\n<p>There are two sides to reviewing a Teaching Session. The first is confirming that the expert knowledge that is being taught to HIRO&#8482; is converted correctly and is complete. The second is, ensuring that best practice is followed everywhere. This can be done with the help of checklists and best practice which can be gained through training and experience.</p>\n</div>\n<div class=\"paragraph\">\n<p>When the owner of a session changes something that a comment by the reviewer is referring to, that comment is then marked as \"outdated\" and can be filtered out by clicking the icon at the top right, and unchecking the box. Here one can also sort the comments in the order they prefer.</p>\n</div>\n</div>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_3_hiro_tools_for_knowledge_experts\">3. HIRO&#8482; Tools for Knowledge Experts</h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_3_1_hiro_desktop\">3.1 HIRO&#8482; Desktop</h3>\n<div class=\"paragraph\">\n<p>The user interface for HIRO&#8482; is called HIRO&#8482; Dashboard and it contains information regarding the relevant HIRO&#8482; instance such as the Tasks that are still open and need teaching or converting and Tasks that the user has left incomplete. On the top right it shows the statistics about the instance such as the automation rate, and the number of tasks that the user has automated, along with the number of Knowledge Items created. In the view on the bottom right a user can have a closer look at their knowledge Items filtered by mode - validation, undeployed, or live.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_14.png\" alt=\"Dashboard\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>From here we also get access to different apps which allow a user to interact with HIRO&#8482; and automate their tasks. There are 3 types of user roles one can have in Desktop, based on how they are expected to teach the tool:</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>SMEs: who will teach HIRO&#8482; how to automate their tasks using a chatbot</p>\n</li>\n<li>\n<p>Knowledge Expert: who will peer review HIRO&#8482; automatically generated code, which is based on SME chat conversations</p>\n</li>\n<li>\n<p>Admin: who will configure HIRO&#8482; instances to match all member requirements, permissions and password resets.</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>so it&#8217;s best to check that the right permissions have been granted before continuing. This can be done by clicking on the Profile icon on the top right, and seeing the User Role in the View Profile section, as shown below.</p>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_3_2_tasklist\">3.2 Tasklist</h3>\n<div class=\"paragraph\">\n<p>The Tasklist is a \"ToDo list\" for both SMEs and Knowledge Experts. Depending on the role, different filters and views are available. Start Teaching, Start Conversion, View Teaching take the user to the Knowledge Acquisition Tool where they can teach HIRO&#8482; the steps needed to resolve an Automation Task.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_07.png\" alt=\"KE 07\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>Knowledge Experts can find all sessions that have been handed over by SMEs in their own ToDo List. Knowledge Experts can also view conversion tasks created by their colleagues, and can start a teaching just like the SME would do. These teaching sessions, however, are considered handed over and start with the Structure View in KAT.</p>\n</div>\n<div class=\"paragraph\">\n<p><strong>Knowledge Expert Filters</strong></p>\n</div>\n<div class=\"paragraph\">\n<p>The filters in the Tasklist are shown all by default. The meaning for each can be found below.</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><strong>My Conversion Tasks:</strong><br>\nTeaching Session handed over by SMEs and that the Knowledge Expert themselves has already began converting.</p>\n</li>\n<li>\n<p><strong>My Knowledge Tasks:</strong><br>\nTeaching Session that have not had any SME input, but the Knowledge Expert has taken over to teach HIRO&#8482; the steps directly using KIs.</p>\n</li>\n<li>\n<p><strong>My Teams Tasks:</strong><br>\nFiltered by users in the same organisation</p>\n</li>\n<li>\n<p><strong>Archived Tasks:</strong><br>\nListing all archived tasks. (Archiving can be done using the 3 dots at the end of a row. Once archived they can be restored.)</p>\n</li>\n<li>\n<p><strong>My Review Tasks:</strong><br>\nAll of the Tasks that the Knowledge Expert has requested peer review for.</p>\n</li>\n<li>\n<p><strong>My New Review Tasks:</strong><br>\nAll of the Tasks that peers have assigned to the Knowledge Expert for review and they have note yet begun.</p>\n</li>\n<li>\n<p><strong>New Conversion Tasks:</strong><br>\nTeaching Session handed over by SMEs</p>\n</li>\n<li>\n<p><strong>New Knowledge Tasks:</strong><br>\nKnowledge Experts can also start a teaching session, here is where they&#8217;ll be able to see Teaching Sessions not started by an SME. In these Teaching Sessions, however, the Knowledge Expert is taken straight to structure / code view and the session is considered handed over.</p>\n</li>\n</ul>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_3_3_knowledge_acquisition_tool_kat\">3.3 Knowledge Acquisition Tool (KAT)</h3>\n<div class=\"paragraph\">\n<p>The Knowledge Acquisition Tool is how knowledge gets inserted into HIRO&#8482;. The SME will do this by talking to a chatbot, so their KAT user interface looks different to that of an Knowledge Expert&#8217;s. The steps described by the SME during the chat conversation will be visible in KAT, in the <strong>Chat View</strong> where the Knowledge Expert has read rights.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_06.png\" alt=\"KE 06\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>They can edit Steps in the <strong>Structure View</strong>, and it&#8217;s recommended that this is done in natural language. From there, the Knowledge Expert can choose to browse through existing knowledge in case the SME&#8217;s description matches that of a pre-existing KI and can be reused, or they can have HIRO&#8482; automatically generate a new KI based on the chat conversation and this way grow their knowledge pool.</p>\n</div>\n<div class=\"paragraph\">\n<p>This KI will appear in the <strong>Code View</strong> and the code itself can then be edited there. From here onwards, an Knowledge Expert must review Variables used, conditions, and the action a KI should carry out. Once this is complete, they can deploy the Knowledge Item, and HIRO&#8482; will then be able to solve tasks like this automatically in the future.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_03.png\" alt=\"KE 03\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>When generating a new KI, HIRO&#8482; tries to map content from the natural language to existing variables, which is the \"vocabulary\" HIRO&#8482; uses. The Knowledge Expert can edit this mapping or even create new ones. The logic behind the mapping suggestions is indicated on the screen in the form of coloured, straight and dotted underlining of the words the SME used to describe a step. Each indicator is explained below:</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_08.png\" alt=\"KE 08\">\n</div>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><strong>Dotted line</strong><br>\nHIRO&#8482; was able to match to an existing variable</p>\n</li>\n<li>\n<p><strong>Red line</strong><br>\nHIRO&#8482; wasn’t able to understand the user input</p>\n</li>\n<li>\n<p><strong>Blue line</strong><br>\nHIRO&#8482;s suggestion was overwritten by the user or a new definition was added</p>\n</li>\n</ul>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_3_4_knowledge_item_management_tool_kim\">3.4 Knowledge Item Management Tool (KIM)</h3>\n<div class=\"paragraph\">\n<p>KIM allows users to browse all knowledge that has been created within their environment. A Knowledge Expert can filter for deployed (available to the engine), KIs in \"Validation mode\", undeployed, or incomplete KIs. From here, a user can select a KI and then go to the teaching session where that specific KI was created in KAT.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_12.png\" alt=\"KE 12\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>The KI statuses are shown at the end of each line with corresponding icons.</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><strong>Green tick in a circle</strong><br>\nKI is available to the engine for use.</p>\n</li>\n<li>\n<p><strong>Empty circle</strong><br>\nKI is not available to the engine for use. It is currently \"Undeployed\" so it will not be considered during automation.</p>\n</li>\n<li>\n<p><strong>Chemistry icon (beaker)</strong><br>\nKI is in \"Validation Mode\". This means that the Knowledge Item will be considered during automation, but will not actually be applied. Instead, while a KI is in this mode, HIRO&#8482; will log all the times that a Task matched the conditions of this KI, meaning (had it been Live) it would have been triggered when this Task occured. The details of the Validation statistics can be seen in more detail below.</p>\n</li>\n<li>\n<p><strong>Red warning sign</strong><br>\nKI is syntaxtually incorrect.</p>\n</li>\n</ul>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_12.png\" alt=\"KE 12\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>By clicking on a KI in the list one can get a closer look at the KI, its statistics, they can edit it, or change the KIs state all from the view in the right hand side. The first view shows the KI code and offers 2 buttons. The \"View in Knowledge Acquisition Tool\" button will take the user to the Teaching Session in which this particular version of the KI was created. If this Teaching Session belongs to them, they can also edit the KI contents.</p>\n</div>\n<div class=\"paragraph\">\n<p>The second button is a dropdown list with KI states. If the user owns the KI, they can choose to change its state by deploying to \"Live\", \"Validation Mode\", or undeploying altogether.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_16.png\" alt=\"KE 16\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p><strong>Validation Mode</strong> is a state in which the KI is considered during automation but not applied. So, all Tasks that come in will also check if this particular KI can be applied. But it won&#8217;t actually get triggered, so the KI won&#8217;t run any actions while in this mode, it will simply log all the times that it could have run. This is useful for validating that the KI&#8217;s conditions are correct. The engine stores all the logs of when this KI would have run on a Task in the second tab of the right hand view - the \"Validation Statistics\" tab.</p>\n</div>\n<div class=\"paragraph\">\n<p>In the \"Validation Statistics\" tab a user can see all the times that a Task occured which would have triggered the specific KI, had it been in \"Live\" mode. One can select the range they wish to see from the statistics (last 24 hours, 3 days, months etc.) and here is also where they are shown the Tasks and given the option to have a closer look at each Task for further inspection by opening it in \"Task Inspector\" (please see following section)</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_17.png\" alt=\"KE 17\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>Similarly, this view also offers a tab with \"Live Statistics\", which allows the user to see all of the Tasks that a KI has run on. They can also have a closer look at the Task history and view at which point exactly the KI was applied by opening the Task in Task Inspector. Lastly, the top right corner of a KI shows the KI versions. During the creation and editing of KIs, new versions are saved and are then accessible through KAT.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_15.png\" alt=\"KE 15\">\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_3_5_task_inspector\">3.5 Task Inspector</h3>\n<div class=\"paragraph\">\n<p>The Task Inspector is where a Knowledge Expert can have a closer look at what Tasks have entered into HIRO&#8482;, their status, and which steps (KIs) they have triggered.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_09.png\" alt=\"KE 09\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>After selecting a Task from the list, one can see which steps were taken and when, the findings of executed KIs, the changes that KIs made to the Task and, and where exactly in the environment those steps were taken.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_11.png\" alt=\"KE 11\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>For each Task, the <strong>Task Timeline</strong> will show the full list of KIs applied, and the environment Nodes they were applied in. After clicking on a KI on that list, one can find more details in the following views:</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><strong>Task Content Display</strong><br>\nHere one can find the contents of the Task at the point in time where the KI was applied. The Task is in JSON format, and the highlighting allows us to see which Variables were deleted (red), or added (green). If a Variable was updated, the original value will appear in red - as it&#8217;s being deleted, and the new value will appear in a different line in green.</p>\n</li>\n<li>\n<p><strong>Knowledge Item</strong><br>\nThe code view of the Knowledge Item that was selected from the Task Timeline, can be found in the Knowledge Item view. From here, one can have a closer look into the KI&#8217;s conditions to understand why it was triggered, and get a better view of what it was designed to do. From here, one can also have a closer look into the KI by going to the Knowledge Item Management tool (KIM).</p>\n</li>\n<li>\n<p><strong>Current Node</strong><br>\nThe Task will originate on a certain environment Node, and knowledge will be applied to it there, if that knowledge is not sufficient to resolve said task, the Task will traverse the Graph moving from one Node to another until it finds the knowledge needed. Here one can look into the contents of the Node (in JSON format) that the Task was in at the selected point in time.</p>\n</li>\n<li>\n<p><strong>Engine Log</strong><br>\nHere&#8217;s where one can see the output of HIRO&#8482; implicit and explicit logging abilities. It&#8217;s useful when one is troubleshooting the outcome of a certain step, or simply see their log messages at that point in time.</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>(Task Content Display is available by default, the rest will need to be explicitly selected and de-selected from the dropdown list on the top right hand side.)</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_10.png\" alt=\"KE 10\">\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_3_6_graph_explorer\">3.6 Graph Explorer</h3>\n<div class=\"paragraph\">\n<p>The Graph Explorer is a browser-base application desined to visualize and interact with data stored in a graph database. It allows users to explore entities(Nodes) and their relationships, view raw data and filter or query specific elements within the graph for better understanding and analysis.</p>\n</div>\n<div class=\"paragraph\">\n<p>To start using the Graph Explorer, follow this <a href=\"https://core.engine.datagroup.de/_static/explorer/index.html\">link</a> and use same credentials as for HIRO desktop.</p>\n</div>\n<div class=\"paragraph\">\n<p>As a KI writer, understanding the implemented model for your automation cases is essential, as you&#8217;ll need to reference specific Nodes within your KIs (ON block).</p>\n</div>\n<div class=\"paragraph\">\n<p><strong>Exploring Nodes and Attributes</strong></p>\n</div>\n<div class=\"paragraph\">\n<p>For example, to automate a task on a Windows machine, we create a Node of the type \"Machine\" with the specific value \"Windows\" within the Graph. Now, let´s explore how to locate this Node.</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Selecting a Node Type</p>\n<div class=\"olist arabic\">\n<ol class=\"arabic\">\n<li>\n<p>Use the filter in Graph Explorer to select the type of Node you want to view. Example: Select MARS/Machine and click Apply.</p>\n</li>\n<li>\n<p>The selected Nodes and their properties will appear on the left-hand side.</p>\n</li>\n</ol>\n</div>\n</li>\n</ul>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/SelectNode.png\" alt=\"SelectNode\">\n</div>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Node Properties (Attributes)<br>\nNodes in the Graph are described by their properties (attributes), which fall into three categories:</p>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Mandatory: Required attributes for the Node.<br>\nExample: ogit/MARS/Machine/class.</p>\n</li>\n<li>\n<p>Optional: Attributes that add detail but aren’t required.<br>\nExample: ogit/Automation/automationState.</p>\n</li>\n<li>\n<p>Free: Custom attributes that you can create to describe your entity if predefined attributes are insufficient.<br>\nExample: /ExpenseReport (these do not start with ogit/, as they are customer-specific).</p>\n</li>\n</ul>\n</div>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>Note: Attributes starting with \"ogit/_\" are automatically generated by HIRO™ when a Node is created.<br>\nExample: \"ogit/_modified-on\": \"Tue, 03 Sep 2024 09:33:11 GMT\"  ,  \"ogit/_graphtype\" : \"vertex\"</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/FreeAttribute.png\" alt=\"FreeAttribute\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p><strong>Key concepts to learn</strong></p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Ontology: A formal description of knowledge within a domain, including its elements and relationships.</p>\n</li>\n<li>\n<p>Graph Database: Built on a subset of the Ontology, it contains attributes were values tailored to the specific automation case we want to work on.</p>\n</li>\n<li>\n<p>Graph Explorer: A powerful tool for visualizing and exploring data within the Graph Database.</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>For a full guide on how to query the graph, please check this <a href=\"https://user-guides.engine.datagroup.de/attachments/GraphExplorerQuery.pdf\">link</a></p>\n</div>\n<div class=\"paragraph\">\n<p><strong>Graph Explorer App in HIRO Desktop</strong></p>\n</div>\n<div class=\"paragraph\">\n<p>A limited version of this tool is also accessible from the main HIRO dashboard. The Graph Explorer App allows you to explore Nodes within your HIRO instance.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/GraphExplorerApp.png\" alt=\"GraphExplorerApp\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>Key Features:</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Finding Nodes:</p>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Search for Nodes by type, scope, or organization, or use the search box to locate a specific Node.</p>\n</li>\n</ul>\n</div>\n</li>\n<li>\n<p>Access Node Data:</p>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Select a Node to access its data.</p>\n</li>\n<li>\n<p>Click \"Show OGIT Values\" on the right-hand side to view all metadata for the selected Node.</p>\n</li>\n</ul>\n</div>\n</li>\n</ul>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/MainPanel.png\" alt=\"MainPanel\">\n</div>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Graph View:</p>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Select \"Graph View\" to visualize relationships between the selected Node and others in the graph.</p>\n</li>\n</ul>\n</div>\n</li>\n</ul>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/GraphView.png\" alt=\"GraphView\">\n</div>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Customizing the Panel View:</p>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Use the \"Save\" icon on the left-hand side module to customize and save the panel view.</p>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/SaveIcon.png\" alt=\"SaveIcon\">\n</div>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/SavePanel.png\" alt=\"SavePanel\">\n</div>\n</div>\n</li>\n<li>\n<p>These customizations are easily accessible via the three-dots icon on the left-hand side.</p>\n</li>\n</ul>\n</div>\n</li>\n</ul>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/AllPanels.png\" alt=\"AllPanels\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p><strong>Why Use the Graph Explorer App?</strong><br>\nThis app is invaluable for checking existing Nodes in your instance. For KI writers, it helps identify the variables you need to use in the ON block, ensuring your KIs are properly bounded and effective.</p>\n</div>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_4_translating_chat_conversations_for_ki_creation\">4. Translating Chat Conversations for KI Creation</h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_4_1_knowledge_acquisition_through_chat\">4.1 Knowledge Acquisition Through Chat</h3>\n<div class=\"paragraph\">\n<p>HIRO&#8482; Chatbot aims to extract information from an SME regarding the steps to automate a certain task that it was not able to automate before. Which means that, ideally, each teaching session will begin with a Task that has been \"stopped\" and was not automatically resolvable by HIRO&#8482;.</p>\n</div>\n<div class=\"paragraph\">\n<p>From each step HIRO&#8482; is trying to learn <strong>where</strong> it can apply this knowledge (in the case that there&#8217;s environment data present which limits its application), and <strong>when</strong> it can be applied, meaning what information does the task definition need to contain for this step to be carried out. Lastly, HIRO&#8482; tries to extract exactly <strong>what</strong> action is to be taken and how it can recreate that specific step when the time comes.</p>\n</div>\n<div class=\"paragraph\">\n<p>The replies the SME will give to these questions, will show up for the Knowledge Expert in the Structure view of a Teaching Session in KAT. The replies will respective fill the <strong>on</strong>, <strong>when</strong> and <strong>do</strong> section of a KI. So, it&#8217;s important for the Knowledge Expert to have in mind that descriptions provided in the on block, will determine which of the Environmental Nodes this KI is applied to. Similarly, the answers for the when block, will determine what information from the Task is needed for this KI to trigger, and the do block will show what exactly needs to be done.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/aie-ug/On_When_Do.png\" alt=\"On When Do\">\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_4_2_hiros_vocabulary_variables\">4.2 HIRO&#8482;'s Vocabulary - Variables</h3>\n<div class=\"paragraph\">\n<p>While describing the steps, HIRO&#8482; tries to map natural language to vocabulary it recognises, which consists of Variables. This mapping can be seen by the colour-coded underlining of words.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_08.png\" alt=\"KE 08\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>The logic behind the mapping suggestions is indicated on the screen in the form of coloured, straight and dotted underlining of the words the SME used to describe a step. Each indicator is explained below:</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><strong>Dotted line</strong><br>\nHIRO&#8482; was able to match to an existing variable</p>\n</li>\n<li>\n<p><strong>Red line</strong><br>\nHIRO&#8482; wasn’t able to understand the user input</p>\n</li>\n<li>\n<p><strong>Blue line</strong><br>\nHIRO&#8482;s suggestion was overwritten by the user or a new definition was added</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>A Knowledge Expert needs to confirm HIRO&#8482;'s mapping when autogenerating KIs. This can be done by clicking on underlined words and selecting an existing variable from the pre-defined list, or creating a new one by defining the variable name, a description, and an indicator if it should serve as a ToDo variable or not.</p>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_4_2_1_todo_variables_and_task_states\">4.2.1 ToDo Variables and Task States</h4>\n<div class=\"paragraph\">\n<p>A <strong>ToDo Variable</strong> differs from other [\"Information\"] Variables as it implies an action needs to be taken. For example, ApproveOrder is an action that needs to be taken, whereas OrderApproved provides information of the status. The main function of the ToDo Variables is to indicate to HIRO&#8482; that something is to be done. Once the necessary steps are taken to complete an action indicated in a ToDo Variable, that Variable is then deleted. HIRO&#8482; will continue to process Tasks (\"<strong>PROCESSING</strong>\" state) for as long as there are ToDo Variables still present.</p>\n</div>\n<div class=\"paragraph\">\n<p>When all ToDos have been deleted the Task state changes to \"<strong>RESOLVED</strong>\" meaning that it has been solved fully autonomously by HIRO&#8482;. If the existing knowledge inside HIRO&#8482; at a given point in time is not sufficient to carry out all necessary steps, so there are ToDo variables still left on the Task but no KI is triggering, the Task will stay in PROCESSING state. When a Task is in PROCESSING but no knowledge is being applied, HIRO&#8482; will wait until the Task has been idle for 900 seconds, then will automatically change its state to \"<strong>STOPPED</strong>\" indicating that HIRO&#8482; could not solve the Task autonomously and will need to be taught the missing knowledge after an SME successfully completes it manually.</p>\n</div>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_4_2_2_variable_naming_conventions\">4.2.2 Variable Naming Conventions</h4>\n<div class=\"paragraph\">\n<p>As Variables are global, and KIs are eligible to be applied to any Task, it&#8217;s good to agree on a set of rules regarding Variable and KI naming conventions. The suggested best practice can be found below:</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><strong>ToDo</strong> Variables always start with a verb.</p>\n</li>\n<li>\n<p><strong>Information</strong> Variables always start with a noun.</p>\n</li>\n<li>\n<p>CamelCase is used for <strong>Variable names</strong> (to differentiate between the two at a glance, ToDos can start with a capital letter, and information variables with lowercase).</p>\n</li>\n<li>\n<p><strong>Variable description</strong> should contain what the variable indicates, expected values (e.g. Variable indicates the current free memory available on a server. Expected values are in GB), and a short description on keys usage, when applicable.</p>\n</li>\n<li>\n<p><strong>KI Title</strong> should be consistent with its contents (double-check this at the end if forking, or copy-paste is used).</p>\n</li>\n<li>\n<p><strong>KI Description</strong> should summarize Applicability, Situation and Action in one or two sentences.</p>\n</li>\n</ul>\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_4_3_hiro_kat_principles\">4.3 HIRO&#8482; KAT Principles</h3>\n<div class=\"paragraph\">\n<p>When a newly-handed-over Teaching Session begins, the Knowledge Expert, should go through it briefly, to get a view of what is being automated. Then, they would work on each Step one by one, to maximise HIRO&#8482;'s efficiency.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/aie-ug/Step_Description.png\" alt=\"Step Description\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p>They should ensure the Step definition is clear as they will need to browse through existing knowledge that HIRO&#8482; has found to be eligible for reuse, or trigger the automatic code generation to create a new KI. The following principles were created to aid in this process, and to refer back to while teaching HIRO&#8482;.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/aie-ug/Automatic_Code.png\" alt=\"Automatic Code\">\n</div>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><strong>Variable declaration needs to be completed</strong> (wherever the SME has skipped this step)</p>\n</li>\n<li>\n<p><strong>No variables used for substitution in DO block without having checked for them in ON or WHEN block</strong> (This will also break the colour-coding) not entirely sure this was just for Substitution, for example, it didn&#8217;t like <strong>ogit/Schedule/Calendar == something</strong> either</p>\n</li>\n<li>\n<p><strong>Try to understand KI description as a whole</strong> (logically, what is the SME trying to teach HIRO&#8482; to do? Have a clear answer for this, and don&#8217;t let the Variable suggestions sway you)</p>\n</li>\n<li>\n<p><strong>When there are suggested KI, always inspect those first to see if 1 could be reused for this same purpose</strong></p>\n</li>\n<li>\n<p><strong>Only if none can be reused, create a new KI</strong></p>\n</li>\n</ul>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/KE_13.png\" alt=\"KE 13\">\n</div>\n</div>\n<hr>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_5_logic_of_ki_writing\">5. Logic of KI Writing</h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_5_1_what_are_kis\">5.1 What are KIs</h3>\n<div class=\"paragraph\">\n<p>HIRO&#8482; automates using Knowledge Items (KIs), which are atomic representations of Steps that are taught to HIRO&#8482; by an SME. Once added to the pool, KIs can be re-combined with existing knowledge inside HIRO&#8482; to form automated solutions of similar Tasks. The SME input will be given through a chat conversation with HIRO&#8482; Chatbot, and HIRO&#8482; then can convert this knowledge into KIs.</p>\n</div>\n<div class=\"paragraph\">\n<p>An Knowledge Expert will review SME input, and ensure that HIRO&#8482;'s given the right amount of detail and context in order to get the best results from its automatic code generation feature.</p>\n</div>\n<div class=\"paragraph\">\n<p>The SME will sometimes use words that are not yet in HIRO&#8482;'s Vocabulary, in which case they can extend this by defining a new Variable. If an SME skips Variable definition, or matching of existing Variables, it falls on the Knowledge Expert to map the natural language to Variables using the context provided in the chat. Once all the necessary Variables are defined, HIRO&#8482; has a basis for the conversion.</p>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_5_2_what_are_nodes\">5.2 What are Nodes</h3>\n<div class=\"paragraph\">\n<p>Knowledge Items contain information on where and when they can be applied. In practice, this means each KI contains conditions that need to be met by the <strong>Environment</strong>, and others that should be met by the <strong>Task</strong>. HIRO&#8482; begins automation with a pre-existing environment, in the form of a graph.</p>\n</div>\n<div class=\"paragraph\">\n<p>This graph will typically contain representations of factual knowledge which are relevant to the field of automation. Single instances of these representations are called Nodes. This information is inserted into HIRO&#8482; at the time of Integration, and it is a form of enabling HIRO&#8482; to understand the context in which it&#8217;s being taught, and providing it with the means of running actions on said Nodes.</p>\n</div>\n<div class=\"paragraph\">\n<p>Each Node describes a part of the environment using Variables, which is HIRO&#8482;'s existing Vocabulary. These Variables can be read by a Knowledge Item, which is what happens at the time that a new KI is inserted into HIRO&#8482;. The ON block of a KI will contain conditions which the Variables of existing Nodes need to match. For each match, the Knowledge Item is made available for use, on that Node. What this means is that Knowledge \"sits\" on Environment Nodes, and is idle until a Task occurs.</p>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_5_3_what_are_tasks\">5.3 What are Tasks</h3>\n<div class=\"paragraph\">\n<p>Tasks are a list of attributes that describe the situation at a given point in time. Tasks will always originate on an Environment Node, indicating that a certain task or process, likely affecting that Node, needs to be carried out. As soon as a Task is created, HIRO&#8482; will check all of the KIs available on the Node it originated on, and will trigger the one(s) whose WHEN conditions are met by the specific Tasks.</p>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_5_4_intro_to_ki_syntax\">5.4 Intro to KI Syntax</h3>\n<div class=\"paragraph\">\n<p>KI Syntax is a formalization language for knowledge around automating processes. It is the basis for the Knowledge Items (KI).</p>\n</div>\n<div class=\"paragraph\">\n<p>The assumption is, the system will have access to the same information as any (privileged) user and needs to be taught how to interact with the data in order to solve Tasks. KI Syntax 6.0 describes logic that processes/gathers/generates data in a certain way to contribute to the overall problem solution. This logic is stored in the Knowledge Items. HIRO&#8482; Engine applies Knowledge Items to its tasks.</p>\n</div>\n<div class=\"paragraph\">\n<p>Application of Knowledge Items works by matching data to KIs that call for these conditions and associating each KI to these data points. This is called \"binding\". At any time many Knowledge Items can be \"bound\" to the same data.</p>\n</div>\n<div class=\"paragraph\">\n<p>A Task includes the current state of data gathered/generated for this Task and the history of steps and changes made to the data during processing.</p>\n</div>\n<div class=\"paragraph\">\n<p>A very simplified Task could look something like this:</p>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-json\" data-lang=\"json\">{\n \"/Subject\": \"MyTestTask\",\n \"/MyVariable\": [\"FirstValue\", \"SecondValue\"]\n \"ogit/Automation/originNode\": \"pzcxyhawulkadasnwascxzy\"\n}</code></pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>While KI Syntax 6.0 borrows heavily from common programming language features like string expansion or comparison operators, it should not be confused with a programming language. KI Syntax 6.0 purposefully does not natively support creation of large monolithic algorithms. The goal is to write atomised bits of knowledge that can be freely strung together by their inputs and outputs and are as re-usable for as many use cases as possible.</p>\n</div>\n<div class=\"sect3\">\n<h4 id=\"_5_4_1_functions_vs_definitions\">5.4.1 Functions vs Definitions</h4>\n<div class=\"paragraph\">\n<p>The core information is grouped in the Functions and Definitions parts. The Definitions section contains information on concepts such as aliases, scoping, data values etc. The most important section here is the “Matching variables and values”, where we see all the syntax necessary for variable matching. This is how a KI would communicate <strong><em>criteria</em></strong>, which means these are only used in the ON or WHEN blocks of Knowledge Items.</p>\n</div>\n<div class=\"paragraph\">\n<p>The Functions dropdown contains information on how HIRO can carry out <strong><em>actions</em></strong> on target systems. This will be information primarily used in the DO section of a KI. Functions require arguments which are either unnamed ordered (positional) or named (keyword), depending on the function.</p>\n</div>\n<div class=\"imageblock\">\n<div class=\"content\">\n<img src=\"/7.0/images/ke-ug/HIRO7/FunctionsArguments.png\" alt=\"FunctionsArguments\">\n</div>\n</div>\n<div class=\"paragraph\">\n<p><br>\nThe function results are returned as tagged values, and matched to variables using the syntax:</p>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-elixir\" data-lang=\"elixir\">&lt;tag&gt;: &lt;var&gt;,\n&lt;tag2&gt;: &lt;var2&gt; [...] = function(...)</code></pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>The full list of implemented functions can be found in <a href=\"/7.0/ki-syntax/\">KI Syntax</a>.</p>\n</div>\n</div>\n</div>\n</div>\n</div>","document":{"main":"Knowledge Expert (KE) User Guide","title":"Knowledge Expert (KE) User Guide","subtitle":""},"fields":{"toc":true,"location":["guides","ke-user-guide-7"]}},"sidebarYaml":{"id":"6d066bdd-c982-5a69-b909-a31e6fc044e0","showIndex":true}},"pageContext":{"id":"51841f8d-0b7e-5dff-b8ab-bf95f9c8fbe7","parent":"guides"}},"staticQueryHashes":["1010459453","1010459453","2356112386","2356112386","2603905930","2603905930","3026652197","3026652197","3167850324","3167850324","63159454","63159454"]}