There is a lot of anxiety with travel in general and COVID-19 has only made it worse. With 2021 being the year of recovery, no one can predict exactly when passenger demand will return. We thought of solving this problem by improving the cutomer onboarding experience and reducing the anxiety around COVID and travelling in flights.
To tackle this problem, we decided to reach the customers of American Airlines on heavily utilized platforms like Whatsapp, Messenger, slack etc. These platforms allow easy to access and quick response when compared to the existing app based chat response which has its own benefits. We showcase a way to tackle the problem which can be considered as a Proof of concept for using the idea as an enhancement or a complete solution in itself.
Both of us being international students, there will be a time when our parents would come to meet us. There experience could be improved by having laguage support for the chat facilities and notifications. So, we added it into the 'core reactor' of our chat buddy.
Using well known messaging systems allow us to utilize the features already integrated into these systems, like speech to text, attachments and location, saving us from the trouble if scaling the platorm. The problem to scale was successly conquered by developing this as a complete cloud based solution.
Some may say chatbots are a thing of the past, yet latest research with GPT3 and knowledge graph based QnA is a highly active field of research, and attracts a lot of attention when used in the right manner. So we followed the quote, "Either ride the wave or be washed by it", and here is flybuddy.
Flight buddy is a AI powered chat buddy with traditional features of a notification system. In summary it does the following tasks:
- Notifies customer on important alerts (eg. reminder for cab, airport regulations, pre and post flight messages)
- AI chat response system ready to answer questions related to flight, COVID QnA and normal conversation.
- Information retrieval for latest news on the destiantion.
- Languge detection and translation for supporting multilingual travellers.
- Send twilio number : join village-funny
- Go to https://whatsapp-bot-303117.wl.r.appspot.com/ and send notifications, ideally trip_confirmation first
- We focused on using the chat platform to send notifications and alerts regarding to empower the motto "Come fly with us". Telling the customer why American airline is safe to travel and providing a smooth onboarding experience by providing all the necessary information to the traveller.
- The notification system is also used to showcase ads for upgrading to premium seats if the customer wanted.
- We provide a response to frequently asked questions, for instance complaints, turbulance anxiety, flight status.
- A custom response for COVID has been trained that helps with answering basic questions on COVID and travelling during the pandemic.
- For customer engagement we trained the buddy with normal conversation and funny responses to a few messages(lets see if you find those messages)
- We all view the news, but we all know google will enhance our experience by showing the news 'relevant' to us, mostly our local news. But as a traveller, I want to make sure that I know the news of my destination.
- Now, when you can do so much, why not simply read the news with your flight buddy.
- Language is a great barrier for international travellers. This can be easily tackled if the notification systems had the messages traslated before being sent ot the customer.
- Being a buddy, it was important to integrate the this feature of showing messages to the user in their preffered language.
We wanted a scalable solution and went for a complete cloud based solution. The tech stack is as follows, followed by detailed explaination of how we built the features :
- Google cloud app engine
- CockroachDB
- Google Translate API
- Google DialogFlow Engine
- Twilio WhatsApp Sandbox
- NewsAPI
- Stats API
- Python - Flask
Mahan had recently travelled with american airlines and had materials that could be used for our flybuddy. We manually scraped details from the emails he recieved and curated the set of messages used as notification for flybuddy.
- We built a Flask server and deployed it in google cloud engine. The Flask server is hosted on https://whatsapp-bot-303117.wl.r.appspot.com, which was used for sending notifications to an active whatsapp number. User can simply select the type of notification or ad they want to show and provide the number connected to send the message.
- The details of the notifications are retrieved from CockroachDB. We setup a cluster, filled the details and retrieved the data onto the notification sender page.
- AI chat messages were trained on Dialog flow that was connected using to the GCP project(thank you for the credits from GCP team)
- Each set(COVID, flights and general qna) were trained on custom made intents and response messages and can be easily improved with more intents, actions and responses.
- The message from WhatsApp user was sent to the Flask server which in turn directed the message to dialogflow, which processed the request, did query understanding, query classification and returned the most probable response (default if not part of training samples).
- We used the NewsAPI and statsAPI and the webhook method of dialog flow to determine the country or county (Supported only for US right now) asked for in the query and retieve the relevant news for a county or state and stats of COVID cases.
- The messages are sent as a combination of one synchronous response and several async response to the whatsapp user for a natural conversatinal "feel"
- We used Google traslate API to convert the message into the users base languge. For detecting the base language of the user we checked the github repo of translate API and took the code for detecting the language of the message.
- Therefore, everytime the customer messages something, the language of the message is detected and the response is returned in the same language. This allows for chatting in different languages for fun too.
Deciding on the idea was another challenge, but since we thought of all the use cases this product can have, we have stuck with it.
Setting deadlines and missing them, we tried making our own model while but were not completely successful in deploying it in GCP.
We are proud of deliver a fully functional and scalable AI buddy that can help American airline customers during their journey as well as act as a new channel for marketing.
We are proud of working together as a team and managing the stress of the competition as well as reaching our goal of building flybuddy.
We learnt to use different technologies during this hackathon including GCP's DialogFlow, Twilio WhatsApp Sandbox and CockroachDB. Having a limited amount of time and having to limit the features of our application pushed us to leverage the technologies to the fullest for the problem at hand.
Improving on the conversation model and adding more features into the buddy system. Integrating flybuddy with more messaging applications like Facebook messenger, Telegram to make it more accessible.