A chatbot is defined as a conversational tool that seeks to understand user queries and responds automatically. IBM explains five types of chatbot (menu or button-based, rules-based, AI-powered, voice-based, and Generative AI-based) to choose user requirements [1].
Chatbots are increasingly utilized across various sectors, including marketing, education, healthcare, cultural heritage, and entertainment [2]. These conversational agents are designed to engage users and provide information on demand. One popular platform for chatbot deployment is LINE*1, a widely used messaging app with a global user base. Businesses, local governments, and educational institutions leverage LINE's chatbot functionalities to enhance communication and engagement.
Faculty members at our university hold a 1 on 1 meeting with each student once in a quarter throughout the academic year. The purpose of meetings is to build a relationship of trust between the university and its students, based on mutual respect, and to support students in their academic journey toward graduation.
Through the meetings, we conducted interviews to identify specific difficulties faced by students. As a result, we discovered that students expressed challenges in accessing detailed and up-to-date information about faculty research projects. Although our current website [3] is available, it lacks the depth and detail necessary to effectively showcase the breadth of ongoing research. Specifically, students highlighted the need for:
We chose LINE due to its interactive capabilities and popularity among students. We believe that the LINE chatbot can bridge the communication gap between the university and students, fostering greater collaboration and understanding.
We developed our LINE chatbot using Amazon Web Services (AWS), a leading cloud computing platform. While the technical implementation of the chatbot system is important, this paper focuses on the practical insights and experiences gained during the development process. We share the challenges encountered, the strategies employed to overcome them, and the effective integration methods discovered. This practice-oriented approach aims to provide valuable knowledge that can be generalized and applied by other developers working on similar systems, as well as by practitioners in other fields exploring the use of chatbots and cloud technologies.
Specifically, this paper details:
By focusing on the practical aspects of our development process, we aim to contribute to the body of knowledge on chatbot development and deployment. Our goal is to provide valuable, real-world insights that go beyond technical details and offer concrete examples of effective solutions.
The remainder of this paper is organized as follows. Section 2 provides an overview of related research. Section 3 introduces the key technologies employed in this study. Section 4 outlines the LINE chatbot developed in this study. Section 5 explains our laboratory website. Section 6 describes the development process for each function of the LINE chatbot. Section 7 presents the evaluation results and discusses their implications. Finally, Section 8 summarizes our findings and outlines future work.
In this paper, we position ourselves as guides to help readers understand the full scope of our study. Our aim is not only to describe technical implementations but also to offer a clear and structured presentation of the research process. We carefully explain the motivation and background that led to the development of the LINE chatbot system, followed by a detailed account of the system's functionalities, development methodology, and evaluation results.
Throughout the paper, each section is organized to logically build on the previous one, enabling readers to follow the flow of the study from start to finish. Key insights and challenges are highlighted to provide practical knowledge for readers planning to develop similar systems. Limitations and areas for future work are also clearly stated to ensure transparency and encourage further improvement.
By maintaining clarity and cohesion across sections, we strive to provide a comprehensive understanding of our chatbot system and its educational relevance. We hope that readers from both academic and practical backgrounds will find this paper informative, applicable, and easy to navigate.
This section highlights previous works on chatbots, emphasizing their architectural designs and applications. However, instead of focusing solely on technical comparisons, this paper discusses practical considerations and lessons learned during the integration of LINE chatbots with AWS services. These insights aim to inform practitioners interested in deploying similar systems, especially in educational contexts, where such integration enhances communication and user engagement.
Lokman and Ameedeen [4] conducted a comprehensive technical review of five modern chatbot systems: DeepProbe, AliMe, SuperAgent, MILABOT, and RubyStar. Their analysis covered architectural designs, including knowledge domains, response generation methods, and text processing techniques.
Adamopoulou and Moussiades [5] provided a historical and technical overview of chatbot technology, highlighting its evolution from simple rule-based systems like ELIZA to modern AI-powered conversational agents.
Luo et al. [6] researched state-of-the-art chatbot designs and applications. They also reviewed the usability and applications of chatbots for various business sectors.
In the context of disaster management, where timely access to accurate information is important, LINE chatbots have emerged as a valuable tool. Hangyo et al. [7] demonstrated the potential of chatbots in disaster management by developing a system to disseminate critical information during emergencies. Their work illustrates the importance of designing chatbots that prioritize accuracy and reliability.
Noguchi et al. [8] highlighted the effectiveness of LINE chatbots in supporting educational institutions during the COVID-19 pandemic. They demonstrated the efficacy of LINE chatbots in providing timely support to students and faculty by addressing queries related to online learning platforms and tools.
Suzuki et al. [9] investigated the use of LINE chatbots to enhance student engagement during lectures by encouraging questions and facilitating interaction. Their findings highlight the potential of chatbots to create a more interactive and engaging learning environment.
Heryandi [10] developed a chatbot that allows parents to conveniently access their children's attendance records and grades.
Ensuring the security of chatbot systems is critical, as they often handle sensitive user data and provide interactive access to backend systems. The chatbot systems are susceptible to denial-of-service (DoS) attacks [11], which aim to disrupt service availability by overwhelming the system with traffic. The proliferation of distributed denial-of-service (DDoS) attacks, which exploit compromised IoT devices to amplify the attack's impact, has further heightened this threat [12].
With the widespread adoption of cloud computing since 2010, mitigating DDoS attacks in cloud environments has become important. Darwish et al. [13] proposed a comprehensive framework for DDoS mitigation tailored to different cloud service models (IaaS, PaaS, SaaS). Somani et al. [14] conducted a survey of DDoS attacks in cloud environments, emphasizing the effectiveness of autoscaling and defense-in-depth strategies. Rajan [15] focused on the emerging serverless architecture known as function-as-a-service (FaaS), with a particular emphasis on AWS Lambda.
The reviewed studies provide several key insights that have shaped the development of our LINE chatbot system:
By incorporating these insights, our study builds on existing knowledge to develop a practical and secure chatbot system tailored to the needs of educational institutions.
Amazon Web Services (AWS) is the world's leading cloud computing provider, offering a wide range of services such as computing power, storage, and machine learning. Unlike traditional on-premises models, AWS provides a scalable and cost-effective solution where users can access resources on demand [16].
AWS's extensive portfolio of over two hundred services caters to the diverse needs of startups, enterprises, and government agencies worldwide. Despite competition from other major cloud providers like Google Cloud Platform (GCP) [17] and Microsoft Azure [18], AWS holds the largest global market share, solidifying its dominance in the cloud computing market.
This research applies four key AWS services for the development and deployment of the LINE chatbot:
While we utilized several AWS services, including S3, Lambda, API Gateway, and DynamoDB, the focus of this paper is the practical challenges encountered during their integration. For example, managing API endpoints with the LINE Messaging API [19] posed unexpected difficulties, which we resolved through specific API configurations. Such details provide valuable lessons for practitioners aiming to implement serverless architectures in chatbot development.
In this study, we define our chatbot as a conversational tool designed to provide students with an interactive and user-friendly interface for accessing research information.
Our chatbot specifically targets the educational domain, catering to students who require up-to-date and detailed research information of faculty members. The primary scenarios include:
These features are determined from the needs analysis shown in Section 1. The subsequent subsections provide details of the chatbot's architecture and features.
We developed a LINE chatbot system [20] integrated with a laboratory website using AWS services. Figure 1 illustrates the system architecture. We linked the LINE platform and AWS services using the LINE Messaging API [19]. The serverless architecture eliminates the need for individual server maintenance, enhancing the system's resilience against DDoS attacks.
The LINE chatbot operates according to the following workflow:
Furthermore, Lambda interacts with DynamoDB to store user feedback, as detailed in subsequent subsections.
We conducted the needs analysis shown in Section 1 and prioritized the features which our chatbot should have. As a result, the developed LINE chatbot incorporates four key features: research introduction, quiz, external link to a laboratory website, and user evaluation. Each function is explained as follows.
The research introduction function provides an overview of the laboratory's research activities, including individual student projects. Users can access this information by sending the message “Research Content” and then selecting from the following options:
Figure 2 illustrates the chatbot interface after the “Research Content” message is sent.
The quiz function presents users with a series of 10 multiple-choice questions on topics related to cloud computing, cybersecurity, and cryptography. Figure 3 illustrates quiz function. Users initiate the quiz by sending the message “Quiz.” Each question is accompanied by an answer and explanation, which are revealed after users submit their response. This feature not only assesses users' knowledge but also reinforces their understanding of these domains.
The external link function provides a direct link to our laboratory website which allows users to access more detailed information about our laboratory's research activities. The details of our laboratory website are explained in Section 5.
The user evaluation function allows users to provide feedback by sending a message prefixed with “Evaluation:”. Figure 4 illustrates user feedback. This message is then stored in DynamoDB for subsequent analysis.
The operational flow of our chatbot system is depicted in the state transition diagram shown in Figure 5. This diagram outlines the key states and transitions that characterize user interactions with the chatbot, offering a clear overview of its functionality.
The chatbot system comprises the following states and transitions:
A typical interaction flow proceeds as follows:
The laboratory website was designed to be a comprehensive resource for research activities of faculty members. We experimented with different website structures―such as a single-page layout, hierarchical menus, and categorized sections based on research themes―before finalizing the current design. This iterative process helped us determine the most intuitive and informative structure for presenting research content. These insights are valuable for developers and educators designing similar educational platforms.
The laboratory website provides comprehensive information about faculty research activities to students. It can be accessed directly via URL or through the chatbot's external link function. Figure 6 shows the top page of laboratory website. The website offers detailed content on the following research areas:
For more details, users can access each content by choosing the item shown in Figure 7.
This section details the development process of our LINE chatbot, focusing on the practical insights and challenges encountered. While we describe the technical implementation, we emphasize the practice element, highlighting the real-world experiences and lessons learned that can be generalized for broader application.
The chatbot incorporates several key functions: research introduction, quiz modules, external link access, and user evaluation capabilities. Each function was designed with practical considerations and user needs in mind. For example, the research introduction feature provides concise and engaging summaries of ongoing projects, catering to users with varying levels of technical expertise.
Initially, the user evaluation feature suffered from low engagement. To address this, we iteratively adjusted the design based on user feedback by referring Agile Software Development Process [21]. This involved simplifying the feedback mechanism and making the interaction more intuitive. This experience highlights a key practice: actively incorporating user feedback to iteratively improve design and functionality. This approach is crucial for ensuring that the system meets the real-world needs of its users. The details of our Agile Software Development Process are explained in the following subsection.
The chatbot was developed from July to October 2023, using an Agile Software Development Process [21]. We adopted two-week sprints, allowing the team to iteratively plan, implement, and review system features based on user feedback.
The development team consisted of the following roles:
Each sprint began with a planning meeting to identify goals and tasks. Midway through each sprint, we conducted informal testing with students to validate usability. At the end of each sprint, feedback was reviewed, and necessary adjustments were made. This cycle ensured that development remained user-centered and responsive to emerging issues.
This structured yet flexible approach enabled efficient progress while maintaining a strong focus on user experience and educational relevance.
Although the system did not experience any actual DDoS attacks during the study period, we considered DDoS mitigation to be an important design consideration from the outset. This decision was based on several factors.
First, the LINE Messaging API, which serves as the primary interface between users and the system, is a publicly exposed endpoint and could potentially be targeted by malicious traffic. Second, educational systems must remain reliably accessible to students, especially when providing essential research content. Even short periods of downtime could disrupt learning and reduce the system's perceived reliability.
By adopting a serverless architecture using AWS services such as API Gateway and Lambda, we were able to take advantage of automatic scaling and load distribution. This architecture inherently improves resilience to traffic surges and can mitigate the impact of potential DDoS attempts. In this way, DDoS protection was proactively integrated into the system architecture as part of a broader effort to ensure stable, uninterrupted service for educational use.
We adopted serverless architecture using AWS services such as Lambda, API Gateway, and DynamoDB. This decision was driven by the desire to minimize maintenance overhead and enhance system resilience. However, integrating the LINE Messaging API with AWS serverless architecture presented unexpected challenges. We initially struggled with configuring the API Gateway to correctly handle webhook requests from LINE. Through trial and error, we discovered specific configuration settings and workarounds that ensured seamless communication between the two platforms by referring to webhook errors explained in LINE Developers site*4. This experience emphasizes the importance of practical experimentation and documentation when integrating disparate technologies.
The serverless approach offered several benefits:
This experience demonstrates that a serverless architecture can be a viable and advantageous solution for chatbot development, particularly for applications requiring scalability and resilience.
Integrating the LINE Messaging API with AWS Lambda required careful configuration. We documented the key steps involved, including:
This detailed documentation provides a practical guide for other developers seeking to integrate the LINE Messaging API with AWS services. By sharing our specific configuration settings and the challenges we face, we aim to help others avoid potential pitfalls and streamline their development process.
We initially presented the same descriptions as our laboratory website in a prototype. However, it was difficult for students to read all the research contents using our chatbot. They preferred concise summaries about research introductions. This led us to revise our approach and prioritize brevity and clarity.
Compared to the laboratory website, which includes long paragraphs and academic terminology, the chatbot presents research introductions as brief summaries of 3–5 sentences using simplified language. These summaries focus on the research goal, method, and application, avoiding excessive technical jargon.
Based on this experience, we propose the following content design principles for chatbot-based educational systems:
The quiz module in our chatbot is designed to provide an engaging and interactive experience. We implemented the python script for Lambda function to manage the quiz state and provide appropriate responses based on user answers. Below, we detail the key aspects of its implementation, focusing on conversation flow, state management, and response control:
These experiences highlight the importance of iterative design and user feedback in developing engaging and effective chatbot functionalities.
This section has provided a detailed account of the chatbot development process, emphasizing the practical aspects and lessons learned. By sharing our experiences, challenges, and solutions, we aim to provide valuable insights for other developers and practitioners working with similar technologies. This practice-oriented approach contributes to the growing body of knowledge on chatbot development and deployment, promoting the successful application of these technologies in various domains.
Our research, like Noguchi et al. [8], focuses on the educational applications of LINE chatbots, aiming to enhance student engagement and learning through features such as research introduction, quiz, and an external link to a laboratory website.
While Heryandi's research [10] focuses on academic record monitoring, our research shares a similar goal of utilizing chatbots to enhance communication and information sharing within the educational context. The user evaluation function in our chatbot, which allows users to provide feedback, could be further developed into a comprehensive evaluation system, similar to the one proposed by Heryandi, to gather feedback from students and stakeholders.
Building upon Suzuki et al. [9], we extend the use of LINE chatbots beyond lectures, incorporating quizzes and an external link to provide a more comprehensive learning experience.
Our serverless architecture, utilizing AWS Lambda, API Gateway, and DynamoDB, aligns with Rajan's recommendations [15] and enhances system resilience against DDoS attacks. This architecture eliminates the need for individual server maintenance, improving system availability.
Unlike previous research that developed chatbots and websites separately, our integrated approach centralizes information and improves user engagement.
We conducted a usability evaluation of the LINE chatbot with 19 undergraduate students majoring in information engineering. The evaluation was conducted for three months from November 2023 to January 2024. We present both the quantitative analysis of system usage and the qualitative evaluation of usability. The aim is to provide a comprehensive assessment of how students interacted with the chatbot system and how they perceived its usability.
The total number of interactions with the LINE Messaging API integrated with AWS services over three months was 1,967. The daily usage is shown in Figure 12. This figure illustrates specific data on how frequently each feature―such as research introduction, quizzes, external website links, and user evaluations―was used during the three-month period. The average number of interactions is $\frac{1,967}{19} = 103$ per user.
The usage data in Figure 12 provide important insights into how students interacted with the chatbot system. The average interaction count suggests that students engaged with the system multiple times, indicating that it was well-received and functioned effectively as a research information access tool.
The system's interactivity may have contributed to this positive engagement. Unlike static web pages, the chatbot allows users to access only the information they need through structured menu options. This access method likely improved communication efficiency. Moreover, the chatbot's conversational format helps deliver information in concise and manageable units, making it easier for students to absorb complex content.
Figure 12 shows clear peaks in usage on November 15 and 22, December 13, January 17, and January 31. These dates correspond to weekly laboratory sessions and end-of-semester events. This pattern suggests that the chatbot complemented traditional educational activities by providing timely access to relevant content.
The number of free-form feedback entries recorded in DynamoDB via the chatbot's evaluation function was 14. Based on this, we infer that the majority of messages were related to research introduction, quizzes, and external website link. Unfortunately, due to the lack of detailed logging for each function's activeness, it is not possible to determine the exact number of times each feature was utilized during the three months.
During the three-month evaluation period, the system handled approximately 2,000 interactions without requiring manual scaling. Thanks to AWS's serverless architecture, including Lambda and API Gateway, the system automatically scaled to meet demand without performance degradation. This confirmed the scalability and reliability of our architecture under real-world usage conditions.
The evaluation focused on three qualitative criteria designed to assess the chatbot's performance:
We collected 14 free-form feedback comments from users via the chatbot's evaluation function. These comments covered all major functions: research introduction, quiz, external website link, and user evaluation. Table 1 presents the feedback results. Overall, users responded positively, especially regarding the research introduction feature, which was praised for providing detailed and helpful information about student projects.
To gain a clearer understanding of user perceptions, we categorized the 9 feedback comments in Table 1 according to the three qualitative criteria. Each comment was reviewed and assigned to one or more relevant categories. The distribution is as follows:
Some comments addressed multiple criteria, reflecting overlapping user experiences. These findings suggest that users particularly appreciated the intuitive interface and the clarity of information provided by the chatbot. Engagement through interactive features such as the quiz was also viewed favorably. This quantitative analysis reinforces the conclusion that the system addressed key aspects of usability and engagement effectively. Further areas for improvement are discussed in the next subsection.
First, the quiz difficulty was perceived as too high, with suggestions to provide different difficulty levels. To address this, we propose adding more questions and diversifying the content. Currently, questions are categorized into 2–3 genres per research area, but further differentiation by difficulty level is necessary. The improvements for quiz difficulty are as follows.
Second, users found it difficult to finish the quiz. The current mechanism requires sending an arbitrary message to end the quiz, which is not intuitive. The improvements for ending quiz are as follows.
Third, the feedback submission process for the evaluation function was deemed cumbersome due to the requirement of prefixing messages with “Evaluation:”. The improvement for user feedback are as follows.
The chatbot significantly enhanced information dissemination by increasing accessibility and interaction. Key outcomes include:
This paper presented the practical development and evaluation of a LINE chatbot integrated with AWS services, designed to enhance student access to laboratory research information. We adopted a user-centered approach supported by agile software development, serverless architecture, and iterative refinement based on user feedback.
Our chatbot implementation utilized the LINE Messaging API and key AWS services such as Lambda, API Gateway, S3, and DynamoDB. The system provided four main functions: research introduction, quiz, external website link, and user evaluation. These features were designed to be concise, interactive, and easily accessible through mobile devices.
The usability evaluation showed that the chatbot was well-received by students, especially for delivering concise research summaries. Usage data revealed engagement patterns aligned with academic schedules. Based on feedback, we identified areas for improvement, including quiz difficulty, session control, and feedback submission mechanisms.
To address these issues, future work will focus on expanding the content, refining user interactions, and implementing a flexible content management system. In addition, we plan to integrate the ChatGPT API to support more dynamic and context-aware responses, enabling the chatbot to answer complex queries and provide deeper explanations.
By continuously improving the design and functionality of our chatbot system, we aim to create a robust educational tool that not only disseminates information but also fosters student engagement, curiosity, and autonomous learning. We hope that our insights will inform readers the development of similar systems in educational and public service contexts.
Acknowledgments We would like to thank Riku Ishii and Ryo Aragane for their efforts to develop our LINE chatbot and a laboratory website.
Nobuyuki Sugio received his B.E., M.E., and Ph.D. degrees in all Engineering from the Tokyo University of Science in 2002, 2004, and 2017 respectively. He joined NTT DOCOMO INC. as a researcher in 2004. He was a member of Cryptographic Technology Promotion Committee from 2016 to 2021. Since 2021, he has been a faculty member of the Hokkaido University of Science. His current research field is cryptography, especially cryptanalysis for symmetric ciphers. He is a member of IEICE, IPSJ, and IEEJ.
Komei Arasawa received his B.E., M.E., and Ph.D. degrees in all Engineering from the Muroran Institute of Technology in 2016, 2018, and 2021 respectively. Since 2021, he has been a faculty member of the Hokkaido University of Science. His current research field is social computing. He is a member of IEICE and IPSJ.
Shun Matsukawa received his B.E., M.E., and Ph.D. degrees in all Engineering from the Muroran Institute of Technology in 2013, 2015, and 2018 respectively. Since 2021, he has been a faculty member of the Hokkaido University of Science. His current research field is data science. He is a member of IEICE, IPSJ, and ASJ.
Akihiro Suzuki received his B.E., M.E., and Ph.D. degrees in all Engineering from the Hokkaido Institute of Technology in 2007, 2009, and 2012 respectively. He joined Japan Technical Software INC. as an engineer in 2012. Since 2018, he has been a faculty member of the Hokkaido University of Science. His current research field is software engineering. He is a member of IEICE and SPM.
Hiroki Matsuzaki received his B.E., M.E., and Ph.D. degrees in all Engineering from the Hokkaido University in 1992, 1994, and 1997 respectively. He joined Hokkai-Gakuen University as a faculty member in 1998. Since 2008, he has been a faculty member of the Hokkaido University of Science. His current research field is acoustic phonetics. He is a member of IEICE, ASJ, JSLP, and ASA.
会員種別ごとに入会方法やサービスが異なりますので、該当する会員項目を参照してください。