The Ontology Driven E-Commerce Chatbot for Fashion Industry

  • Maryam Mairaj Department of Computer Engineering, Sir Syed University of Engineering and Technology, Karachi. Pakistan
  • Shakil Ahmed Department of Computer Science, National University of Computer and Emerging Sciences, FAST, Karachi. Pakistan
  • Kiran Hidayat Department of Software Engineering, Sir Syed University of Engineering and Technology, Karachi. Pakistan
  • Aamir Zeb Shaikh NED University
  • Shabbar Naqvi Teaching Fellow, University of Leeds, UK
Keywords: chatbot, Dialogflow, ontology, NLP, fashion-industry

Abstract

Conventional chatbots in fashion e-commerce rely on keyword matching and lack the semantic structure needed to correctly handle multi-entity product queries. This leads to inaccurate, context-blind responses that frustrate users and reduce platform engagement. This paper proposes and evaluates an ontology-driven chatbot system for fashion e-commerce and compares it directly against a non-ontology baseline built on the same dataset. Both systems were developed using Google Dialogflow for natural language processing, with product data collected through Python web scraping from the Alkaram fashion website. The ontology knowledge base was engineered in OWL 2 using Protégé and queried via SPARQL, with a class hierarchy covering product categories, attributes, and brand entities. To evaluate both models, five analysts conducted structured 10-minute conversations using a fixed set of 50 product queries, scoring each response across seven criteria, including accuracy, context retention, and grammatical quality, on a 0 to 9 scale. The ontology-based system achieved 88% accuracy compared to 67% for the non-ontology model, a 21% improvement. It also outperformed across all other criteria, with inter-analyst agreement within 0.5 points confirming evaluation reliability. These results show that integrating an OWL/SPARQL ontology into a Dialogflow-based chatbot meaningfully improves product query handling in fashion e-commerce, and the approach is practical enough to scale to other retail domains.

Downloads

Download data is not yet available.

References

Abdulla H, Eltahir AM, Alwahaishi S, Saghair K, Platos J, Snasel V, Chatbots development using natural language processing: a review. 2022 26th International conference on circuits, systems, communications and computers (CSCC); 2022: IEEE. https://doi.org/10.23919/CSCC55931.2022.9860905

Agarwal R, Wadhwa M. Review of state-of-the-art design techniques for chatbots. SN Computer Science, Vol. 1, No.2, pp. 246, 2020. https://doi.org/10.1007/s42979-020-00255-3

Almansor EH, Hussain FK, Survey on intelligent chatbots: State-of-the-art and future research directions. Conference on Complex, Intelligent, and Software Intensive Systems; 2019, Springer. https://doi.org/10.1007/978-3-030-22354-0_47

El Asikri M, Knit S, Chaib H. Using web scraping in a knowledge environment to build ontologies using python and scrapy. European Journal of Molecular & Clinical Medicine. Vol. 7, No. 03, 2020.

Vebrianti R, Aras M, Putri MSS, Swandewi IA. AI chatbots in e-commerce: Enhancing customer engagement, satisfaction and loyalty. PaperASIA. Vol 41, No.2b, pp. 248-260, 2025. https://doi.org/10.62090/paperasia.v41i2b.254

Skrebeca J, Kalniete P, Goldbergs J, Pitkevica L, Tihomirova D, Romanovs A. Modern development trends of chatbots using artificial intelligence (AI). 2021 62nd International Scientific Conference on Information Technology and Management Science of Riga Technical University (ITMS); 2021: IEEE.

Chung M, Ko E, Joung H, Kim SJ. Chatbot e-service and customer satisfaction regarding luxury brands. Journal of business research. Vol 117, pp. 587-595, 2020. https://doi.org/10.1016/j.jbusres.2018.10.004

Cheng X, Cohen J, Mou J. AI-enabled technology innovation in e-commerce. Journal of Electronic Commerce Research. Vol. 24, No.1, pp. 1-6, 2023. https://doi.org/10.1108/JEC-2023-0001

Gautam V, Sharma V. The Mediating Role of Customer Relationship on the Social Media Marketing and Purchase Intention Relationship with Special Reference to Luxury Fashion Brands. Journal of Promotion Management https://doi.org/10.1080/10496491. 2017.1323262

