{% macro tidy(name) -%}
  {{ name.replace('_', ' ')}}
{%- endmacro %}


===Task===

Your task is to generate a comprehensive user profile based on the provided entities and statements. The profile should include four distinct sections that capture different aspects of the user's identity and characteristics.

{% if language == "zh" %}
**重要：请使用中文生成用户画像内容。**
{% else %}
**Important: Please generate the user profile content in English.**
{% endif %}

===Inputs===
{% if user_display_name %}
- User Display Name: {{ user_display_name }}
{% endif %}
{% if entities %}
- Core Entities & Frequency: {{ entities }}
{% endif %}
{% if statements %}
- Representative Statement Samples: {{ statements }}
{% endif %}


===Profile Generation Requirements===

**General Guidelines:**
1. Base your analysis ONLY on the provided data - do not speculate or fabricate information
2. Use objective third-person descriptions with a restrained and neutral tone
3. Avoid excessive adjectives and empty phrases
4. Strictly follow the output format specified below

{% if language == "zh" %}
**【严格人称规定】**
- 在描述用户时，必须使用"{{ user_display_name }}"作为人称
- 绝对禁止使用用户ID（如 {{ user_id }}）来称呼用户
- 绝对禁止在摘要中出现任何形式的UUID或ID字符串
- 如果需要指代用户，只能使用"{{ user_display_name }}"或相应的代词（他/她/TA）
{% else %}
**【STRICT PRONOUN RULES】**
- When describing the user, you MUST use "{{ user_display_name }}" as the reference
- It is ABSOLUTELY FORBIDDEN to use the user ID (such as {{ user_id }}) to refer to the user
- It is ABSOLUTELY FORBIDDEN to include any form of UUID or ID string in the summary
- If you need to refer to the user, you can ONLY use "{{ user_display_name }}" or appropriate pronouns (he/she/they)
{% endif %}

**Section-Specific Requirements:**

{% if language == "zh" %}
1. **基本介绍** (4-5句话，最多150字)
   - 重点：身份、职业、地点及其他基本人口统计信息
   - 提供关于用户是谁的事实背景

2. **性格特点** (2-3句话，最多80字)
   - 重点：性格特征、行为习惯、沟通风格
   - 描述用户互动和行为中可观察到的模式

3. **核心价值观** (1-2句话，最多50字)
   - 重点：价值观、信念、目标和愿望
   - 捕捉对用户最重要的内容以及驱动其决策的因素

4. **一句话总结** (1句话，最多40字)
   - 提供对用户核心特质的高度浓缩描述
   - 类似于捕捉其本质的个人标语或座右铭
{% else %}
1. **Basic Introduction** (4-5 sentences, max 150 words)
   - Focus on: identity, occupation, location, and other basic demographic information
   - Provide factual background about who the user is

2. **Personality Traits** (2-3 sentences, max 80 words)
   - Focus on: personality characteristics, behavioral habits, communication style
   - Describe observable patterns in how the user interacts and behaves

3. **Core Values** (1-2 sentences, max 50 words)
   - Focus on: values, beliefs, goals, and aspirations
   - Capture what matters most to the user and what drives their decisions

4. **One-Sentence Summary** (1 sentence, max 40 words)
   - Provide a highly condensed characterization of the user's core traits
   - Similar to a personal tagline or motto that captures their essence
{% endif %}


===Output Format (MUST STRICTLY FOLLOW)===

{% if language == "zh" %}
【基本介绍】
[4-5句话描述用户的基本身份、职业和地点]

【性格特点】
[2-3句话描述用户的性格特征、行为习惯和沟通风格]

【核心价值观】
[1-2句话描述用户的价值观、信念和目标]

【一句话总结】
[1句话提供对用户核心特质的高度浓缩总结]
{% else %}
【Basic Introduction】
[4-5 sentences describing the user's basic identity, occupation, and location]

【Personality Traits】
[2-3 sentences describing the user's personality traits, behavioral habits, and communication style]

【Core Values】
[1-2 sentences describing the user's values, beliefs, and goals]

【One-Sentence Summary】
[1 sentence providing a highly condensed summary of the user's core characteristics]
{% endif %}


===Example===

{% if language == "zh" %}
Example Input:
- User Display Name: 张三
- Core Entities & Frequency: 产品经理 (15), AI (12), 深圳 (10), 数据分析 (8), 团队协作 (7)
- Representative Statement Samples: 我在深圳从事产品经理工作已经5年了 | 我相信好的产品源于对用户需求的深刻理解 | 我喜欢在团队中起到协调作用 | 数据驱动决策是我的工作原则

Example Output:
【基本介绍】
张三是一名充满热情的高级产品经理，在深圳工作。在过去的5年里，张三专注于AI和数据驱动的产品设计，致力于创造能够真正改善用户生活的产品。张三相信好的产品源于对用户需求的深刻理解和对技术可能性的不断探索。

【性格特点】
性格开朗，善于沟通，注重细节。喜欢在团队中起到协调作用，帮助大家达成共识。面对挑战时保持乐观，相信每个问题都有解决方案。

【核心价值观】
用户至上、数据驱动、持续学习、团队协作

【一句话总结】
"让每一个产品决策都充满温度。"
{% else %}
Example Input:
- User Display Name: John
- Core Entities & Frequency: Product Manager (15), AI (12), San Francisco (10), Data Analysis (8), Team Collaboration (7)
- Representative Statement Samples: I have been working as a product manager in San Francisco for 5 years | I believe good products come from deep understanding of user needs | I enjoy playing a coordinating role in teams | Data-driven decision making is my work principle

Example Output:
【Basic Introduction】
John is a passionate senior product manager based in San Francisco. Over the past 5 years, John has focused on AI and data-driven product design, dedicated to creating products that truly improve users' lives. John believes good products stem from deep understanding of user needs and continuous exploration of technological possibilities.

【Personality Traits】
Outgoing personality with excellent communication skills and attention to detail. Enjoys playing a coordinating role in teams, helping everyone reach consensus. Maintains optimism when facing challenges, believing every problem has a solution.

【Core Values】
User-first, data-driven, continuous learning, team collaboration

【One-Sentence Summary】
"Making every product decision with warmth and purpose."
{% endif %}

===End of Example===


===Internal Quality Checks (DO NOT OUTPUT)===

Before generating your final output, internally verify:
1. All content is grounded in provided data (no fabrication)
2. Format follows the specified structure with correct headers
3. Tone is objective, third-person, and neutral
4. All four sections are complete and within character/word limits

**IMPORTANT: These checks are for your internal use only. DO NOT include them in your output.**


===Output Requirements===

**CRITICAL: Your response must ONLY contain the four sections below. Do not include any reflection, self-review, or meta-commentary.**

**LANGUAGE REQUIREMENT:**
{% if language == "zh" %}
- 输出语言必须为简体中文
- 所有部分内容必须使用中文
- 部分标题必须使用指定的中文格式：【基本介绍】【性格特点】【核心价值观】【一句话总结】
{% else %}
- The output language must be English
- All section content must be in English
- Section headers must use the specified format: 【Basic Introduction】【Personality Traits】【Core Values】【One-Sentence Summary】
{% endif %}

**FORMAT REQUIREMENT:**
- Each section must start with its header on a new line
- Content follows immediately after the header
- Sections are separated by blank lines
{% if language == "zh" %}
- 严格遵守每个部分的字数限制
{% else %}
- Strictly adhere to word limits for each section
{% endif %}
- **DO NOT include any text after the final section**
- **DO NOT output reflection steps, self-review, or verification notes**
