Generative AI Chatbot - Pdf.crdownload
Generative AI Chatbot - Pdf.crdownload
Submitted by
The matter embodied in the report has not been submitted for the award of any
other degree or diploma.
This is to certify that the above statement made by the candidate is true to the
best of my knowledge.
I
CERTIFICATE
This is to certify that the work which is being presented in the project report
titled ‘Generative AI Chatbot’ in partial fulfillment of the requirements for the
award of the degree of B.Tech in Computer Science And Engineering and
submitted to the Department of Computer Science And Engineering, Jaypee
University of Information Technology, Waknaghat is an authentic record of work
carried out by “Anirudh Farwaha (201446)”, “Jyotirmay Verma (201157)”
during the period from August 2023 to May 2024 under the supervision of Mr.
Faisal Firdous, Assistant Professor (SG), Department of Computer Science and
Engineering, Jaypee University of Information Technology, Waknaghat.
Submitted by:
II
ACKNOWLEDGEMENT
Firstly, we express our heartiest thanks and gratefulness to almighty God for his
divine blessings that makes it possible for us to complete the project work
successfully.
We are really grateful and wish our profound indebtedness to our Supervisor Mr.
Faisal Firdous(Assistant Professor), Department of CSE Jaypee University of
Information Technology,Wakhnaghat). Deep Knowledge & keen interest of our
supervisor in the field of our project “Generative AI Chatbot” helped us to
carry out this project. Her endless patience, scholarly guidance, continual
encouragement, constant and energetic supervision, constructive criticism,
valuable advice, reading many inferior drafts and correcting them at all stages
has made it possible for us to complete this project.
We would also generously welcome each one of those individuals who have
helped us straightforwardly or in a roundabout way in making this project a win.
In this unique situation, We might want to thank the various staff individuals,
both educating and non-instructing, which have developed their convenient help
and facilitated our undertaking.
Finally, We must acknowledge with due respect the constant support and
patience of our parents.
III
ABSTRACT
Ethical considerations such as bias, disinformation, and responsible use are also
discussed in relation to generative AI chatbots. It reviews current research and
development initiatives aimed at improving the accountability and transparency
of these models. Furthermore, it explores the positive applications of generative
AI chatbots in various sectors, including customer service, healthcare, education,
and entertainment. Empirical studies and case examples illustrate how these
chatbots can simplify communication, enhance user satisfaction, and boost
productivity.
IV
Table Of Contents
Declaration I
Certificate II
Acknowledgement III
Abstract IV
Chapter 01 1
1.1 Introduction 1
1.2 Problem Statement 2
1.3 Objectives 3
1.4 Significance and Motivation 4
1.5 Organization of Project Report 5
Chapter 02 6
2.1 Overview of Relevant Literature 6
2.2 Key Gaps in the Literature Survey 11
Chapter 03 12
3.1 Requirements and Analysis 12
3.2 Project Design and Architecture 15
3.3 Data Preparation 17
3.4 Implementation 22
3.5 Key Challenges 40
Chapter 04 34
4.1 Testing Strategy 34
1.2 Test Cases and Outcomes 36
Chapter 05 42
5.1 Results 42
5.2 Comparison with Existing Solutions 45
Chapter 06 48
6.1 Conclusion 48
6.2 Future Scope 49
References 50
V
List Of Figures
VI
List Of Tables
VII
Chapter-01 INTRODUCTION
1.1 Introduction
The architecture and education techniques that assist generative AI chatbots are
examined on this research record. The flexibility and customization potential of
those chatbots emerged as obvious in the course of their pre-schooling segment,
which worried large datasets, and in the course of the best-tuning section, which
involved mission-specific edition. This study specializes in the hard balancing
act of capturing widespread linguistic patterns and customizing responses to
particular contexts. This discovery also has an essential impact for the ethical
use of generative AI chatbots. Strong ethical frameworks are important for the
creation and application of these technologies, as can be impactful in the wrong
way which can be biased and can also be because of disinformation, and
responsible deployment. We look at real-global applications in a whole lot of
sectors, along with healthcare, education, enjoyment, and customer support, to
illustrate the concrete effects of generative AI chatbots. We exhibit how those
chatbots enhance consumer studies, expedite communication, and boom
operational performance with case studies and actual-world scenarios.
As we start our research, our goals are to understand the country of generative
AI chatbots now and to predict wherein they will move inside the destiny. As we
make our manner through this revolutionary terrain of smart conversational bots,
potential trends in multi- modal capabilities, emotional intelligence, and
persevering with efforts to deal with ethical issues might be vital focal points. In
the pages that comply with, we explore the generative AI chatbots' ramifications
and minute capabilities, revealing their importance in influencing the following
phase of easy and realistic human-gadget interactions.
1
1.2 Problem Statement
In a rapidly evolving landscape of online food ordering our goal are to map out
the modern generative AI chatbots and forecast their destiny trajectory with
suggestions and easy to convey and place order. Prospective likelihood in
multi-modal talents, emotional intelligence and tenacity in addressing ethical
dilemmas can also prove to be vital focuses as we navigate this with the help of
sensible conversational bots. In the following pages we search into the
consequences and subtleties of generative AI chatbots, highlighting their
importance in shaping the following stage of simple and realistic human-tool
interactions.
The existing problem lies inside the lack of ability of conventional chatbots to
apprehend and reply dynamically to personal queries, possibilities for food and
the evolving context of a communique. They have a tendency to form frustration
in the direction of the era because of lack of interactions and conflict with an
inflexible machine who fails to conform their particular preferences or handle
complex requests efficiently.
It becomes critical to create a generative AI chatbot designed especially for a
meal ordering internet site so as to address this issue. The objective is to create a
conversational agent which can comprehend spoken language, cope with
complicated consumer requests, and reply in a manner that makes feel for the
given context. This chatbot seeks to enhance the user revel in with the aid of the
use of present-day device gaining knowledge of and natural language processing
strategies to handle order changes readily, make personalized food tips, and
create a more thrilling and person-pleasant online ordering platform. In the
specific placing of an internet restaurant ordering platform, this looks to shut the
space among patron expectations and the constraints of present chatbot
technology.
2
1.3 Objectives
3
1.4 Motivation And Significance
4
1.5 Organization of Project Report
Chapter 1: Introduction
This chapter deals with introduction to the Generative AI chatbot, providing a
brief overview of its purpose, significance, and motivation. It highlights the
objectives and problem statement of the project
Chapter 4: Testing
This chapter describes the testing methodology used in testing of the chatbot,
explaining the test cases and outcomes for various components of the code of
the generative AI chatbot.
5
Chapter-02 Literature Survey
2.1 Overview of relevant literature
Ethical considerations have also been a significant focus in the literature survey.
Researchers have discussed the potential ethical issues related to bias,
disinformation, and responsible use of generative AI chatbots. Efforts have been
made to address these issues through research and development initiatives aimed
at improving the accountability and transparency of these chatbots.Overall, the
literature survey highlights the growing interest and research activity in the field
of generative AI chatbots. Researchers continue to explore new technologies,
applications, and ethical considerations to further advance the field and harness
the potential of these chatbots for a wide range of applications.
6
Literature Review Table
7
S No. Paper Title Journal & Tools and Limitations
Conference Techniques
Year
6. "GPT-3: A OpenAI GPT-3, Examines the Concerns about
Game-Changer In- capabilities of ethical use,
in Chatbot house data GPT-3 in chatbot cost, and
Development?" development, control over
[10] highlighting its GPT-3
language
generation
8
S No. Paper Title Journal & Tools and Limitations
Conference Techniques
Year
11. "Deep Learning GPT-3 Achieved state- of-the-art
Approaches for of-the-art performance
NLP-based performance High
Chatbots" computational
[16] resource
requirement
9
S Paper Title Journal & Tools and Limitations
No. Conference Year Techniques
16. "User-Centric User Feedback Positive Challenges in
Evaluation of Analysis feedback meeting
NLP Chatbot on diverse user
Experiences" conversational expectations
[22] style
10
2.2 Key Gaps in the Literature
11
Chapter-03 System Development
3.1 Requirements and Analysis
Technical Requirements:
Software:
Prerequisites:
12
Analysis:
13
Functional Requirements
● User Input Handling: Ability to process user requests for food orders,
reservations, and inquiries.
● Order Management: Ability to manage food orders, including adding
items, modifying orders, and canceling orders.
● Reservation Management: Ability to handle table reservations, including
checking availability and confirming bookings.
● Menu Display: Displaying the menu items with descriptions and prices.
● Integration with GPT: Seamless integration with GPT for natural and
engaging conversations.
● Contextual Understanding: Ability to maintain context during the
conversation for a more natural interaction.
● Multi-Language Support: Support for multiple languages to cater to a
diverse user base.
● Payment Integration: Integration with payment gateways for secure and
convenient payments.
● Feedback Collection: Ability to collect user feedback to improve the
chatbot's performance over time.
14
3.2 Project Design and Architecture
15
Figure 1.2 Dialogflow working
When a user enters or speaks an expression, Dialogflow matches the intent and
extracts parameters. It then sends a message to a webhook service containing
the intent, response, parameters, and actions. The webhook service performs
actions like API calls or database queries. Subsequently, the service sends a
response message back to Dialogflow, which forwards the final response to the
user for viewing or hearing.
2. Create different objectives Within the Dialog Flow console, carefully outline
the different actions your chatbot should be able to handle. Additionally,
define entities that allow your chatbot to extract specific information from
user inputs, increasing its ability to understand and accurately respond to user
questions.
3. Spend time training your Dialog Flow agent by providing elaborate examples
of user inputs paired with desired responses. This training process enables the
underlying machine learning model to continuously improve its
understanding, refining the chatbot's conversational capabilities and ensuring
that it can effectively interpret and respond to user questions.
5. Start rigorous testing in the Dialog flow console to simulate different user
interactions and evaluate your chatbot's responses. Extend testing to your
chosen integration platform to verify that the chatbot works seamlessly across
multiple environments and provides a consistent and reliable user experience.
Once you are satisfied with the performance of your chatbot, move from
testing to deployment. Let your chatbot live on your chosen integration
platform to interact with real users. This step marks the transition from
development to practical use, as users interact with the chatbot and receive
real-time responses.
17
3.3 Data Preparation
Data preparation is the process of preparing raw data so that it is suitable for further
processing and analysis. Key steps include collecting, cleaning, and labeling raw
data into a form suitable for machine learning (ML) algorithms and then exploring
and visualizing the data. Data preparation can take up to 80% of the time spent on
an ML project. Using specialized data preparation tools is important to optimize
this process.
3.3.1 NLU
Natural language know-how (NLU) is an important area of synthetic intelligence
that makes a specialty of the interaction among computer systems and human
language. With the use of natural language knowledge (NLU), computers can now
apprehend and interpret spoken language similarly to human beings. Many
strategies, together with deep learning, system learning, and natural language
processing, are used to gain this.
One of the important advantages of NLU is its ability to improve communication
among people and machines. NLU makes it feasible for machines to respond to
human language in a more intuitive and herbal manner, which enhances the
effectiveness and float of interactions with machines. Another gain is that NLU can
automate obligations that have been formerly finished via human beings. NLU, as
an example, automates customer service interactions in order that human people
can focus on more difficult obligations. As a result, organizations might save a
considerable amount of money and revel in increased purchaser pleasure.
Ultimately, NLU can be carried out to a variety of duties, which include sentiment
evaluation, chatbots, digital assistants, and textual content class. Because of the
increasing quantity of records generated daily, herbal language understanding
(NLU) is more important than ever in permitting computer systems to understand
and interpret human language in a meaningful way. This should notably exchange
the manner we interact with generation by making regular chores less difficult to do
18
3.3.2 NLP
"Natural Language Processing" (NLP) is a subfield of artificial intelligence that
researches the relationship among computer systems and human language. NLP is
the study of constructing fashions and algorithms that allow computer systems to
examine, understand, and write human language. This includes responsibilities like
language translation, text categorization, and sentiment analysis.
Among NLP's number one advantages is its capability to enhance conversation
among people and machines. NLP makes it viable for machines to reply to human
language in an extra intuitive and natural way, which will increase the effectiveness
and float of interactions with machines.
Another advantage of NLP is its capability to automate obligations that had been
previously completed with the aid of humans. For example, NLP automates
language translation in order that human translators can be conscious of greater
tough responsibilities. Companies might be capable of communicating more
efficiently and save a variety of cash.
Lastly, NLP is extensively carried out throughout several industries, together with
advertising and marketing, finance, and healthcare. NLP is more critical than ever
for giving computer systems the potential to apprehend and examine because of the
growing quantity of facts generated day by day, human language in a significant
manner. This could considerably exchange the manner we engage with generation
with the aid of making ordinary duties less difficult to complete.
19
Figure 1.4 NLP w.r.t. NLP Diagram
3.3.4 Seq2Seq
Numerous herbal language processing responsibilities, such as device translation,
textual content summarization, and chatbot introduction, employ the powerful
series-to-series (Seq2Seq) deep studying structure. Main components of the Seq2Seq
structure are an encoder and a decoder. An encoder takes a set of input facts, like a
word in a language, and turns it into a hard and fast-duration vector illustration.
Subsequently, the decoder generates a series of output information, like a sentence in
an overseas language, the usage of this vector representation. With the Seq2Seq
structure, the model can learn how to map among the two sequences in a flexible and
adaptive way, which makes it specifically useful in situations where the lengths of the
input and output sequences fluctuate. Furthermore, by means of utilizing recurrent
neural networks (RNNs) in each the encoder and decoder, the version is able to
represent the temporal dependencies between the input and output sequences, making it
appropriate for tasks associated with herbal language processing. All things considered,
the Seq2Seq structure is an amazing instrument for a number of natural language
processing jobs, and builders and researchers in the discipline want it because of its
versatility and flexibility.
20
Performance Parameters
Sensitivity: ability of model to accommodate minor changes in dataset and input
by user. F1 score: Score generated based on precision and sensitivity of a model
FDR: false discovery rate, measure of incorrect output based on expected output.
3.3.5 Dataset
GPT 3.5 uses its very own device studying version to generate responses; this
version has been skilled on a large frame of literature from various domains and is
free of bias and offensive language.
The dataset used on this observation includes exchanges among a professional
psychologist and a psychological patient. The dataset changed into used to educate a
chatbot that can assist people with their mental health. Numerous questions on
mental fitness, such as ones about pressure, anxiety, and despair, are protected
within the dataset. The mental expert's responses are sponsored by way of their
know-how of psychology and they enjoy running in scientific settings. The series is
precise because it affords a plethora of facts on mental health issues and expert
remedies for them.
One of the primary blessings of this dataset is its usefulness in providing intellectual
health assistance. The dataset is a priceless useful resource for every person looking
for mental health care because the questions and answers are primarily based on
real- world occasions. The dataset is giant as it offers a couple of options for every
query and covers a lot of mental fitness conditions. This diversity will allow the
chatbot created with this dataset to correctly and as it should deal with a wide
variety of mental health problems. The chatbot's responses are ensured to be
subsidized via robust medical knowledge and competence with the aid of the replies
of a licensed psychological expert within the dataset. This dataset is usually helpful
for developing chatbots and other AI-based totally mental health aid systems
21
3.4 Implementation
Intents
The default fallback intent in Dialogflow serves as a safety net to handle user inputs
that do not match a certain intent. Fallback intent prevents communication
breakdowns when the chatbot encounters unclear or unexpected questions. A chatbot
allows you to respond politely with a standard message to ask for clarification or
guide the user to repeat their input. This provides a better user experience by
resolving unexpected interactions, improving chatbot adaptability, and maintaining a
smooth conversational flow.
22
The intent of the menu in Dialogflow acts as a navigation guide, helping users
access specific functions or topics in the chatbot. By recognizing user requests
related to menu options, the intent is to direct users to relevant sections or
services, streamlining interactions. It provides a structured and user-friendly
experience that allows you to effectively explore the chatbot's capabilities. This
organized approach ensures that users can access the information or services they
want easily using the menu, improving usability and overall satisfaction.
This Intent is responsible for adding items to the cart and to the mySQL database
and creating a record of all the items ordered and to be delivered, two parameters
are mandatory and work in it namely the quantity of food(@sys.number) and
food-item(@food-item) entity .
Figure
23
Entities
24
Fulfillment
Integration:
Dialogflow's Messenger integration makes it easy to seamlessly deploy chatbots across
messaging platforms. By connecting Dialogflow agents with platforms like Facebook
Messenger, developers extend the reach of their chatbots. Users can interact with the
chatbot directly in the messenger interface and receive real-time responses. This
integration simplifies user engagement and offers a familiar and convenient channel for
interactions. Leveraging Dialogflow capabilities through Messenger improves
accessibility and ensures a cohesive conversational experience for users across different
messaging platforms.
25
Figure 1.12 API Integration
Backend Database
26
Figure 1.14 Order item and total table
27
Code Snippets
28
The path is an installation to reply to HTTP POST requests at the foundation course
("/") with the aid of using the @app.Post("/") decorator. An asynchronous path handler
is what the handle request function does. It accepts an incoming HTTP request
represented by a Request object as a parameter. Using anticipate request.Json(), it
extracts the JSON statistics from the request body. It takes crucial records out of the
Dialogflow payload. The payload probably includes details about the user's intents,
parameters, output contexts, and session facts due to the fact Dialogflow is a platform
for herbal language understanding. Certain cause names are mapped to matching
handler functions (including add to order, remove from order, and so forth.) through the
dictionary intent_hand1er_dict. The extracted parameters and session ID are handed to
the applicable intent handler function, that's referred to as by way of the code based on
the received rationale.
First, the function calls DB helper.Get next order id() to get the subsequent order ID.
This means that the DB helper module carries a helper feature that, possibly from a
database, obtains the following available order ID. The gadgets in the order dictionary
are then iterated over, with every object representing a food item and its amount. The
meals object, amount, and order ID are inserted into the database for every item by way
of calling DBhelper.Insert order item. The feature returns -1 if the go back code (rcode)
is -1 after it's been checked. This can be a signal of an insertion manner mistake. The
feature inserts the order tracking repute into the database by means of calling
DBhelper.Insert order tracking after placing every person order object. The reputation
on this example is "in progress' '. At last next_order_id is used for further tracking on
identification.
29
Figure 2.4 Code snippet
The parameters that the function calls for are session_id, that is a completely unique
identifier for the user session, and parameters, that are probably composed of the
person entered. From the parameters dictionary, it extracts the meals items and their
corresponding portions. It determines whether or not food items and quantities have
identical lengths. If no longer, it produces a reaction that suggests it doesn't realize
what the person has entered. When the lengths are identical, meals items and their
portions are paired to create a brand-new dictionary referred to as new food dict.
30
The characteristic starts off evolving with the aid of determining whether or not the
modern- day session's (session id) in-development order already exists. In the event
that it cannot locate the order, it could ask the user to place a new order in the response
that is back. In the event that an existing order is found, the items in the order are
removed in accordance with consumer enter. The meals gadgets which can be specific
are iterated thru and removed from the current_order dictionary. It continues a song of
objects that have been no longer within the order (no_such_items) and objects that have
been efficiently removed (removed_items). The function produces a response textual
content based totally on the elimination operation's results. The function returns a
JSON response containing the fulfillment text.
31
It becomes essential to use cutting-edge NLP models with sophisticated contextual
awareness to get around this. Intricate contextual subtleties are well captured by models
such as BERT (Bidirectional Encoder Representations from Transformers) and GPT
(Generative Pre-trained Transformer).
32
Dynamic Menu and Inventory Updates
In the context of food transport websites, a dynamic and adaptable chatbot must be able
to take care of real-time modifications to the menu and stock. This function allows a
streamlined and dependable person to revel in through making certain that consumers
acquire correct and present-day records approximately food gadgets, charges, and
promotions which can be accessible.
The backend systems in charge of handling the menu ought to be integrated with the
chatbot so that it is able to get actual-time updates every time something modifications.
In order to store menu information, synchronization with databases or Content
Management Systems (CMS) is required. The chatbot dynamically updates its database
to mirror changes in costs, descriptions, or the addition of recent items, giving users
access to the maximum latest information.
33
Chapter-04 System Development
User Testing
Software development manner: Testing man or woman elements, features, or modules
of the chatbot code one after the other is a vital step. Unit testing is a manner that
includes testing everything of the device one at a time to make certain features as
intended. Developers can locate and fix troubles early on by segmenting the code into
smaller, greater possible chunks.
Developers create test instances for precise functions or modules all through unit
testing, providing inputs and confirming that the outputs suit the meant consequences.
They can find and deal with insects, mistakes, or uncommon conduct in discrete
regions of the codebase thanks to this targeted method.
Integration Testing
Ensuring the general functionality and dependability of the device calls for verifying
the smooth interaction among the diverse components of the chatbot. This sort of
checking out, also known as integration testing, is focused on evaluating how different
components interact to produce the preferred end result.
Integration trying out for a chatbot might entail examining how essential components
work together, just like the database, the natural language processing (NLP) engine,
and any 1/3- birthday party APIs.
Functional Testing
The comprehensive system of testing the chatbot's universal functionality assesses how
properly the gadget performs in real situations. This sort of testing, additionally called
cease- to-give up trying out, evaluates how properly the chatbot can manipulate
consumer interactions from starting to stop. End-to-quit checking out incorporates
providing a lot of consumer inputs to the chatbot on the way to validate its natural
language processing (NLP) abilities. To assure that the chatbot efficiently translates
consumer motive, check instances have to encompass quite a number of query sorts,
including requests, commands, and questions.
34
User Scenario Testing
Usability Testing
A crucial first step in making certain a quality consumer revel in is assessing the
chatbot's usability and consumer interface. The interface layout, communique float,
person activate clarity, and response understandability are all carefully examined on
this assessment. Developers can layout a chatbot that is not simplest practical however
additionally clean to apply and apprehend by way of focusing on these elements.
Evaluating the chatbot's visual components, association, and basic layout aesthetics is
part of assessing the consumer interface. User engagement is substantially multiplied
by using simple, clean-to-use designs. Testers test for aesthetically alluring and
user-pleasant interface elements like shade schemes, font clarity, and prompt
placement.
Security Testing
It is crucial to verify the chatbot's safety so as to protect user information and
guarantee a reliable consumer experience. To find and cope with ability weaknesses
and threats, a radical assessment is needed. The testing technique covers a number of
safety-related subjects, including safeguarding conversation channels, shielding touchy
facts, and user inputs. Thoroughly validating person inputs is step one in safety testing.
The chatbot's potential to handle several inputs, inclusive of tries to inject malicious
code, SQL injection, or different popular input-based assaults, is classed by way of
testers. Making the chatbot properly verifies and sanitizes inputs reduces the
opportunity of protection lapses.
35
Load Testing
Evaluating the chatbot's potential to handle high volumes of visitors is essential to
guaranteeing its scalability and responsiveness, specifically in conditions wherein
there is an increase in consumer engagement. To discover viable bottlenecks and
improve the chatbot's basic overall performance, overall performance trying out
includes exposing it to an excessive quantity of concurrent users. In load checking out,
high person site visitors' situations are simulated to assess the chatbot's resilience.
Gradually increasing the number of concurrent users, testers preserve an eye fixed on
the machine's normal stability, reaction time, and aid utilization. This aids in locating
viable overall performance bottlenecks and the system's capacity limitations.
Test case 2:
To verify that the entities such as food items, quantities and delivery locations are
accurately extracted from user input.
Input: Quantity of the food the user provided and the items that the user wants as an
input and verify at the end of the order and providing the order number with the total
price.
Expected Outcome: Total number of items with the number of list of items if there is
same product then increasing its number and delivering the order number after placing
Actual Outcome: The application shows the accurate number of the list of items and
shows the accurate number of data and amount of price with accuracy.
36
Test case 3:
To Verify the Chatbot's capability to provide real-time tracking information
Input: The input will be the GPS data of the delivery boy with the distance between the
restaurant and user location.
Expected Outcome: Shows the accurate location of the delivery-man and expected time
to reach the destination.
Actual Outcome: The application shows the user the exact location and way the
delivery- man is approaching and estimated time to reach the final destination.
Test case 4:
To Verify that the user is able to modify the ordered item before placing the final order
Input: The saved data of the user before placing the order and list with proper number
of items Expected Outcome: Modified list must be shown to user and ask for final
placement of order
Actual Outcome: The application shows the modified list of items for the user and asks
the user to finalize the order if there is no further modification command.
37
Figure 3.2 Testing - order.add intent & adding items
38
Figure 3.4 Testing the remove food-item intent
39
Figure 3.6 Testing the track order intent
Start your local server on the desired port, then open a terminal and navigate to the
NGrok directory. Run the command `ngrok http [port]`, replacing `[port]` with your
local server's port number. NGrok will generate a public URL that you can use to
40
access your local server from the internet.
This code sets up an Express.js server that utilizes the OpenAI API for text
generation. It initializes the OpenAI API client with an API key and defines a
function to generate text completions based on prompts. The server listens for
incoming requests, logging their paths and methods. For requests to the '/dialogflow'
endpoint, it handles 'input.unknown' actions from a Dialogflow webhook by
generating a text response using the OpenAI API and sending it back to Dialogflow.
Other actions result in a default message being returned.
41
Chapter-05 Results and Evaluation
Results
The Generative AI chatbot has been successfully developed and tested. The chatbot has
been successfully able to identify all the intents i.e — fallback, welcome, menu, new
order, add order. Complete order, remove order and track order and reply back a human
like response with high accuracy, this integrated with a live interactive website that can
switch between dark and light mode and many other advanced CSS elements was our
final outcome.
Integrated into live interactive websites, the Dialogflow chatbot provides a dynamic and
user- friendly interface. Upon entering the website, the user is greeted with a standard
welcome message initiated by the chatbot. This introductory message sets the tone for
giving a personal touch to user interactions. Using natural language processing,
chatbots answer user questions and guide the operation of various websites. This
integration improves the user experience, provides real-time help and information, and
makes the website more intuitive and attractive.
42
Figure 4.2 website with chatbot activated
43
Figure 5
44
5.1 Comparison with existing Solutions
Our Dialogflow chatbot stands out among existing solutions because of its natural
language processing (NLP) capabilities and seamless integration with multiple
platforms. Unlike some alternatives, it harnesses the power of Google's Dialogflow,
providing an intuitive and user- friendly interface for effective user interaction. A set of
various predetermined goals, well- prepared organization, and effective training allows
for accurate understanding and memory of the context. Additional rich messaging
options increase user engagement, providing a visually pleasing and interactive
experience. In addition, the combination of implementation and webhook capabilities
allows chatbots to perform complex tasks and retrieve data in real- time, unlike
solutions with more limited functionality. Its adaptability, and regular updates based on
user feeDBack, position it as an advanced and evolving conversational agent, providing
a better user experience compared to the alternatives available in the NLP chatbot
landscape.
45
Improvements: It is critical to improve the response technology algorithms. This
includes going over the essential methods that generate responses again and refining
them to yield succinct, contextually correct responses. The chatbot's capability to
produce greater logical and pertinent responses can be advanced by honing those
algorithms, with the intention to enhance the general quality of user interactions.
Furthermore, making use of increasingly more complex language fashions is crucial for
raising the caliber of responses.
46
5.1.5 User Interface and Usability:
Existing Solution: There might be troubles with the chatbot's current person interface,
that could result in a much less-than-ideal user revel in. A multimodal approach is
usually recommended to enhance the overall usability and address these shortcomings.
Improvements: To make an interface that is each aesthetically attractive and clean to
apply, this entails honing the visual additives, layout, and standard aesthetics. Making
certain the layout is easy and clean to use can substantially enhance the person's
experience by means of facilitating user navigation and chatbot interplay. Another
important component of improvement is verbal exchange waft optimization. This
manner goes over the chatbot's logical collection of interactions to make sure the
communication makes sense and flows effortlessly.
47
Chapter-06 Conclusion and Future Scope
6.1 Conclusion
To sum up, creating and deploying a generative AI chatbot gives a modern way to
improve user revel in and expedite customer service. With the use of current gadget
getting to know and herbal language processing generation, this chatbot features a
digital assistant that may comprehend personal inquiries and offer human-like
responses.
Facilitating smooth and effective verbal exchange among customers and the food
delivery platform is the primary goal of the generative AI chatbot. Through using
modern language models, the chatbot is capable of interpreting a wide variety of user
input, together with one-of- a-kind language preferences, styles, and questions on the
meal shipping manner. This flexibility enables them to offer a customized and
easy-to-use enjoy that will increase purchaser happiness and loyalty.
A superior customer journey is facilitated by using the chatbot's capability to offer
actual- time assist, consisting of coping with rationalization, order monitoring, and
menu hints. The chatbot constantly learns and adapts so that it may provide accurate
and pertinent solutions to person requests through the years. This lessens the workload
for customer support groups and frees them up to pay attention to more complicated
problems, enhancing the personal experience standard.
Additionally, the generative AI chatbot helps the meal transport platform operate extra
correctly. The chatbot frees up human resources by handling a huge volume of
consumer interactions and automating repetitive operations, liberating the body of
workers' individuals to awareness of strategic jobs that call for a human touch. These
will increase in performance resulting in decreased expenses and higher use of sources
for the enterprise.
A scalable solution that may be grown and advanced upon over the years is the
generative AI chatbot, which adapts to converting personal expectations and
technological advancements. To upload new abilities, decorate language
comprehension, and preserve up with the modern- day developments in conversational
AI, normal enhancements and enhancements can be placed into place.
In conclusion, generative AI chatbots for food transport web sites are important for
updating purchaser interactions, increasing operational effectiveness, and keeping an
aggressive area within the speedy converting online meals services market. With its
deployment, a chief step has been taken towards providing purchasers with an extra
personalized, responsive, and intuitive revel in, for you to ultimately assist the food
transport platform prevail and ultimate.
48
6.2 Future Scope
The generative AI chatbot for food transport websites will remain evolved with an
emphasis on enhancing contextual focus, including multimodal interactions, and
utilizing state-of-the- art sentiment analysis for responses which are extra nuanced.
Machine getting to know techniques may be progressed, permitting the chatbot to alter
dynamically to convert user possibilities, dietary needs, and cultural quirks. An intuitive
and engaging ordering experience can be supplied with the aid of integration with
present day technology like speech recognition and augmented truth. Furthermore,
extending language aid and utilizing person comments to continuously train the model
could assure a person-targeted and the world over handy solution. Future plans include
developing a chatbot that is cleverer and more compassionate, highlighting its
significance in reshaping the marketplace for powerful and customized meal delivery
services.
49
References
1. Radford, A., Wu, J., Child, R., Luan, S., Sutskever, I., & Martens, I. (2019).
Language models are unsupervised feature learners. In: International
Conference on Learning Representations (ICLR).
2. Devlin, J., Chang, M.-W., Lee, K., Tabacoff, J., Venkatasubramanian, S.,
Vaswani, A., & Brundage, M. (2019). Bert: Pre-training of deep
bidirectional transformers for language understanding. In: North American
Association for Computational Linguistics (NAACL).
3. Liu, W., Zhou, S., Li, Z., & Liu, Z. (2020). UniLM: A unified language model
for natural language understanding and generation. In: Proceedings of the 58th
Annual Meeting of the Association for Computational Linguistics (ACL), pp.
4393-4404.
4. Yang, Z., Dai, Z., Yang, Y., Ye, J., Zhou, Z., & Liu, B. (2020). Ernie:
Enhanced representation through knowledge integration. In: Proceedings of
the 42nd ACM International Conference on Research in Computing and
Networking (SIGCOMM), pp. 4393-4404.
5. Rafael, C., Sharp, N., Narasimhan, E., Rush, A., & Su, S. (2020). XLNet:
Generalized autoregressive pre-training for language understanding. In:
Proceedings of the 34th International Conference on Machine Learning
(ICML),
pp. 7333-7343.
6. Gao, L., Yao, K., Chen, Y., Zhang, M., & Zhou, D. (2020). SimCSE: A simple
framework for semantic similarity learning using contrastive learning. In:
Proceedings of the 6th ACM Conference on Knowledge Graph and Semantic
Learning (KGSL), pp. 219-228.
7. Sun, X., Yang, Y., Dai, Z., Zhou, M., & Deng, L. (2021). ERNIE 2.0:
Enhanced neural representation with knowledge embedding. arXiv preprint
arXiv:2106.13796.
8. Liu, Z., Zhang, M., & Zhou, D. (2021). K-BERT: Knowledge-enhanced BERT
for improved question answering and natural language inference. arXiv
preprint arXiv:2106.00638.
9. Guu, K., Harutyunyan, H., Chen, T., Le, P., Duan, N., & Pascanu, R. (2021).
50
Language models for dialog sum-marization: A survey. arXiv preprint.
10. Lee, H., Logeshwaran, L., Bengio, S., & Sutskever, I. (2021). Self-supervised
learning with contrastive language modeling. arXiv preprint arXiv:2107.12107.
11. Zhang, Z., Yang, S., Chen, Z., & Chen, M. (2021). Modeling dialogue history
for improved dialogue generation with recurrent self-attention networks. In:
Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pp.
11657- 11664.
12. Zhou, H., Yang, T., Huang, P., Zhang, Z., & Lan, W. (2021). UNITER:
Universal image- text representation learning. arXiv preprint
arXiv:2105.00049.
13. Lee, J., Kim, J., Kang, J., & Lee, H. (2022). Conversational AI: A survey.
arXiv preprint arXiv:2201.00944.
14. Zhang, Y., Zheng, S., Cheng, H., & Zhou, M. (2022). SimCSE++: A robust
framework for semantic similarity learning. arXiv preprint arXiv:2204.11892.
15. Wei, J., Zhang, S., Zhao, H., Liu, Z., & Zhou, M. (2022). P-tuning:
Empowering pre-trained language models for personalized dialogue
generation. arXiv preprint arXiv:2203.15828.
16. Li, X., Wu, Y., Zhang, T., Zhou, Y., & Zhang, Z. (2022). Dialogue
summarization with hierarchical attention networks. In:
17. Deng, L., Liu, B., Chen, Z., & Sun, X. (2022). ERNIE 3.0: Large-scale
knowledge enhanced pre-training for language understanding and generation.
arXiv preprint arXiv:2201.11122.
18. Chen, Z., Zhang, B., Zheng, S., & Zhou, M. (2022). SimCSE-B: A bi-encoder
architecture for robust semantic similarity learning. arXiv preprint
arXiv:2203.13058.
19. Yang, S., Zhang, Z., Chen, Z., & Chen, M. (2022). A unified framework for
multi- turn dialogue response generation with recurrent self-attention networks.
In: Proceedings of the 2022 Conference on Empirical Methods in Natural
Language Processing (EMNLP), pp. 1135- 1145.
51
20. Zhao, H., Wei, J., Zhang, S., Liu, Z., & Zhou, M. (2022). Personalized dialogue
generation with persona-aware pre-training. arXiv preprint arXiv:2204.04343.
21. Wang, P., Ji, M., Li, Z., Zhang, Y., Wang, L., & Zhang, Y. (2022). A survey on
knowledge- enhanced language models. arXiv preprint arXiv:2203.11747.
22. Liu, H., Chen, H., Zhou, M., & Zhang, Z. (2022). Enhancing dialogue
understanding with knowledge graph embeddings. In: Proceedings of the 50th
Annual Meeting of the Association for Computational Linguistics (ACL), pp.
754- 764.
52
Anirudh_Report
ORIGINALITY REPORT
9 %
SIMILARITY INDEX
9%
INTERNET SOURCES
2%
PUBLICATIONS
%
STUDENT PAPERS
PRIMARY SOURCES
1
ir.juit.ac.in:8080
Internet Source 4%
2
www.ir.juit.ac.in:8080
Internet Source 1%
3
www.coursehero.com
Internet Source 1%
4
aws.amazon.com
Internet Source 1%
5
www.geeksforgeeks.org
Internet Source <1 %
6
appquipo.com
Internet Source <1 %
7
lti.cmu.edu
Internet Source <1 %
8
www.aal-persona.org
Internet Source <1 %
9
www.ibm.com
Internet Source <1 %
10
ruor.uottawa.ca
Internet Source <1 %
11
www.scss.tcd.ie
Internet Source <1 %
12
www.ijraset.com
Internet Source <1 %
13
www.technavio.com
Internet Source <1 %
14
www.cmswire.com
Internet Source <1 %
15
edoc.pub
Internet Source <1 %
16
ijrpr.com
Internet Source <1 %
17
tudr.thapar.edu:8080
Internet Source <1 %
18
Viktar Atliha. "Improving image captioning
methods using machine learning
<1 %
approaches", Vilnius Gediminas Technical
University, 2023
Publication
19
dhruvdave.com
Internet Source <1 %
20
norr.numl.edu.pk
Internet Source <1 %
JAYPEE UNIVERSITY OF INFORMATION TECHNOLOGY, WAKNAGHAT
PLAGIARISM VERIFICATION REPORT
Date: ………………………….
Type of Document (Tick): PhD Thesis M.Tech Dissertation/ Report B.Tech Project Report Paper
________________________________________________________________________________________________________
UNDERTAKING
I undertake that I am aware of the plagiarism related norms/ regulations, if I found guilty of any plagiarism and
copyright violations in the above thesis/report even after award of degree, the University reserves the rights to
withdraw/revoke my degree/report. Kindly allow me to avail Plagiarism verification report for the document
mentioned above.
Complete Thesis/Report Pages Detail:
Total No. of Pages =
Total No. of Preliminary pages =
Total No. of pages accommodate bibliography/references =
(Signature of Student)
FOR DEPARTMENT USE
We have checked the thesis/report as per norms and found Similarity Index at ………………..(%). Therefore, we
are forwarding the complete thesis/report for final plagiarism check. The plagiarism verification report may be
handed over to the candidate.
Word Counts
All Preliminary
Pages
Report Generated on Bibliography/Ima Character Counts
ges/Quotes
Submission ID Total Pages Scanned
14 Words String
File Size
Checked by
Name & Signature Librarian
……………………………………………………………………………………………………………………………………………………………………………
Please send your complete thesis/report in (PDF) with Title Page, Abstract and Chapters in (Word File)
through the supervisor at [email protected]