WhatsApp Hybrid Chatbot Architecture Rasa-DeepSeek: Design and Performance Evaluation

Iqbaluddin Syam Had, Fandy Setyo Utomo, Giat Karyono, Dwi Putriana Nuramanah Kinding

Abstract


This study designed and evaluated a hybrid chatbot for a domain-specific application by addressing two main issues: limited NLU coverage and the variability of latency and cost when all queries are routed directly to an LLM. The proposed solution integrates a deterministic Rasa-based pipeline with a DeepSeek fallback mechanism. In this architecture, Rasa handles NLU processing, rules, stories, and context storage for mk and jk, while the LLM is only invoked when the NLU confidence score falls below a defined threshold. The methodology includes end-to-end implementation through a Node.js bridge connected to Rasa, functional testing to validate the intent–entity–action flow, and performance testing using load (stress) testing across two access paths: the Rasa REST endpoint and the Node-to-Rasa bridge. Meanwhile, the LLM pipeline was profiled separately through instrumented action calls. The results indicate that domain-specific conversations were successfully answered using curated knowledge, and both deterministic access paths met the service level objective (SLO), achieving a median latency of approximately 32 milliseconds with no observed errors. This study contributes by demonstrating that a hybrid chatbot architecture separating deterministic and generative pipelines can maintain SLO compliance in domain-specific settings. In addition, it highlights limitations of LLMs in understanding domain ontologies, reinforcing the need for semantic guardrails.

Keywords


chatbot; deepseek; natural language processing; personalization; rasa framework

Full Text:

PDF

References


A. W. Paracha, U. Arshad, R. H. Ali, Z. Ul Abideen, M. H. Shah, T. Ali Khan, A. Z. Ijaz, N. Ali, A. B. Siddique, “Leveraging AI and NLP in Chatbot Development: An Experimental Study,” in 2023 International Conference on Frontiers of Information Technology (FIT), Dec. 2023, pp. 172–177. DOI: 10.1109/FIT60620.2023.00040.

M. Foosherian, H. Purwins, P. Rathnayake, T. Alam, R. Teimao, and K.-D. Thoben, “Enhancing Pipeline-based Conversational Agents with Large Language Models,” Sept. 07, 2023, arXiv: arXiv:2309.03748. DOI: 10.48550/arXiv.2309.03748.

S. V and S. Sampangi, “Implementation of an Educational Chatbot using Rasa Framework,” Int. J. Innov. Technol. Explor. Eng., Vol. 11, pp. 29–35, Aug. 2022, DOI: 10.35940/ijitee.G9189.0811922.

K. G. Yager, “Domain-Specific ChatBots for Science using Embeddings,” Digit. Discov., Vol. 2, No. 6, pp. 1850–1861, 2023, DOI: 10.1039/D3DD00112A.

R. Browne, M. M. Alam, Q. Saleem, A. Hyder, T. Kudo, F. D’Agresti, M. Maggio, K. Homma, E.-J. Siitonen, N. Kounosu, K. Jokinen, M. McTear, G. Napolitano, K. Kim, J. Tsujii, R. Wieching, T. Ogawa, and Y. Taki, “Reflective Dialogues with a Humanoid Robot Integrated with an LLM and a Curated NLU System for Positive Behavioral Change in Older Adults,” Electronics, Vol. 13, No. 22, Art. No. 22, Jan. 2024, DOI: 10.3390/electronics13224364.

W. Shalaby, A. Arantes, T. GonzalezDiaz, and C. Gupta, “Building Chatbots from Large Scale Domain-Specific Knowledge bases: Challenges and Opportunities,” in 2020 IEEE International Conference on Prognostics and Health Management (ICPHM), Detroit, MI, USA: IEEE, June 2020, pp. 1–8. DOI: 10.1109/ICPHM49022.2020.9187036.

D. Wulandari and J. S. Wibowo, “Implementasi Chatbot menggunakan Framework Rasa untuk Layanan Informasi Wisata di Kota Pati,” INTECOMS J. Inf. Technol. Comput. SCI., Vol. 6, No. 2, pp. 794–801, Sept. 2023, DOI: 10.31539/intecoms.v6i2.7107.

V. S. Garófalo-Jerez, W. Hojas-Mazo, M. Moreno-Espino, Y. Villuendas-Rey, A. López-González, F. Maciá-Pérez, and J. V. Berná-Martínez, “RESTful API for Intent Recognition based on RASA,” in Advances in Soft Computing, L. Martínez-Villaseñor and G. Ochoa-Ruiz, Eds., Cham: Springer Nature Switzerland, 2025, pp. 211–223. DOI: 10.1007/978-3-031-75543-9_16.

