Professional Documents
Culture Documents
Module Code:
INTRODUCTION TO ARTIFICIAL
AAPP002-4-2-IAI INTELLIGENCE ASSIGNMENT
Name TP No.
1. Table of Contents
1. Table of Contents ............................................................................................................... 1
2. Introduction ........................................................................................................................ 5
2.3.2 The Effect of Travel and Tourism Industry on Malaysia’s Economics ............... 9
3.1.2 Provide customer with the Travel Information of The Travel Place ................. 15
AAPP002-4-2-IAI ASSIGNMENT 1
Table of Contents 2
AAPP002-4-2-IAI ASSIGNMENT 2
Table of Contents 3
5.2 Teen Chat: A Chatterbot System for Sensing and Releasing Adolescents’ Stress ... 25
7. Implementation ................................................................................................................ 27
7.2.3 blank................................................................................................................... 29
.............................................................................................................................................. 34
AAPP002-4-2-IAI ASSIGNMENT 3
Table of Contents 4
9. Conclusion ....................................................................................................................... 52
AAPP002-4-2-IAI ASSIGNMENT 4
Introduction 5
2. Introduction
2.2 Aim / Abstract
Human experts are able to perform at a successful level because of their knowledge
regarding the areas of expertise. However, with Artificial Intelligence, Expert Systems has been
introduced to the world. The use of the Expert Systems has been widely seen in this
technological area, it can be even considered as the norm. Based on the team’s research, it can
be considered as an intelligent computer software that portrays as an human expert in that
particular field, diagnosing and solving common problems for the general users.
The aim of this project is to use the learnings of Artificial Intelligence to create an
Expert System to use knowledge specific to a problem area to provide “Expert Quality”
performance in that application area. A knowledge based system that serves as an information
repository and consultant should be implemented with the equipment of an interactive means
to engage in a conversation with the user by utilizing a Expert System Shell, Verbot.
The team has decided to create an Expert System dedicated to aid customers of Air Asia
Sdn. Bhd. by providing the functionalities stated in section 3.1. Based on the team’s
assumptions, it should be able to dramatically increases the customer’s user experience and
therefore would lessen the staff’s workload and allow them to focus on more critical tasks.
In this project report, the company Air Asia Sdn. Bhd. has been chosen by the team and
an expert system will be solving a wide range of problems during their customers’ flight
registering and waiting stage. A problem specification has been proposed and clear statements
regarding the need for the proposed expert system has been mentioned with references given.
Next, a chapter of knowledge acquisition has been noted with the content of types of expert
system researched by the team and a short literature review on Chatterbot has been given as
well. Furthermore, a detailed semantic nets will be explain with the assistant of knowledge
representation. A documentation of the implementation with the test plans and special features
have been written as well. In the same section, user acceptance testing in questionnaire and its
AAPP002-4-2-IAI ASSIGNMENT 5
Introduction 6
results will be shown. A Further analysis and research on these data have been done by the
collaborated efforts of each and every group members.
AAPP002-4-2-IAI ASSIGNMENT 6
Introduction 7
Based on this article, it mentions that tourism sector is one of the main important sectors
of the economy. It also highlights that transportation has been an integral part of the tourism
industry. There is a general mutual agreement that tourism expands when there are better
transportation systems. This is because in tourism the customers come to that particular
destination where tourism services are provided. Therefore it is hard to imagine tourism with
transportations as its job is to carry the passengers where tourism is being performed.
AAPP002-4-2-IAI ASSIGNMENT 7
Introduction 8
The development of transportation and its embedded services and technologies has been
shown to speed up the development as mentioned above. If we give concern to the statistics of
World Tourism Organization, we can clearly see the changes and increments performed
between 2005 and 2015, this statistic have shown that with the advancement and application
of technologies within the transportation sector, it has enable the tourists to reach many
destinations of the world.
Air transportation is one of the most important transportation modes in the tourism
industry compared to sea and automobile transportation. This is because air travel has made
significant changes in terms of the customer’s travel distance and time usage. In order to meet
requirements and create improvements it has been stated that the airline companies spent
billions of dollars and apply new technological innovations to match the constant developments
in this industry. At the report’s time of being, there are 1629 airlines, 27271 aircrafts, 3733
airports, 29.6 million scheduled departures a year and carries 2.7 billion of passengers per year.
(BA2.ITC.MBA.EMBA, 2016)
AAPP002-4-2-IAI ASSIGNMENT 8
Introduction 9
Malaysia has an ancient history of tourism dated back in 1970s, where the Malaysia’s
tourism industry was considered underdeveloped till it meets the turning point in 1970s. With
the establishment of the Tourism Development Corporation of Malaysia (TDC) in 1972, the
country took a major step in the right direction to make TDC the official development authority
to promote tourism and travel. The country has since taken up interest in the development of
this industry shown by the creations of five year plans such as the National Tourism Policy
(NTP) enacted in 1992, the National Ecotourism Plan (NEP) in 1996 and the most recent being
Malaysia Tourism Transformation Programme (MTTP) in 2010. All these policies initiatives
are to tap into the unexploited and unexplored potentials of the home grown tourism, which
will potentially provide a boast to a greater and sustained economic growth in Malaysia.
The tourism in Malaysia does not just generate considerable foreign exchange revenues but
has also contributed the overall output and socio-economic development of the country. Within
the Asia and Pacific region, the data gathered for 2014 indicates that Malaysia was ranked very
highly at no. 26 out of the 184 countries in the world in terms of the relative contribution of the
AAPP002-4-2-IAI ASSIGNMENT 9
Introduction 10
travel and tourism industry to its national output. This journal paper has highlighted the factors
driving international tourist arrivals into Malaysia and identified the potential determinants of
the growth of the travel and tourism industry, which gathered results that suggest Malaysia’s
government expenditures on tourism promotion as well as infrastructure investments.
The results show that there exists a strong causal link between airport facilities and
international tourist arrivals, with airport facilities significantly driving the growth of
international tourist arrivals. This result highlights the prominent role that the quality of air
transportation facilities have on contributing to the growth of the T&T industry into Malaysia.
These findings have been concluded with the usage of a Geweke causality framework. Based
on the extract above, we can clearly see the need of further enhancing airport facilities to
dramatically improve Malaysia’s travel and tourism industry as well as its economy.
After a clear requirement gathering and evaluation process, the team has decided to select
Air Asia Sdn. Bhd. as the targeted company. With its headquarter located near Kuala Lumpur,
Malaysia. It is the largest airline in Malaysia by fleet size and destinations, and Asia’s largest
low-cost airline by passengers carried and jet fleet. AirAsia Group operates scheduled domestic
and international flights to more than 165 destinations spanning over 25 countries. (Routes
Online, 2016)
1
AAPP002-4-2-IAI ASSIGNMENT 0
Introduction 11
No matter how excellent the service a company may deliver, there will always be space for
improvement, especially in this era where competitions are strong among the industry and
customers and prompted to be less loyal. This journal paper has shown the relationship between
service quality and price towards customer loyalty in the Air Asia services is very much
significant. (Amiruddin, 2013) The present studies show the analysis of the overall gap between
expectation and perception in terms of service quality. As regard to responsiveness, the highest
gap is about the responsiveness of Air Asia’s staffs in handling delays. When problem aroused,
the staffs are not able to give adequate amount of information in a timely manner to the
passengers regarding the current situation. Next, in terms of assurance, it shows that highest
gap is regarding the flight schedule. Customers are expecting their flight schedules to be
assured at all times but it shows that flights are always delayed and not precise, leading
customers to wander or linger around the airport with excessive time which leads to lower
down the productive level of the customers. Furthermore, in terms of empathy, the highest gap
is about the service personnel. Their expectations are always lowered as the company’s staffs
did not resolve the customers’ problems, it could be caused that there are not enough staffs
with the level of expertise and knowledge.
As service and quality has always been the fundamentals of sales profitability, this article
further explains the problems found in the prestigious company. Air Asia has a high traffic
operation which leads to high workload which in long term affects the employee’s physical,
mental health, performance and productivity including customer service. The stress has strain
the employee into illness leading to lack of motivation and therefore further degrades and
injures the customer service image of Air Asia.
Next, the main reason the company capitalizes on man, machine and equipment is to
improve productivity. Technology is expending at an exponential rate and workers take time
to learn and use technology which constraints their ability to focus on satisfying customer
services, letting the service quality drop.
1
AAPP002-4-2-IAI ASSIGNMENT 1
Introduction 12
challenging to communicate with customers with fluent English as it is not their mother tongue
therefore it has taken more time to complete a conversation and lead to the poor performance
of customer service in the airline industry. (Universiti Teknologi Malaysia, 2015)
Most of them are considered as virtual assistants to help consumers book flights,
locations and accommodations. There are a few notable ones such as Cheapflights, which is
Facebook messenger bot that adapts to the conversation style of each individual user and
respond in similar language. At the same lines, travel application HelloGbye assists travellers
in a way by accepting input of vacations the travellers desire and generates a list of potential
flights tailored to their requirements. Other than that, online platform such as HiJiffy and Exa
helps the travellers to find a range of hotels, tourist locations and airport transfer and even
translates and tailored its responses to the guest’s language. (Perry, 2016)
However, there are space of improvements that the team can proposed and wish the
revolutionizes which will be further elaborate in the section 3.1. For example, these chatbots
does not provide an incorporated line of services catered from the start to the end of the travel
planning process. This would create difficulties for the travellers as they have to download or
use different platforms for different usages. Next, these applications do not provide other
additional services to allow the users to plan their time within the airport while waiting for
boarding or check in.
1
AAPP002-4-2-IAI ASSIGNMENT 2
Introduction 13
In this literature, it covers the patent of an invention which uniquely designed to interact
with web retailer’s customers with real agent reaction times as they give astute answers directly
concerning web retailer's products and goals. It explains how an artificial intelligence engine
uses the combination of Bayesian probability keyword selection, natural language parsing and
regular expression processing. This has clearly shown the possibilities of the improvement of
the current chatter bots. (Chakrabarti & Luger, 2015)
1
AAPP002-4-2-IAI ASSIGNMENT 3
Introduction 14
As the articles mentioned above, the relationship between customer services and
transportation are closely connected, so in order to improve the services among the customer,
lessen technical issues and ease of use is one of the important stage on it. In this era which most
information is overly generated in a great number of way, people will get confuse easily by the
various and different information and it will cause a lot of misunderstanding and
misconceptions. Therefore, AIRA will be playing an important role as an information gatherer,
gathers all the latest and correct information, provides the best services to customers.
Being one of the main income source of Malaysia, tourism plays a very important role.
Based on the graphs above shown, T&T industry has been greatly advanced for the past few
years, contributing to the growing pool of customers. To deal with thousands or million
customers every day, a perfect and complete customer services system is indispensable. Lack
of experience staffs is one of the major problem occurred in Air Asia Sdn. Bhd as human
resources are not enough to provide services to every customer. AIRA will be one of the
solution to these problems, with the support of artificial intelligent, she is able to perform some
basic services to customer and to solve the lack of human resources problem.
1
AAPP002-4-2-IAI ASSIGNMENT 4
Project Scope 15
3. Project Scope
3.1 Functional Requirements
The team has listed out some of the functional requirements that the system should met.
This describes and specifies the things that the system should be able to perform.
1
AAPP002-4-2-IAI ASSIGNMENT 5
Project Scope 16
1) Changing agent: the user may choose to change to another avatar if he/she does not like
AIRA’s look and have the changes reverted as well.
2) Minimizing screen: the user may choose to minimize the chatbot screen by typing in
respective queries.
3) Displaying website: the user may choose to open the webpage to book flight tickets,
view Air Asia Home Page or browser KLIA’s directory.
4) Displaying file: the user may choose to open or save a text file containing the
information regarding the recommendations made by AIRA.
5) Recording feedbacks: the user may activate and input feedback which will be stored
into the knowledge base and next time, when the user activates the same rule, the
respective output will be displayed.
6) Remembering names/travel destination: the user may ask AIRA his/her destination if
he/she forgets.
7) Remembering last input: the user may ask AIRA for the latest input created by the user.
1
AAPP002-4-2-IAI ASSIGNMENT 6
Project Scope 17
3.2.2 performance
A reliable performance system greatly lessens the staff’s workload and allowing them
to put their focus on more important tasks. As mentioned above, lack of human resources has
become one of major problems in Air Asia Sdn. Bhd. Thus, a system with good performance
like fast response time and good utilization is needed in a huge company like Air Asia Sdn.Bhd.
1
AAPP002-4-2-IAI ASSIGNMENT 7
Project Scope 18
Objectives:
1
AAPP002-4-2-IAI ASSIGNMENT 8
Knowledge Acquisition 19
4. Knowledge Acquisition
4.1 Definition of Expert System
Based on the research constructed by the team, it has come to the knowledge that expert
systems (ES) are one of the most prominent research domains of Artificial Intelligence. It is
first introduced by the researchers at Stanford University, Computer Science Department. The
common question is: What are Expert Systems? Expert Systems can be classified as computer
applications designed to diagnosed of solve complex problems that require extra-ordinary
human intelligence and expertise in a particular domain.
4.2.2 Understandable
It is able to understand, diagnosed and solve the problem with the common language,
logic and knowledge of human. Human beings have the possibility of different logic and
sentence interpretation, languages barriers and knowledge and maturity level that might affect
the results of a complex problem’s solution. However, an Expert System would have the ability
to combat such flaws. Therefore it is classified as an understandable computer application.
1
AAPP002-4-2-IAI ASSIGNMENT 9
Knowledge Acquisition 20
4.2.3 Reliable
With consistencies, there comes reliabilities. Human beings cannot provide a consistent
output of information as it can be always affected by their decisions, biasness or their intentions.
However, an Expert System’s output would not be affected by the statements stated above and
it does not possess the humanly characteristic of judgement and thinking. Therefore, the
provided results will always be consistent, therefore created a reliable machine.
1) User interface which contain all the facts and rules regarding the domain
2) Inference engine which carries out the reasoning based on the facts and rules in the
knowledge base and later on provides conclusion and explanations
2
AAPP002-4-2-IAI ASSIGNMENT 0
Knowledge Acquisition 21
3) Knowledge base which is what the user uses to communicate with the system.
2
AAPP002-4-2-IAI ASSIGNMENT 1
Knowledge Acquisition 22
2
AAPP002-4-2-IAI ASSIGNMENT 2
Knowledge Acquisition 23
(Joshik, n.d.)
2
AAPP002-4-2-IAI ASSIGNMENT 3
Literature Review on Chatterbot 24
5. Literature Review on
Chatterbot
5.1 AIML Based Voice Enabled Artificial
Intelligent Chatterbot
The team review this piece of journal paper (Ahmed & Singh, 2015) and it has shown
the implementation of an artificial intelligent chatterbot with whom human can interact by
speaking to the chatterbot and it responses using its speech synthesizer. The paper has shown
application of chatterbot can be used in various fields such as education, healthcare, and route
assistance. It is proved to be a helpful contribution to any industry where one can seek
assistance without need of human.
2
AAPP002-4-2-IAI ASSIGNMENT 4
Literature Review on Chatterbot 25
The result of reviewing this particular journal is that the team gathers an adequate
amount of information regarding the background of chatterbot, thus helping the team to get a
hold of what-can-be-done and what-can’t-be-done for AIRA in a more visual able manner.
This paper has shown the team has implemented and built an adolescent-oriented
intelligent chatting system called TeenChat, which acts as a virtual friend to listen, understand,
comfort, encourage, and guide stressful adolescents to pour out their bad feelings, and thus
releasing the stress.
The chatterbot mentioned in the journal is implemented by using Q&A systems, it will
respond to users by matching questions and question-answer pairs in knowledge bases,
retrieving relevant documents and Web pages from local document collections and global
Internet or extracting answers from relevant documents or Web pages.
With respect to the information above, the result of reviewing this particular journal is
that the team gathers an adequate amount of ideas and concepts, considerations of inserting
certain related functions into AIRA are made to be planned.
2
AAPP002-4-2-IAI ASSIGNMENT 5
Knowledge representation 26
6. Knowledge representation
2
AAPP002-4-2-IAI ASSIGNMENT 6
Implementation 27
7. Implementation
7.2 test plan
7.2.1 start-up
On start-up page, AIRA will greet the user by introducing herself and displaying the
current time, date and place which are real-time based and are created with the implementation
of special internal variables of Verbot. After a brief introduction about AIRA, users will be
asked for their name and AIRA will remember that from start to the end.
2
AAPP002-4-2-IAI ASSIGNMENT 7
Implementation 28
When the user does not type or key in any input within few minutes, AIRA will ask the
user to type or ask anything in order to continue run the chatterbot program.
2
AAPP002-4-2-IAI ASSIGNMENT 8
Implementation 29
7.2.3 blank
When the user types any null values, AIRA will response with the output as shown
above.
2
AAPP002-4-2-IAI ASSIGNMENT 9
Implementation 30
If the user types “I need help”/ “HELP”, a text file containing some support and extra
features will be loaded. User can try to type some example features provided by the text file
to get some surprise and fun.
3
AAPP002-4-2-IAI ASSIGNMENT 0
Implementation 31
After asking a several questions to the user, AIRA will ask user whether want to book
the flight ticket or not, if the user types “yes”, Air Asia home page will be displayed and it
allows the user to book the flight ticket immediately.
3
AAPP002-4-2-IAI ASSIGNMENT 1
Implementation 32
If the user does not have any ideas where to visit or go, AIRA will suggest some
recommend places by getting some inputs from the user. In order to recommend places to the
user, several questions will be asked by AIRA like the amount of person traveling and
preferred tourist activities. After getting all the information, a place like Perak (shown in Test
Plan 6) will be provided by AIRA and she will describe the attractions about that state.
3
AAPP002-4-2-IAI ASSIGNMENT 2
Implementation 33
The user can store some information into system. For example, AIRA will ask the user
to provide some feedback so she can update it to her knowledgebase and can be retrieved in
the future.
3
AAPP002-4-2-IAI ASSIGNMENT 3
Implementation 34
If the user asks something regarding the activities in KLIA, AIRA will display some
information or map to guide the user. All data and information are retrieves from a CSV file.
3
AAPP002-4-2-IAI ASSIGNMENT 4
Implementation 35
If the user types KL, AIRA will automatically replace it to “Kuala Lumpur”.
3
AAPP002-4-2-IAI ASSIGNMENT 5
Implementation 36
If the user does not like the current agent or avatar, he/she can require AIRA to
change it. In addition, the user can also request AIRA to revert it back.
3
AAPP002-4-2-IAI ASSIGNMENT 6
Implementation 37
The virtual children will keep firing the respective rule until it activates or gets
particular user’s input. For example, the system will fire the rule “else” until the user enters a
“yes” or “no”.
3
AAPP002-4-2-IAI ASSIGNMENT 7
Implementation 38
7.2.12 Synonyms
The synonyms file allows the user types the similar word to get same output. For
example, if the user types “Yes, I do” or “yeah”, he/she also will get the same output.
3
AAPP002-4-2-IAI ASSIGNMENT 8
Implementation 39
After getting some inputs from the user, AIRA will save the user’s input into a text file,
at the end of chatbot, AIRA will ask the user whether want to open the text file or not. It
contains the place recommended by AIRA and its attractions, food and hotels will be displayed
as well.
3
AAPP002-4-2-IAI ASSIGNMENT 9
Implementation 40
When the user enters “Who are you?”, AIRA will read out a text file containing respective
information.
4
AAPP002-4-2-IAI ASSIGNMENT 0
Implementation 41
The system will stores user’s input regarding the choice from the CSV files using <mem.set
variablename value>.
4
AAPP002-4-2-IAI ASSIGNMENT 1
Implementation 42
When the user types “smile”, the avatar will response with a smiling face. This applies to during
normal conversations as well, the avatar would display different emotions depending on the
situations. This is done by using MS Agent named <agent.play smile>.
4
AAPP002-4-2-IAI ASSIGNMENT 2
Implementation 43
When the user wants to look for their respective AirAsia’s account username but have not
entered beforehand, it would mention that the username is not recorded, however the real data
will be displayed when the user had previously entered their username.
4
AAPP002-4-2-IAI ASSIGNMENT 3
Implementation 44
When the user asked “what did I say?”, AIRA will mention and repeat the previous input of
the user.
4
AAPP002-4-2-IAI ASSIGNMENT 4
Implementation 45
Several C# code has been implemented to calculate queries and present data and information.
In this particular feature, the output is formatted in a way whereby it delivers the input of
another rule, therefore activating certain rules in the knowledgebase.
4
AAPP002-4-2-IAI ASSIGNMENT 5
User acceptance testing 46
4
AAPP002-4-2-IAI ASSIGNMENT 6
User acceptance testing 47
Reason:
To identify which age group most Air Asia frequent customers belong to so the
language and tone can be adjusted based on customer’s age categories.
Evaluation:
Based on the graph shown above, the majority age group of Air Asia customers are
between 21 and 40 years old. It becomes the majority by obtaining 45% out of the total pie
chart, granting a significant contrast compared to other age groups.
Discussion:
In the process of developing AIRA, the team had chosen a language or tone that is much
more trendy and casual to create a friendly environment for conversations to take place, which
is considered suitable for chatterbots catered for public. Therefore, the aim and requirement set
by the team has been met.
4
AAPP002-4-2-IAI ASSIGNMENT 7
User acceptance testing 48
Reason:
To identify the level of system acceptability and credibility of AIRA by the users and
public to justify whether the development of the system is useful and needed to the catered
users.
Evaluation:
Based on the results, it can be assumed that most of the respondents are willing to try
out the suggestions and places provided by AIRA as the results displayed “YES” has took up
70% of the pie chart. However, 30% of the crowd felt that further improvements can be made
to the system to extend its functionalities.
Discussion:
Since the responses regarding this question has a big contrast, the team has come to
the conclusion whereby the system was deemed useful and needed by the catered users. The
team would further extend AIRA’s functionalities and knowledgebases to provide better for
the catered users.
4
AAPP002-4-2-IAI ASSIGNMENT 8
User acceptance testing 49
Reason:
Evaluation:
The graph shown that AIRA is able to answer most of the questions asked by
respondents. This is shown with option “YES” granting 65% of the entire pie chart. However,
35% of the crowd felt that AIRA failed to answer some of their questions.
Discussion:
As the Beta version of the complete system, AIRA was designed to answer frequently
asked and general questions. The team felt that in order to develop a successful expert
system, the system has to answer all potential questions, including questions that are
considered more niche to the public.
4
AAPP002-4-2-IAI ASSIGNMENT 9
User acceptance testing 50
Reason:
To allow the catered users of the system to rate AIRA from 1-5 to determine the user
friendliness/ease-of-use of the system.
Evaluation:
As the graph shown above, rating “three” and “four” dominated the graph with each
containing 35% of the entire graph. The option “one” received 0% rating while option “5”
received a 15% rating.
Discussion:
Although it shows that the system is not deemed perfect, it indicates that AIRA is
suitable for anyone and it does not require an IT user to operate it based on the user
acceptance results. However, the team conclude that there is space for improvements.
5
AAPP002-4-2-IAI ASSIGNMENT 0
User acceptance testing 51
Reason:
To find out customers’ responses and feedbacks toward the implementation of AIRA
on mobile applications.
Evaluation:
70% of the respondents agree that the system should be integrated and implemented
on mobile application rather than stand-alone application. In addition, only a small amount of
30% disagree.
Discussion:
With references to the graph above, most of the respondents agreed and this
contributes to the thoughts of the team of having the system as a mobile applications as it
further ease the use of the catered users as they do not have to the respective terminal or
system to operate.
5
AAPP002-4-2-IAI ASSIGNMENT 1
Conclusion 52
9. Conclusion
Although the team was under the circumstances of given constraints such as the
unavailability to expand and bring additional features into Verbot 5 as well as limited time, the
team had try their best to make uses of all obtainable resources to push AIRA into its extends.
In the coming future, the team will proceed to enhance AIRA in terms of allowing AIRA
to interact with the users using speech recognition, inserting adequate and relevant C# code to
further expand the functionalities of AIRA and allowing AIRA to make decisions based on
personality tests.
5
AAPP002-4-2-IAI ASSIGNMENT 2
References 53
10. References
admax, 2015. Why Tourism Matters (2016). [Online]
Available at: http://media.unwto.org/content/why-tourism-matters-2016
[Accessed 22 3 2017].
Ahmed, I. & Singh, S., 2015. AIML Based Voice Enabled Artificial Intelligent Chatterbot.
International Journal of u- and e- Service, Science and Technology, 8(2), p. 10.
Amiruddin, N. H., 2013. Price, Service Quality and Customer Loyalty: A Case of Air Asia.
South East Asia Journal of Contemporary Business, Economics and Law, 2(1), p. 7.
Chakrabarti, C. & Luger, G. F., 2015. Artificial conversations for customer service chatter bots:
Architecture,. Expert Systems with Applications, 1(1), p. 3.
Jing, H. et al., 2015. Teen Chat: A Chatterbot System for sensing and Releasing Adolescents'
Stress. Health Information Science: 4th International Conference, HIS 2015, XIII(9085), pp.
133-145.
5
AAPP002-4-2-IAI ASSIGNMENT 3
References 54
Skift, D. . P., 2016. 5 Charts Showing the Rise in International Arrivals to Asia-Pacific
Destinations. [Online]
Available at: https://skift.com/2016/01/29/5-charts-showing-the-rise-in-international-arrivals-
to-asia-pacific-destinations/
[Accessed 22 3 2017].
Tan, K. G., Ye, Y. & Gopalan, S., 2016. Drivers of Growth in the Travel and Tourism Industry
In Malaysia: A Geweke Causality Analysis. economies, 1(1), p. 15.
Universiti Teknologi Malaysia, 2015. Improving Customer Service and People Skills in Air
Asia. Report of Case Study Boeing - Dreamliner, 1(1), p. 13.
5
AAPP002-4-2-IAI ASSIGNMENT 4
Appendices 55
11. Appendices
11.1 Source Code
KnowledgeBase Name: C:\Users\Jack\Documents\Verbots\AIRA.vkb
KnowledgeBase Version: 1.0
KnowledgeBase Build: 264
KnowledgeBase Info:
Author:
Author's Website:
Copyright:
License:
Creation Date: 2/13/2009 2:23:46 AM
Last Update Date: 4/10/2017 3:08:44 PM
Rating: Unknown
Rating Description:
Category: Other
Language: English
Comment: This is AIRA, a travel scheduling and planning chatterbot.
ResourceFiles:
Emotions.vrp
Default.vsn
location.csv
Shop.csv
mycodes.vcm
State Replacements.vrp
Default.vrp
Rules:
Rule Name: _startup
Input Text: _startup
Output Text: <?csharp Console.Write(mycodes.greeting());?>
Information is updated as of [_time] on [_date].
We are now in Kuala Lumpur International Airport.
I am AIRA. I am an artificial intelligence system and chatterbot program. I am here to assist you
through out the whole journey. What's yours?
Rule Name: name
Input Text: [name]
Input Text: my name is [name]
5
AAPP002-4-2-IAI ASSIGNMENT 5
Appendices 56
5
AAPP002-4-2-IAI ASSIGNMENT 6
Appendices 57
Output Text: Alright, well have you booked your flight ticket?
Rule Name: No
Input Text: (no)
Output Text: Alright, let's get you booked! <run
http://www.airasia.com/my/en/home.page?gclid=CjwKEAjwlKLHBRDztKr6wMnRthMSJAALcT-
sPjnVNgsUVRs78me3hmEb5pMOtGGTWkB_wMSVE6PRDRoCzxzw_wcB>
Rule Name: Else
Input Text: *
Output Text: I'm sorry, I really need a "Yes" or "No"!
Rule Name: Yes
Input Text: state
Input Text: (yes)
Output Text: Alright, which one then? You may ask me about the [state]'s attractions, hotels or
famous places to get food.
Rule Name: Hotel
Input Text: Hotel
Input Text: hotel
Input Text: hotels
Input Text: How about the hotel?
Input Text: recommend me hotel
Output Text: Okay, #state 's famous hotels are #hotel1 and #hotel2. Anything else? <mem.set
rechotel #hotel1>
Rule Name: No
Input Text: (no)
Output Text: Do you want to book your flight ticket now?
Rule Name: Yes
Input Text: (yes)
Output Text: Okay, by the way, your travel time to <mem.get state> is #ttime and the airport you are
landing in is #airport. If you wanted to walk around, let me guide you! Type "KLIA Tour" and I will
show you around! <mem.set ttime #ttime> <mem.set airport #airport> <run
http://www.airasia.com/my/en/home.page?gclid=CjwKEAjwlKLHBRDztKr6wMnRthMSJAALcT-
sPjnVNgsUVRs78me3hmEb5pMOtGGTWkB_wMSVE6PRDRoCzxzw_wcB>
Rule Name: No
Input Text: (no)
Output Text: Alright, hope you enjoy your flight. Here is a text file of your travel details! Your file
name is : <?csharp vars["myFile"] =
mycodes.save(vars["name"],vars["amount"],vars["state"],vars["recattraction"],vars["recfood"],vars["
rechotel"],vars["ttime"],vars["airport"]);?>[myFile].
Do you want to open the file?
Rule Name: else
Input Text: *
Output Text: I'm sorry but I really need a yes or no.
Rule Name: no
Input Text: (no)
Output Text: Okay. You can open it later. Just remember it is named [myFile].
5
AAPP002-4-2-IAI ASSIGNMENT 7
Appendices 58
5
AAPP002-4-2-IAI ASSIGNMENT 8
Appendices 59
5
AAPP002-4-2-IAI ASSIGNMENT 9
Appendices 60
Output Text: Okay. You can open it later. Just remember it is named [myFile].
<printtext It's available at c:documents>
<send exit>
Rule Name: open_file
Input Text: (yes)
Output Text: <send exit>
|Cmd: [myFile]
Rule Name: No
Input Text: (no)
Output Text: Alright. <send end>
|Cmd: <send end>
Rule Name: Else
Input Text: *
Output Text: I am sorry, I really need a "Yes" or "No".
Rule Name: No
Input Text: (no)
Output Text: Alright, let's start over again then!
|Cmd: <send _startup>
Rule Name: yes
Input Text: (yes)
Output Text: Oh really, where to go? :-o
Rule Name: State
Input Text: #state
Output Text: #state is a great place! You can try visiting #attraction1, it is magnificent! Now, do you
have any question regarding #state 's recommended attractions, places to get food or hotels?
<mem.set state #state>
Rule Name: No
Input Text: (no)
Output Text: Alright, well have you booked your flight ticket?
Rule Name: No
Input Text: (no)
Output Text: Alright, let's get you booked!
Rule Name: Else
Input Text: *
Output Text: I'm sorry, I really need a "Yes" or "No"!
Rule Name: Yes
Input Text: state
Input Text: (yes)
Output Text: Alright, which one then? You may ask me about the #state 's attractions, hotels or
famous places to get food.
Rule Name: Hotel
Input Text: Hotel
Input Text: hotel
Input Text: hotels
Input Text: How about the hotel?
6
AAPP002-4-2-IAI ASSIGNMENT 0
Appendices 61
6
AAPP002-4-2-IAI ASSIGNMENT 1
Appendices 62
Output Text: Okay, [state]'s famous attractions are #attraction1 and #attraction2. Anything else?
<mem.set recattraction #attraction1>
Rule Name: Yes
Input Text: (yes)
Output Text: <send state>
Rule Name: No
Input Text: (no)
Output Text: Do you want to book your flight ticket now?
Rule Name: Yes
Input Text: (yes)
Output Text: Okay, by the way, your travel time to #state is #ttime and the airport you are landing in
is #airport. If you wanted to walk around, let me guide you! Type "KLIA Tour" and I will show you
around! <mem.set ttime #ttime> <mem.set airport #airport> <mem.get state><run
http://www.airasia.com/my/en/home.page?gclid=CjwKEAjwlKLHBRDztKr6wMnRthMSJAALcT-
sPjnVNgsUVRs78me3hmEb5pMOtGGTWkB_wMSVE6PRDRoCzxzw_wcB>
Rule Name: No
Input Text: (no)
Output Text: Alright, hope you enjoy your flight. Here is a text file of your travel details! Your file
name is : <?csharp vars["myFile"] =
mycodes.save(vars["name"],vars["amount"],vars["state"],vars["recattraction"],vars["recfood"],vars["
rechotel"],vars["ttime"],vars["airport"]);?>[myFile].
Do you want to open the file?
Rule Name: else
Input Text: *
Output Text: I'm sorry but I really need a yes or no.
Rule Name: no
Input Text: (no)
Output Text: Okay. You can open it later. Just remember it is named [myFile].
<printtext It's available at c:documents>
<send exit>
Rule Name: open_file
Input Text: (yes)
Output Text: <send exit>
|Cmd: [myFile]
Rule Name: No
Input Text: (no)
Output Text: Alright. <send end>
|Cmd: <send end>
Rule Name: Food
Input Text: food
Input Text: Food
Input Text: How about the food?
Input Text: places to get food
Input Text: recommend me food
6
AAPP002-4-2-IAI ASSIGNMENT 2
Appendices 63
Output Text: Okay, [state]'s famous food are #food1 and #food2. Anything else? <mem.set recfood
#food1> <mem.set state #state>
Rule Name: Yes
Input Text: (yes)
Output Text: <send state>
Rule Name: No
Input Text: (no)
Output Text: Do you want to book your flight ticket now?
Rule Name: Yes
Input Text: (yes)
Output Text: Okay, by the way, your travel time to #state is #ttime and the airport you are landing in
is #airport. If you wanted to walk around, let me guide you! Type "KLIA Tour" and I will show you
around! <mem.set ttime #ttime> <mem.set airport #airport> <mem.get state><run
http://www.airasia.com/my/en/home.page?gclid=CjwKEAjwlKLHBRDztKr6wMnRthMSJAALcT-
sPjnVNgsUVRs78me3hmEb5pMOtGGTWkB_wMSVE6PRDRoCzxzw_wcB>
Rule Name: No
Input Text: (no)
Output Text: Alright, hope you enjoy your flight. Here is a text file of your travel details! Your file
name is : <?csharp vars["myFile"] =
mycodes.save(vars["name"],vars["amount"],vars["state"],vars["recattraction"],vars["recfood"],vars["
rechotel"],vars["ttime"],vars["airport"]);?>[myFile].
Do you want to open the file?
Rule Name: else
Input Text: *
Output Text: I'm sorry but I really need a yes or no.
Rule Name: no
Input Text: (no)
Output Text: Okay. You can open it later. Just remember it is named [myFile].
<printtext It's available at c:documents>
<send exit>
Rule Name: open_file
Input Text: (yes)
Output Text: <send exit>
|Cmd: [myFile]
Rule Name: No
Input Text: (no)
Output Text: Alright. <send end>
|Cmd: <send end>
6
AAPP002-4-2-IAI ASSIGNMENT 3
Appendices 64
6
AAPP002-4-2-IAI ASSIGNMENT 4
Appendices 65
6
AAPP002-4-2-IAI ASSIGNMENT 5
Appendices 66
6
AAPP002-4-2-IAI ASSIGNMENT 6
Appendices 67
6
AAPP002-4-2-IAI ASSIGNMENT 7
Appendices 68
Rule Name: No
Input Text: (no)
Output Text: Do you want to book your flight ticket now?
Rule Name: Yes
Input Text: (yes)
Output Text: Okay, by the way, your travel time to <mem.get state> is #ttime and the airport you are
landing in is #airport. If you wanted to walk around, let me guide you! Type "KLIA Tour" and I will
show you around! <mem.set ttime #ttime> <mem.set airport #airport> <run
http://www.airasia.com/my/en/home.page?gclid=CjwKEAjwlKLHBRDztKr6wMnRthMSJAALcT-
sPjnVNgsUVRs78me3hmEb5pMOtGGTWkB_wMSVE6PRDRoCzxzw_wcB>
Rule Name: No
Input Text: (no)
Output Text: Alright, hope you enjoy your flight. Here is a text file of your travel details! Your file
name is : <?csharp vars["myFile"] =
mycodes.save(vars["name"],vars["amount"],vars["state"],vars["recattraction"],vars["recfood"],vars["
rechotel"],vars["ttime"],vars["airport"]);?>[myFile].
Do you want to open the file?
Rule Name: else
Input Text: *
Output Text: I'm sorry but I really need a yes or no.
Rule Name: no
Input Text: (no)
Output Text: Okay. You can open it later. Just remember it is named [myFile].
<printtext It's available at c:documents>
<send exit>
Rule Name: open_file
Input Text: (yes)
Output Text: <send exit>
|Cmd: [myFile]
Rule Name: No
Input Text: (no)
Output Text: Alright. <send end>
|Cmd: <send end>
Rule Name: Else
Input Text: *
Output Text: I am sorry, I really need a "Yes" or "No".
Rule Name: No
Input Text: (no)
Output Text: Alright, let's start over again then!
|Cmd: <send _startup>
6
AAPP002-4-2-IAI ASSIGNMENT 8
Appendices 69
6
AAPP002-4-2-IAI ASSIGNMENT 9
Appendices 70
7
AAPP002-4-2-IAI ASSIGNMENT 0
Appendices 71
7
AAPP002-4-2-IAI ASSIGNMENT 1
Appendices 72
7
AAPP002-4-2-IAI ASSIGNMENT 2
73
7
AAPP002-4-2-IAI ASSIGNMENT 3
74
7
AAPP002-4-2-IAI ASSIGNMENT 4
75
Knowledge
Member Kho Zhi Yuen
Engineer
7
AAPP002-4-2-IAI ASSIGNMENT 5
76
This project is specifically developed for Air Asia Sdn. Bhd., a renowned local
business in travel/airline industry. Founded in 20 December 1993, Air Asia Sdn.
Bhd. has been consistently named as the world’s best low cost carrier for 8
consecutive years in international travel and airline awards. Recently, Air Asia
Sdn. Bhd. has mentioned few problem areas that would like to receive
suggestions for improvements. Thus, the team has come up with possible
solutions to combat real world problems in order to train and further sharpen the
overall abilities of the team for upcoming challenges.
Yes, there is a need for such system as Air Asia Sdn. Bhd. has mentioned
it. Furthermore, as students who are studying Artificial Intelligence,
besides learning the necessary technologies and knowledges for the
particular module, we should also understand problems or needs faced by
real world companies in order to prepare ourselves for the industry. Air
Asia Sdn. Bhd. has mentioned a few of the things needed to be targeted,
such as:
1. Reduce waiting time at the airport, from check-in to boarding.
7
AAPP002-4-2-IAI ASSIGNMENT 6
77
User Level
(Please indicate if user level is novice, intermediate or expert)
This is because the system is designed the customers or staffs of Air Asia Sdn.
Bhd. Usually, customers and staffs do not possess computing knowledge, they
are not computer literate. Hence, they might not be able to operate the system to
its fullest functionalities if the system is not specifically crafted in a user-friendly
manner. The developers of the system will emphasize their work on the general
users user-friendliness of the system, strive to allow users to monitor and control
the system with ease.
Agreement/Approval
________________________
(Signature of Approval - Lecturer)
7
AAPP002-4-2-IAI ASSIGNMENT 7
78
(Date)
7
AAPP002-4-2-IAI ASSIGNMENT 8