AI Persona-Based Student Counseling Chatbot Using Large Language Model, RAG, and Prompt Engineering

Authors

  • Vina Zahrotun Nazah Bina Insani University
  • Rully Pramudita Bina Insani University

DOI:

https://doi.org/10.35194/mji.v18i1.6449

Keywords:

AI Persona , Student Counseling Chatbot , Large Language Model , Retrieval-Augmented Generation , Prompt engineering , LLM-as-a-Judge

Abstract

Chatbots are increasingly used in student counseling services because they offer easy access, fast responses, and flexible availability. However, conventional chatbots often produce generic responses, have limited contextual understanding, and provide insufficient emotional support. This study aims to develop an AI Persona-based student counseling chatbot using a Large Language Model (LLM), Retrieval-Augmented Generation (RAG), and prompt engineering to generate relevant, contextual, and empathetic responses. The study uses a Research and Development (R&D) approach with the CRISP-DM framework. The system uses Gemini 2.5 Flash as the generative model, multilingual-e5-small as the embedding model, and FAISS as the vector index. Four institutional documents and campus service data are processed through chunking, embedding, and semantic retrieval. Evaluation is conducted using LLM-as-a-Judge on 45 scenarios and User Acceptance Testing (UAT) with 20 students. The LLM-as-a-Judge evaluation produces an average score of 4.47 out of 5, with the highest score in Context Relevance at 4.70. UAT achieves 91% user acceptance in the very good category, with naturalness and empathy as the highest indicator at 95%. The results show that integrating LLM, RAG, and prompt engineering can improve chatbot response quality without fine-tuning, although further development is needed in multimodal document support, local model deployment, and retrieval mechanism improvement.

References

[1] A. N. Rahman, “PENERAPAN BK DI PERGURUAN TINGGI DALAM MENGATASI KEJENUHAN BELAJAR MAHASISWA MENGGUNAKAN TEKNIK SELF HEALING,” Jurnal Pelayanan Bimbingan dan Konseling, vol. 7, no. 1, Feb. 2024, Accessed: Mar. 07, 2026. [Online]. Available: https://ppjp.ulm.ac.id/journals/index.php/jpbk/article/view/14805

[2] R. N. Gultom, E. Yakub, K. Khadijah, P. Studi, B. Konseling, and U. Riau, “Penyesuaian Diri Mahasiswa Baru Tahun Pertama Fkip UNRI (Jurusan Ilmu Pendidikan) dalam Menghadapi Kehidupan Perkuliahan,” Jurnal Pendidikan Tambusai, vol. 7, no. 2, pp. 15242–15249, Aug. 2023, doi: 10.31004/JPTAM.V7I2.8798.

[3] Sukarman and Aminullah, “Problematika Bimbingan dan Konseling pada Perguruan Tinggi,” JISHUM (Jurnal Ilmu Sosial dan Humaniora), vol. 3, no. 4, pp. 671–680, 2025, doi: https://doi.org/10.57248/jishum.v3i4.644.

[4] M. Fahmi Ajiz, M. Faza, S. Ramadan, H. Dzalfa Mutia, and P. D. Yanuari, “Pengembangan Aplikasi Chatbot Informasi Akademik Berbasis Web Menggunakan Metode Artificial Intelligence Markup Language (AIML),” Media Jurnal Informatika, vol. 15, no. 2, pp. 143–148, Dec. 2023, doi: 10.35194/MJI.V15I2.3316.

[5] A. Nurkhairani, O. D. Arwansyah, and R. Ginting, “Tabularasa : Jurnal Ilmiah Magister Psikologi Menemukan Kenyamanan dalam Algoritma : Fenomena Curhat ke AI dalam Era Digital Finding Convenience in Algorithms : The Phenomenon of Venting to AI in the Digital Age,” vol. 7, no. 2, pp. 80–89, 2025, doi: 10.31289/tabularasa.v7i2.5801.

[6] G. Yoseppin, P. A. M. Nagita Dewi, and Y. K. Purba, “Fenomena Chatbot AI Sebagai Teman Curhat: Implikasi Pada Hubungan Antarpribadi di Era Digital,” Calathu: Jurnal Ilmu Komunikasi, vol. 7, no. 1, pp. 45–53, May 2025, doi: 10.37715/CALATHU.V7I1.5376.

