Designing Philosophical AI Conversation Styles: A Practical Guide for Building More Empathetic Chatbots
This article explores how to make AI chatbots more empathetic without sacrificing factual accuracy. It details a layered approach to prompt engineering and intent recognition, helping developers build conversational agents that balance scientific rigor with philosophical nuance.
In today’s rapidly evolving landscape of AI agents and conversational applications, a subtle yet critical engineering challenge often goes unnoticed: the more a model is trained to “be evidence-based,” the more rigid it can become when handling metaphors, value judgments, and metaphysical expressions. This article examines this phenomenon and proposes a practical method for introducing philosophical guidance at the system prompt level. By distinguishing between “verifiable factual claims” and “exploratory, value-based expressions,” we can create more engaging and human-like interactions. We will cover a layered design, a decision-making workflow, and a practical code skeleton to help you get started.
1. The Problem: Why “More Scientific” Can Feel Less Appealing
The default behavior of large language models is shaped by their training objectives, which primarily involve probabilistic prediction over vast text corpora, using “correctness” as a key optimization signal. A side effect of this is that when a user shares a sentence filled with metaphor, poetry, or personal worldview, the model may activate a “correction mode.” This can turn an opening intended for sharing feelings into a debate about facts and definitions.
Typical conflict scenarios include:
- A user expresses a personal aesthetic or life experience, and the model responds with an encyclopedia-style definition.
- A user is engaging in a thought experiment, and the model is eager to point out that “this doesn’t work in physics.”
- A user seeks to be understood, but the model prioritizes outputting “your statement is incorrect.”
From a product perspective, this directly harms conversation retention. Users feel “misunderstood” rather than “helped.”
2. The Core Concept: Defining the Boundary Between Two Discourses
To solve this, the first step is not to change the model, but to change the “rules of conversation.” This requires explicitly defining two types of discourse within the system prompt:
- Empirical Claims: These can be tested by observation, experiment, statistics, or formal systems. Examples include physical constants, chemical reaction formulas, and code execution results.
- Exploratory Expressions: These are used for meaning-making, value ranking, aesthetic experiences, or thought experiments. Their “truth” is more about coherence, explanatory power, and relevance to life.
From an engineering standpoint, we don’t need a perfect philosophical definition. We simply need to give the model a stable, executable heuristic for classification: when the core intent of a user’s statement is to “share, explore, or evaluate” rather than “ask for verifiable facts,” it should prioritize an empathetic and expansive mode. Conversely, when high-risk topics involving safety, law, medicine, or finance arise, it should switch back to a rigorous mode.
3. A Layered Design for System Prompts
A maintainable practice is to break the prompt into four layers, avoiding a single, overly long block of rules:
- Identity and Goal Layer: Defines the assistant’s role as a “collaborative conversational partner” focused on understanding and advancing the user’s intent.
- Discourse Classification Layer: Provides criteria for the two types of discourse and their priorities.
- Response Strategy Layer: Specifies the phrasing structure and taboos for different classification results.
- Safety and Boundary Layer: Addresses high-risk topics, refusal conditions, and expressing uncertainty about facts.
Here is a schematic prompt skeleton (a pseudo-structure, not tied to any specific product API):
[Role] You are a collaborative conversation assistant. Prioritize understanding user intent, then determine the expression style.[Mode Rule]- If the user expresses metaphor/value/aesthetics/thought experiments: Enter exploration mode, first acknowledge the context, then provide optional perspectives.- If the user asks for verifiable facts or high-risk advice: Enter rigorous mode, providing evidence, conditions, and uncertainty.[Style]- Exploration mode is forbidden from correcting definitions in the first sentence; you can use phrases like "In your context... we can also view it from..."[Safety]- Medical/legal/financial/safety: Must be in rigorous mode and prompt for uncertainty.
The benefits of this layered approach are significant: rules are testable, can be rolled out gradually (grayscale release), and can be rolled back. It also allows different business lines to reuse the same “classification layer” while only replacing the “strategy layer.”
4. Context Classification: From Keywords to Intent Recognition
Relying solely on keywords (like “I feel,” “like,” “maybe”) is unreliable. A more robust method is a two-dimensional classification of “Intent + Risk”:
- Intent Dimension: Fact query / Solution finding / Emotional companionship / Value discussion / Creative generation.
- Risk Dimension: Low risk / Needs caution / High risk (safety, health, property, law).
You can use a lightweight rule engine for a preliminary classification, followed by a “self-check” by the model before responding:
def choose_mode(user_text, risk_level):exploratory_cues = ["I think", "like", "maybe", "to me", "if"]if risk_level == "high":return "rigorous"if any(c in user_text for c in exploratory_cues):return "exploratory"return "balanced"
In “balanced” mode, the recommended approach is to “first confirm intent, then provide two types of output”: an empathetic response combined with an optional factual supplement, thus balancing experience and accuracy.
5. Expression Strategy: From “Correction” to “Juxtaposition”
The key to philosophical guidance is not to make the model “less scientific,” but to teach it to juxtapose perspectives. For example, when faced with an expression like “The fountain is the source of life,” exploration mode can use a three-step method:
- Acknowledge: Restate the core imagery from the user’s context.
- Expand: Offer interpretive space for this imagery at humanistic, historical, or metaphorical levels.
- Optional Bridge: If the user requires it, provide scientific facts as a supplement, not as a rebuttal.
Example output structure:
In your expression, "source" seems to emphasize vitality and circulation.From a metaphorical tradition, water is often seen as a symbol of renewal and nourishment;if you are also interested, I can add facts about the material cycle of water in ecosystems.
This structure demotes “facts” from a “referee” to a “resource,” significantly reducing confrontation.
6. Evaluation and Iteration: Beyond Benchmark Scores
Optimizing conversational style requires new evaluation dimensions:
- Intent Hit Rate: Does it choose the mode according to the user’s true intent?
- Empathy Satisfaction: Manual or questionnaire-style scoring.
- Factual Accuracy: No degradation in rigorous mode.
- Safety Compliance Rate: Zero omissions in high-risk scenarios.
It is recommended to establish an “adversarial sample set” covering metaphors, irony, value conflicts, and pseudo-scientific inducement for regression testing. Use grayscale and A/B testing during rollout, observing retention, conversation depth, and complaint rates.
7. Common Pitfalls
- “Philosophizing” all problems, leading to vague factual answers.
- Overly long and conflicting prompts, causing model behavior drift.
- Lacking risk stratification, leading to exploration mode being misused in medical or financial scenarios.
- Only changing the phrasing without changing the evaluation, making it impossible to prove the benefits.
8. Conclusion
Making conversational models “more human” does not mean making them “less rigorous.” Through discourse classification, layered prompts, and juxtaposed expression, developers can achieve an engineering-controlled balance between factual accuracy and empathetic experience. If your business runs on a general cloud environment like Baidu AI Cloud, you can also precipitate the classification layer and evaluation set into reusable modules. By combining log services with monitoring alerts, you can continuously iterate on dialogue quality.
