Journal of Applied Data Sciences
Vol 7, No 4: December 2026

Empathetic Chatbot with Text-to-Speech for Emotional Support: A Retrieval-Augmented Generation Approach

Tristyanti Yusnitasari (Unknown)
Diasti Alfiana (Unknown)
Herni Susanti (Unknown)
Nurasiah Nurasiah (Unknown)
Indrajani Sutedja (Unknown)



Article Info

Publish Date
29 Nov 2026

Abstract

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.

Copyrights © 2026






Journal Info

Abbrev

JADS

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

One of the current hot topics in science is data: how can datasets be used in scientific and scholarly research in a more reliable, citable and accountable way? Data is of paramount importance to scientific progress, yet most research data remains private. Enhancing the transparency of the processes ...