Landim A, Pereira A, Vieira T, de B. Costa E, Moura J, Wanick V, et al. Chatbot design approaches for fashion E-commerce: an interdisciplinary review. International Journal of Fashion Design, Technology and Education. Vol. 15, No.2, pp. 200-210, 2022. https://doi.org/10.1080/17543266.2021.1990417

Necula S-C, Păvăloaia V-D. AI-driven recommendations: A systematic review of the state of the art in e-commerce. Applied Sciences. Vol. 13, No. 9, pp. 5531, 2023. https://doi.org/10.3390/app13095531

Ayanouz S, Abdelhakim BA, Benhmed M. A smart chatbot architecture based NLP and machine learning for health care assistance. Proceedings of the 3rd international conference on networking, information systems & security; 2020. https://doi.org/10.1145/ 3386723.3387897

Antoniou C, Kravari K, Bassiliades N. Semantic requirements construction using ontologies and boilerplates. Data & Knowledge Engineering. Vol.152, 102323, 2024. https://doi.org/10.1016/ j.datak.2024.102323

Zhou Q, Sacramento C, Martinaityte I. Work meaningfulness and performance among healthcare professionals: The role of professional respect and participative management. Journal of Business Research. Vol. 163, 113908, 2023. https://doi.org/10.1016/ j.jbusres.2023.113908

Shafi PM, Jawalkar GS, Kadam MA, Ambawale RR, Bankar SV. AI—assisted chatbot for e-commerce to address selection of products from multiple products. Internet of Things, Smart Computing and Technology: A Roadmap Ahead: Springer; 2020. p. 57-80. https://doi.org/10.1007/978-3-030-39047-1_3

Casas J, Tricot M-O, Abou Khaled O, Mugellini E, Cudré-Mauroux P. Trends & methods in chatbot evaluation. Companion Publication of the 2020 International Conference on Multimodal Interaction; 2020.

Chen Q, Lu Y, Gong Y, Xiong J. Can AI chatbots help retain customers? Impact of AI service quality on customer loyalty. Internet Research. Vol. 33, No. 6, pp. 2205-2243, 2023. https://doi.org/10.1108/INTR-09-2021-0686

Ben Mahria B, Chaker I, Zahi A. A novel approach for learning ontology from relational database: from the construction to the evaluation. Journal of Big Data. Vol. 8, No. 1, pp.25, 2021. https://doi.org/10.1186/s40537-021-00412-2.

Khan MY. A novel approach for ontology-driven information retrieving chatbot for fashion brands. International Journal of Advanced Computer Science and Applications (IJACSA). 2019. https://doi.org/ 10.14569/IJACSA.2019.0100972.

Mishra MK, Pal R, Nayak R. Chatbots and AI in fashion industry. use of digital and advanced technologies in the fashion supply chain: Springer; 2025. p. 41-66. https://doi.org/10.1007/978-981-97-4910-0_3-

Chen ER. Not Just a Chat: Transforming the Luxury Fashion Shopping Experience through AI Chatbots. 2025. unpublished manuscript, 2025.

Qi L, Ko E, Cho M. AI chatbots with visual search: Impact on luxury fashion shopping behavior. Journal of Global Scholars of Marketing Science. Vol. 35, No. 2, pp. 99-117, 2025. https://doi.org/10.1080/21639159.2024.2367802-4017

Kanthed S. The Role of Chatbots in Reducing Customer Support Response Time in E-Commerce. International Journal of Scientific Research in Engineering and Management. Vol. 7, No. 12, pp. 1-7, 2023. https://doi.org/10.55041/IJSREM26047-

Nagarhalli TP, Vaze V, Rana N. A review of current trends in the development of chatbot systems. 2020 6th International conference on advanced computing and communication systems (ICACCS); 2020: IEEE. https://doi.org/10.1109/ICACCS48705.2020.9074420.

Ngai EW, Lee MC, Luo M, Chan PS, Liang T. An intelligent knowledge-based chatbot for customer service. Electronic Commerce Research and Applications. Vol. 50, 101098, 2021. https://doi.org/10.1016/ j.elerap.2021.101098

