# PromptSense: Sentiment-Aware Mental Health Chatbot with Dynamic Prompting

DevFeed: [PromptSense: Sentiment-Aware Mental Health Chatbot with Dynamic Prompting](<https://devfeed.tech/articles/promptsense-sentiment-aware-mental-health-chatbot-with-dynamic-prompting-108011.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.38044>)

Author: Sugi Lee, Jianlong Zhou, Jing sUN

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [api](<https://devfeed.tech/tags/api.md>), [chatbot](<https://devfeed.tech/tags/chatbot.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [depression](<https://devfeed.tech/tags/depression.md>), [empathy](<https://devfeed.tech/tags/empathy.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [framework](<https://devfeed.tech/tags/framework.md>), [inference](<https://devfeed.tech/tags/inference.md>), [insights](<https://devfeed.tech/tags/insights.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [mental-health](<https://devfeed.tech/tags/mental-health.md>), [model-inference](<https://devfeed.tech/tags/model-inference.md>), [perspective](<https://devfeed.tech/tags/perspective.md>), [prompt-engineering](<https://devfeed.tech/tags/prompt-engineering.md>), [prompting](<https://devfeed.tech/tags/prompting.md>), [relevance](<https://devfeed.tech/tags/relevance.md>), [responses](<https://devfeed.tech/tags/responses.md>), [risk](<https://devfeed.tech/tags/risk.md>), [safety](<https://devfeed.tech/tags/safety.md>), [strategies](<https://devfeed.tech/tags/strategies.md>)

## AI overview

PromptSense combines sentiment and depression analysis with rule-based filtering before model inference, then dynamically builds prompts from emotional and risk-related signals to guide chatbot responses. The paper evaluates four model strategies and two prompt-engineered variants on empathy, helpfulness, clarity, relevance, safety, and toxicity using the Perspective API. The abstract reports that prompt engineering outperformed DSFT and RLAIF by 1.8% and 1.1%, respectively; it does not provide further methodological or result details.

## Source excerpt

arXiv:2610.38044v1 Announce Type: new Abstract: Current Large Language Models (LLMs)-based mental health chatbots often lack sufficient empathy, contextual awareness, and safety mechanisms, potentially leading to ineffective or harmful interactions. This paper proposes a novel framework that integrates sentiment and depression analysis with a rule-based filtering mechanism prior to model inference. By dynamically constructing prompts based on emotional and risk-related insights, the framework aims to significantly improve the contextual relevance, empathy, and risk-aware of model-generated responses. We evaluated four model strategies and two prompt engineered variants across qualitative metrics such as empathy, helpfulness, clarity, relevance, safety, as well as toxicity assessments using the Perspective API. Experimental results indicate that the prompt engineering approaches outperforms DSFT and RLAIF by 1.8\% and 1.1\% respectively.