L. Anindyati, “Analisis dan Perancangan Aplikasi Chatbot menggunakan Framework Rasa dan Sistem Informasi Pemeliharaan Aplikasi (Studi Kasus: Chatbot Penerimaan Mahasiswa Baru Politeknik Astra),” J. Teknol. Inf. Dan Ilmu Komput., Vol. 10, No. 2, Art. No. 2, Apr. 2023, DOI: 10.25126/jtiik.20231026409.

M. Joshi and R. K. Sharma, “An Analytical Study and Review of Open Source Chatbot Framework, RASA,” Int. J. Eng. Res. Technol., Vol. 9, No. 6, June 2020, DOI: 10.17577/IJERTV9IS060723.

N. Darapaneni, A. R. Paduri, U. Tank, B. KanthaSamy, A. Ranjan, and R. Krisnakumar, “Conversational AI: A Study on Capabilities and Limitations of Dialogue based System,” in Multi-disciplinary Trends in Artificial Intelligence, R. Morusupalli, T. S. Dandibhotla, V. V. Atluri, D. Windridge, P. Lingras, and V. R. Komati, Eds., Cham: Springer Nature Switzerland, 2023, pp. 503–512. DOI: 10.1007/978-3-031-36402-0_47.

A. Liu et al., “DeepSeek-V3 Technical Report,” Feb. 18, 2025, arXiv: arXiv:2412.19437. DOI: 10.48550/arXiv.2412.19437.

DeepSeek, “Pricing Details (USD).” Accessed: Oct. 11, 2025. [Online]. Available: https://api-docs.deepseek.com/quick_start/pricing-details-usd

J. Jeong and J. Ahn, “Accelerating LLM Serving for Multi-Turn Dialogues with Efficient Resource Management,” in Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, New York, NY, USA: Association for Computing Machinery, 2025, pp. 1–15. Accessed: Oct. 10, 2025. [Online]. Available: https://doi.org/10.1145/3676641.3716245

M. R. A. Fajri and B. Hartono, “Pengembangan Aplikasi Chatbot Telegram menggunakan Framework Rasa untuk Pelayanan Administrasi di Perguruan Tinggi Universitas Stikubank,” J. JTIK J. Teknol. Inf. Dan Komun., Vol. 8, No. 1, Art. No. 1, Jan. 2024, DOI: 10.35870/jtik.v8i1.1370.

A. D. Ferdian and S. N. Anwar, “Pengembangan Chatbot untuk Informasi Wisata Interaktif di Tangerang Selatan menggunakan Framework Rasa,” J. Teknol. Dan Sist. Inf. Bisnis, Vol. 5, No. 4, Art. No. 4, Oct. 2023, DOI: 10.47233/jteksis.v5i4.953.

Y. Windiatmoko, R. Rahmadi, and A. F. Hidayatullah, “Developing Facebook Chatbot based on Deep Learning using RASA Framework for University Enquiries,” IOP Conf. Ser. Mater. SCI. Eng., Vol. 1077, No. 1, p. 012060, Feb. 2021, DOI: 10.1088/1757-899X/1077/1/012060.

A. Rachman, I. Mardhiyah, and M. Jannah, “Implementasi Chatbot FAQ pada Aplikasi Monev Kinerja Direktorat Jenderal Anggaran menggunakan Framework Rasa Open Source,” klik kaji. ilm. inform. dan Komput., Vol. 4, No. 1, Art. No. 1, Aug. 2023, DOI: 10.30865/klik.v4i1.1020.

A. Pratiwi, M. P. Utami, and Y. Valentia, “WhatsApp Story as a Medium of Digital Marketing Communication for MSME in Bogor Regency,” AICCON, Vol. 1, pp. 48–60, Feb. 2024.

“STIFIn Official Website.” Accessed: Oct. 10, 2025. [Online]. Available: https://stifin.com/

A. Raza, M. Latif, M. U. Farooq, M. A. Baig, M. A. Akhtar, and Waseemullah, “Enabling Context-based AI in Chatbots for Conveying Personalized Interdisciplinary Knowledge to Users,” Eng. Technol. Appl. SCI. Res., Vol. 13, No. 6, Art. No. 6, Dec. 2023, DOI: 10.48084/etasr.6313.




DOI: https://doi.org/10.32520/stmsi.v15i2.5791

Article Metrics

Abstract view : 4 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.