Shum H-Y, He X-d, Li D. From Eliza to XiaoIce: challenges and opportunities with social chatbots. Frontiers of Information Technology & Electronic Engineering. Vol. 19, No.1, pp. 10-26, 2018. https://doi.org/10.1631/FITEE.1700826

Ramki R, Gopi V, Markan R, Natarajan S, Rajalakshmi M. AI-powered chatbots in customer service: Impact on brand loyalty and conversion rates. Economic Sciences. Vol. 20, No.2, pp. 190-203, 2024. https://doi.org/10.14505/es.v20.1(37).

Oguntosin V, Olomo A. Development of an E‐Commerce Chatbot for a University Shopping Mall. Applied Computational Intelligence and Soft Computing. 2021;2021(1):6630326. . https://doi.org/10.1155/2021/6630326

Cheng X, Bao Y, Zarifis A, Gong W, Mou J. Exploring consumers' response to text-based chatbots in e-commerce: the moderating role of task complexity and chatbot disclosure. Internet Research. Vol. 32, No. 2, pp. 496-517, 2022. https://doi.org/10.1108/INTR-08-2020-0460

Chen S, Wu Y, Deng F, Zhi K. How does ad relevance affect consumers' attitudes toward personalized advertisements and social media platforms? The role of information co-ownership, vulnerability, and privacy cynicism. Journal of Retailing and Consumer Services. Vol. 73,103336, 2023. https://doi.org/10.1016/j.jretconser.2023.103336

Reif J, Jeleniewski T, Gill MS, Gehlhoff F, Fay A. Chatbot-based ontology interaction using large language models and domain-specific standards. 2024 IEEE 29th International Conference on Emerging Technologies and Factory Automation (ETFA); 2024: IEEE. https://doi.org/10.48550/arXiv.2408.00800

Ramki DR. AI-Powered Chatbots in Customer Service: Impact on Brand Loyalty and Conversion Rates, Economic Sciences. 2024. https://doi.org/10.69889/vs5gtv52

Baci A, Friedrichs L, Demir C, Ngomo A-CN. OWLAPY: A Pythonic Framework for OWL Ontology Engineering. arXiv preprint arXiv:251108232. 2025. https://doi.org/10.48550/arXiv.2511.08232

Lata K, Singh P, Dutta K. A comprehensive review on feature set used for anaphora resolution. Artificial Intelligence Review. Vol 54, No. 4, pp. 2917-3006, 2021. https://doi.org/10.1007/s10462-020-09917-3

Kakad S, Dhage S. Semantic web: Knowledge graph of digital minimalism ontology. 2022 3rd International Conference for Emerging Technology (INCET); 2022: IEEE. https://doi.org/10.1109/INCET54531.2022.9824657

Alhindi A, Alsaidi A, Munshi A. Vehicle Routing Optimization for Non-Profit Organization Systems. Information. Vol. 13, No.8, pp.374, 2022. https://doi.org/10.3390/info13080374

Alhafiz V, Adiguna MA. Pengembangan Aplikasi Web Scraping Untuk Pengumpulan Data Harga Produk E-Commerce Menggunakan Python (Studi Kasus: Tokopedia). JUPIK: Jurnal Penelitian Ilmu komputer. Vol. 2, No. 2, pp. 1-13, 2024.

Sharma GD, Yadav A, Chopra R. Artificial intelligence and effective governance: A review, critique and research agenda. Sustainable Futures. Vol. 2, 100004., 2020. https://doi.org/10.1016/ j.sftr.2019.100004

Patel N, Trivedi S. Leveraging predictive modeling, machine learning personalization, NLP customer support, and AI chatbots to increase customer loyalty. Empirical Quests for Management Essences. Vol. 3, No.3, pp. 1-24, 2020.

Published
2026-06-30
How to Cite
Maryam Mairaj, Shakil Ahmed, Kiran Hidayat, Shaikh, A. Z., & Shabbar Naqvi. (2026). The Ontology Driven E-Commerce Chatbot for Fashion Industry. EMITTER International Journal of Engineering Technology, 14(1), 98-120. https://doi.org/10.24003/emitter.v14i1.1055
Section
Articles