Empathetic Chatbot with Text-to-Speech for Emotional Support: A Retrieval-Augmented Generation Approach
Advances in artificial intelligence have opened significant opportunities for digital mental health support, particularly through empathetic chatbots. However, conventional large language models still face critical limitations, including hallucinated information and an inability to convey empathy effectively through text alone. This study develops an Indonesian-language empathetic chatbot for initial emotional support that combines curated knowledge retrieval, retrieval-augmented generation as a fallback, and text-to-speech output. Following a research and development methodology, a knowledge base of 1,916 question–answer pairs across 577 intent tags was constructed from counseling literature, an Indonesian Ministry of Health mental health handbook, and a translated open dataset. The system adopts a tiered response strategy: user queries are first matched directly against the dataset through exact and fuzzy matching, then through semantic retrieval using pre-trained multilingual sentence embeddings and a vector similarity index, while a lightweight open pre-trained language model generates a response from retrieved context only when no dataset answer is found. A text-to-speech module converts each response into Indonesian audio in approximately 0.8 seconds. All eleven black-box functional test scenarios succeeded. Embedding-based semantic similarity between questions and their reference answers reached an average F-score of 0.7755, compared with an average lexical similarity of 0.21, indicating strong semantic coherence of the knowledge base despite limited word overlap. A mental health nursing specialist rated the responses to eight scenarios at an average of 4.84 out of 5.00 across relevance, factual correctness, coherence, and naturalness, and user acceptance testing with ten respondents yielded an overall score of 88.9%. The synthesized voice remains limited in emotional intonation, and a comparison against a generation-only baseline is left for future work. These findings suggest that a lightweight, retrieval-centered design can provide accessible early emotional support in Indonesian, serving as an adjunct to, rather than a substitute for, mental health professionals.
Authors
- Tristyanti Yusnitasari
Publication Details
- Journal
- Journal of Applied Data Sciences
- Published
- 2026-12-01
- DOI
- https://doi.org/10.47738/jads.v7i4.1577
- Primary Topic
- Digital Mental Health Interventions
- Type
- article
- Field-Weighted Citation Impact
- 0.00