[7] S. Minaee et al., “Large Language Models: A Survey,” Mar. 2025, Accessed: Mar. 12, 2026. [Online]. Available: http://arxiv.org/abs/2402.06196

[8] Y. Chen et al., “Structured Dialogue System for Mental Health: An LLM Chatbot Leveraging the PM+ Guidelines,” Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), vol. 15170 LNAI, pp. 262–271, 2024, doi: 10.1007/978-981-96-1151-5_27.

[9] X. Zhang and Z. Luo, “Advancing Conversational Psychotherapy: Integrating Privacy, Dual-Memory, and Domain Expertise with Large Language Models,” 2024, [Online]. Available: http://arxiv.org/abs/2412.02987

[10] Q. Guo, J. Tang, W. Sun, H. Tang, Y. Shang, and W. Wang, “SouLLMate: An Application Enhancing Diverse Mental Health Support with Adaptive LLMs, Prompt Engineering, and RAG Techniques,” Oct. 2024, Accessed: Jun. 22, 2026. [Online]. Available: https://arxiv.org/pdf/2410.16322

[11] “Gemini 2.5 Flash | Gemini API | Google AI for Developers.” Accessed: Jun. 22, 2026. [Online]. Available: https://ai.google.dev/gemini-api/docs/models/gemini-2.5-flash?hl=id

[12] L. Wang, N. Yang, X. Huang, L. Yang, R. Majumder, and F. Wei, “Multilingual E5 Text Embeddings: A Technical Report,” Feb. 2024, Accessed: Jun. 22, 2026. [Online]. Available: https://arxiv.org/pdf/2402.05672

[13] M. Douze et al., “the Faiss Library,” IEEE Trans. Big Data, Jan. 2025, doi: 10.1109/TBDATA.2025.3618474.

[14] L. Zheng et al., “Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena,” Adv. Neural Inf. Process. Syst., vol. 36, Jun. 2023, Accessed: May 25, 2026. [Online]. Available: https://arxiv.org/pdf/2306.05685

[15] Y. Gao et al., “Retrieval-Augmented Generation for Large Language Models: A Survey,” Proceedings - 2024 Conference on AI, Science, Engineering, and Technology, AIxSET 2024, pp. 166–169, Dec. 2023, doi: 10.1109/AIxSET62544.2024.00030.

[16] C. G. Møller, K. E. Ang, M. de Lourdes Bongiovanni, M. S. Khalid, and J. Wu, “Metrics of Success: Evaluating User Satisfaction in AI Chatbots,” ICAAI 2024 - Conference Proceedings of the 2024 8th International Conference on Advances in Artificial Intelligence, pp. 168–173, Mar. 2025, doi: 10.1145/3704137.3704182.

[17] S. Wu et al., “Retrieval-Augmented Generation for Natural Language Processing: A Survey,” Jul. 2024, Accessed: Jun. 22, 2026. [Online]. Available: https://arxiv.org/pdf/2407.13193

[18] P. Sahoo, A. K. Singh, S. Saha, V. Jain, S. Mondal, and A. Chadha, “A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications,” Feb. 2024, Accessed: Jun. 22, 2026. [Online]. Available: https://arxiv.org/pdf/2402.07927

[19] S. Borsci et al., “The Chatbot Usability Scale: the Design and Pilot of a Usability Scale for Interaction with AI-Based Conversational Agents,” Personal and Ubiquitous Computing 2021 26:1, vol. 26, no. 1, pp. 95–119, Jul. 2022, doi: 10.1007/S00779-021-01582-9.

[20] T. Liu et al., “The Illusion of Empathy: How AI Chatbots Shape Conversation Perception,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 13, pp. 14327–14335, Nov. 2024, doi: 10.1609/aaai.v39i13.33569.

Downloads

Published

2026-06-29

How to Cite

Nazah, V. Z., & Pramudita, R. (2026). AI Persona-Based Student Counseling Chatbot Using Large Language Model, RAG, and Prompt Engineering. Media Jurnal Informatika, 18(1), 153–163. https://doi.org/10.35194/mji.v18i1.6449

Similar Articles

<< < 1 2 3 > >> 

You may also start an advanced similarity search for this article.