Page 380 - AI Ver 3.0 Class 11
P. 380

Dialog
              A dialog is like a flowchart – An IF/THEN tree structure that shows how a computer will react to user intents. When a
              human asks a query, the machine responds with a dialog. Even if a human uses run-on sentences, poor grammar, chat
              messaging expressions, and so on, then artificial intelligence allows the NLP to understand well enough to provide a
              response.



                                                                Dialog




                                              "Show me yesterday's financial news."

                                                             Entity      Entity



                                                       Intent: Show News
                                                              Verb Noun


              The dialog encompasses every possible word or phrase a user might use. The chatbot matches the response, and the
              various  potential  follow-up  replies  the  user.  Representing  this  complexity  in  a  standard  flowchart  is  challenging  so
              chatbot software simplifies each conversation moment into a node. Each node includes a chatbot statement and an
              extensive as well as expandable list of potential user replies.


               Trigger     User action


                                             Final
               Node       Chatbot reply     result



                               User says Hi


                               Hi, how can I
                                 help you?        Make a booking


                                                    What's your             Abc
                                                      name?            (User's Name)

                                                                        What's your         pqr@xyz.com
                                                                       email address?       (User's email)



                                                                                             Booking
                                                                                            Confirmation



              Designing the flowchart for a chatbot's responses is a detailed process. Each potential user input after the chatbot's initial
              greeting must be paired with an appropriate reply. For example, when users inquire about a hotel's room availability,
              any related questions would prompt the same response. This mapping of numerous possible questions to a few specific
              responses continues throughout the entire conversation.

                    378     Touchpad Artificial Intelligence (Ver. 3.0)-XI
   375   376   377   378   379   380   381   382   383   384   385