Files
abot/plugins/message_summary/群总结AI (1).yml
liuwei 56aa532aa1 优化template分支提示词以贴合gemini-code模板
- 重写 Dify 工作流 template 分支 system prompt,按 gemini-code 模块骨架输出\n- 增加 Personal Interest Radar/Key Discussions/Shared Resources/Marketplace/Unresolved/Core Knowledge/Top Contributors 等区块约束\n- 强化长度与结构要求:固定5话题、每话题字段完整、短句高信息密度\n- 保留昵称原样与纯 Markdown 输出约束,避免影响模板渲染解析
2026-04-23 10:41:23 +08:00

566 lines
20 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
app:
description: 总结机器人
icon: 🤖
icon_background: '#FFEAD5'
mode: workflow
name: 群总结AI
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openai_api_compatible:0.0.27@f9ce3ff5e28f09931a3a7fca59add2d09590408f7e9a3d701b10c77a60249719
version: null
kind: app
version: 0.5.0
workflow:
conversation_variables: []
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
allowed_file_upload_methods:
- local_file
- remote_url
enabled: false
fileUploadConfig:
audio_file_size_limit: 50
batch_count_limit: 5
file_size_limit: 15
image_file_batch_limit: 10
image_file_size_limit: 10
single_chunk_attachment_limit: 10
video_file_size_limit: 100
workflow_file_upload_limit: 10
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 3
opening_statement: ''
retriever_resource:
enabled: true
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: if-else
id: 1775526517808-source-1779001000101-target
source: '1775526517808'
sourceHandle: source
target: '1779001000101'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: llm
id: 1779001000101-markdown-case-1775526520571-target
source: '1779001000101'
sourceHandle: markdown_case
target: '1775526520571'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: if-else
targetType: llm
id: 1779001000101-template-case-1779001000201-target
source: '1779001000101'
sourceHandle: template_case
target: '1779001000201'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: if-else
targetType: llm
id: 1779001000101-false-1775526520571-target
source: '1779001000101'
sourceHandle: 'false'
target: '1775526520571'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: end
id: 1775526520571-source-1775526572853-target
source: '1775526520571'
sourceHandle: source
target: '1775526572853'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: end
id: 1779001000201-source-1779001000301-target
source: '1779001000201'
sourceHandle: source
target: '1779001000301'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: llm
targetType: llm
id: 1779001000201-fail-branch-17766505156180-target
source: '1779001000201'
sourceHandle: fail-branch
target: '17766505156180'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: llm
targetType: llm
id: 1775526520571-fail-branch-17766505156180-target
source: '1775526520571'
sourceHandle: fail-branch
target: '17766505156180'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: llm
targetType: end
id: 17766505156180-source-1776650551808-target
source: '17766505156180'
sourceHandle: source
target: '1776650551808'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
selected: true
title: 用户输入
type: start
variables:
- default: markdown
hint: ''
label: summary_mode
max_length: 32
options: []
placeholder: markdown/template
required: false
type: text-input
variable: summary_mode
- default: ''
hint: ''
label: query
max_length: 9999999
options: []
placeholder: ''
required: true
type: paragraph
variable: query
height: 109
id: '1775526517808'
position:
x: 0
y: 22
positionAbsolute:
x: 0
y: 22
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
cases:
- case_id: markdown_case
conditions:
- comparison_operator: contains
id: markdown_case_cond
value: markdown
varType: string
variable_selector:
- '1775526517808'
- summary_mode
id: markdown_case
logical_operator: and
- case_id: template_case
conditions:
- comparison_operator: contains
id: template_case_cond
value: template
varType: string
variable_selector:
- '1775526517808'
- summary_mode
id: template_case
logical_operator: and
selected: false
title: 渲染模式分支
type: if-else
height: 172
id: '1779001000101'
position:
x: 308
y: 15
positionAbsolute:
x: 308
y: 15
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
context:
enabled: false
variable_selector: []
error_strategy: fail-branch
model:
completion_params:
temperature: 0.7
mode: chat
name: grok-4
provider: langgenius/openai_api_compatible/openai_api_compatible
prompt_template:
- id: 99711a1c-46bd-4a45-8551-1fa21ff2e884
role: system
text: "你是一名「微信群高效总结官」。 \n目标快速整理群内的有效信息剥离无效沟通提炼重点观点与交易信息。 重要最少总结5个话题\n\
要求:生成 **双层结构总结**——先速览重点,再补充详情。 请不要翻译用户昵称。请按照以下模板使用标准markdown格式输出。\n---\n\
\n# \U0001F31F「[群名] - [最新日期] 总结」\U0001F31F\n\n---\n\n## ⚡ 一分钟速览\n\n本部分仅列核心信息帮助用户快速掌握重点\n\
\n* \U0001F4E9 **今日消息数**[总数] 条\n* \U0001F525 **最热时段**[时段]\n\n### \U0001F3C6\
\ 核心话题与结论\n\n1. **[话题1简述]**[核心结论]\n2. **[话题2简述]**[核心结论]\n3. **[话题3简述]**[核心结论]\n\
4. **[话题4简述]**[核心结论]\n5. **[话题5简述]**[核心结论]\n\n### \U0001F4B0 交易/资源快报\n\
\n* [@用户A] 出售 **[商品]**,价格 **[金额]**\n* [@用户B] 推荐 **[工具/资源链接]**\n\n### \U0001F4CC\
\ 今日总结\n\n大家在 **[主题]** 上形成 **[共识/存在分歧]** —— 建议后续关注 **[方向]**。\n\n---\n\n\
## \U0001F30C 话题详情\n\n### 1⃣ 【[话题1][话题主题]】\n\n* **时段**[开始时间] - [结束时间]\n\
* **参与人数**\U0001F465 [具体人数] 人参与\n\n#### \U0001F50D 核心观点回顾\n\n* **[@用户A]**:认为\
\ **[观点1]** (理由:**[简要原因]**)\n* **[@用户B]**:支持/反驳,提出 **[观点2]**\n* **[@用户C]**:补充\
\ **[观点3]**,并举了 **[实例/经验]**\n\n#### \U0001F9E9 客观分析\n\n* **共识点**:大多数人认同\
\ **[共识]**\n* **分歧点**:争论焦点在 **[矛盾点]**\n* **价值**:该讨论对 **[领域/问题]** 提供了参考\n\
\n#### \U0001F525 亮点瞬间\n\n> **[@用户D] 金句:** “**[精选金句]**”\n\n---\n\n###\
\ 2⃣ 【[话题2][话题主题]】\n\n* **时段**[开始时间] - [结束时间]\n* **参与人数**\U0001F465\
\ [具体人数] 人参与\n\n#### \U0001F50D 核心观点回顾\n\n* **[@用户X]**...\n* **[@用户Y]**...\n\
\n#### \U0001F9E9 客观分析\n\n* **共识点**...\n* **分歧点**...\n\n#### \U0001F525\
\ 亮点瞬间\n\n> **[@用户Z] 金句:** “**[精选金句]**”\n\n---\n\n## \U0001F4B0 交易与资源区\n\
\n集中收录卖货和资源分享方便用户直接定位\n\n* **[@用户X] 卖货****[商品名称 + 价格]**\n* **[@用户Y]\
\ 分享**[工具/文章/资源链接](推荐理由:[简要理由]\n* **[@用户Z] 提供****[优惠/活动信息]** (截止日期:[日期])\n\
\n---\n\n## \U0001F396 今日荣誉榜\n\n### \U0001F3C6 群聊 MVP[@用户N]\n\n* **理由**\n\
\ * 发起 [数量] 个话题\n * 提供 [数量] 个实用信息(资源/交易)\n * 最佳金句:“**[语录]**”\n\
\n---\n\n✨ *本总结由 AI 自动生成,帮助你 1 分钟快速补齐群聊重点!*\n"
- id: 79bea224-b4af-4eb2-83ff-64db7356f9ff
role: user
text: '{{#1775526517808.query#}}'
retry_config:
max_retries: 3
retry_enabled: true
retry_interval: 1000
selected: false
title: LLM
type: llm
vision:
enabled: false
height: 154
id: '1775526520571'
position:
x: 342
y: 0
positionAbsolute:
x: 342
y: 0
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
context:
enabled: false
variable_selector: []
error_strategy: fail-branch
model:
completion_params:
temperature: 0.6
mode: chat
name: grok-4
provider: langgenius/openai_api_compatible/openai_api_compatible
prompt_template:
- id: template_system_prompt
role: system
text: |
你是一名「微信群总结结构化编辑官」,你的输出将用于 Gemini 风格总结卡片渲染。
目标:
1. 让内容结构尽量贴合 gemini-code 模板模块;
2. 信息密度高,但保持短句、可扫描;
3. 不做空泛抒情,不要写冗长大段落。
必须遵守:
1. 必须覆盖至少 5 个话题(缺少时也要从聊天里归并凑足 5 个主题);
2. 不要翻译用户昵称,不要改写 @昵称;
3. 输出必须是纯 Markdown不要 JSON不要 ``` 代码块;
4. 每个话题都要包含:
- 时段
- 参与人数
- 核心观点回顾2-3条
- 客观分析1-2条
- 亮点瞬间1条
5. 每条 bullet 尽量不超过 40 字;
6. 结论用“可执行建议”表达,不要空话。
输出格式请严格按以下骨架:
# 🌟「[群名] - [最新日期] 总结」🌟
## ⚡ 一分钟速览
- 今日消息数:[总数]
- 最热时段:[时段]
### 🏆 核心话题与结论
1. [话题1简述][一句结论]
2. [话题2简述][一句结论]
3. [话题3简述][一句结论]
4. [话题4简述][一句结论]
5. [话题5简述][一句结论]
### 💰 交易/资源快报
- [@用户A] [卖货/资源]
- [@用户B] [卖货/资源]
### 📌 今日总结
[1-2句结论 + 后续建议]
## 🌌 话题详情
### 1⃣ 【[话题1]】
- **时段**[开始]-[结束]
- **参与人数**[人数]
#### 🔍 核心观点回顾
- [观点1]
- [观点2]
#### 🧩 客观分析
- [共识/分歧/价值]
#### 🔥 亮点瞬间
> [金句或高光总结]
继续话题2~5保持同结构
## 🔗 Shared Resources
- [仓库/文档/工具链接 + 一句说明]
- [仓库/文档/工具链接 + 一句说明]
## 🛒 Marketplace
- [出/求] [标的][价格或状态]
- [出/求] [标的][价格或状态]
## ❓ Unresolved Pool
- [待解问题1]
- [待解问题2]
## 🧠 Core Knowledge Points
- [关键配置/经验1]
- [关键配置/经验2]
## 🎖️ 今日荣誉榜
### 🏆 群聊 MVP[@用户N]
- 理由1
- 理由2
## 👥 Top Contributors
- [昵称A]
- [昵称B]
- [昵称C]
- id: template_user_prompt
role: user
text: '{{#1775526517808.query#}}'
retry_config:
max_retries: 3
retry_enabled: true
retry_interval: 1000
selected: false
title: LLM Template
type: llm
vision:
enabled: false
height: 170
id: '1779001000201'
position:
x: 670
y: -170
positionAbsolute:
x: 670
y: -170
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
outputs:
- value_selector:
- '1775526520571'
- text
value_type: string
variable: text
selected: false
title: 输出
type: end
height: 88
id: '1775526572853'
position:
x: 704
y: 7
positionAbsolute:
x: 704
y: 7
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
outputs:
- value_selector:
- '1779001000201'
- text
value_type: string
variable: text
selected: false
title: 输出 Template
type: end
height: 88
id: '1779001000301'
position:
x: 1030
y: -155
positionAbsolute:
x: 1030
y: -155
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
context:
enabled: false
variable_selector: []
model:
completion_params:
temperature: 0.7
mode: chat
name: gpt-5.4
provider: langgenius/openai_api_compatible/openai_api_compatible
prompt_template:
- id: 99711a1c-46bd-4a45-8551-1fa21ff2e884
role: system
text: "你是一名「微信群高效总结官」。 \n目标快速整理群内的有效信息剥离无效沟通提炼重点观点与交易信息。 重要最少总结5个话题\n\
要求:生成 **双层结构总结**——先速览重点,再补充详情。 请不要翻译用户昵称。请按照以下模板使用标准markdown格式输出。\n---\n\
\n# \U0001F31F「[群名] - [最新日期] 总结」\U0001F31F\n\n---\n\n## ⚡ 一分钟速览\n\n本部分仅列核心信息帮助用户快速掌握重点\n\
\n* \U0001F4E9 **今日消息数**[总数] 条\n* \U0001F525 **最热时段**[时段]\n\n### \U0001F3C6\
\ 核心话题与结论\n\n1. **[话题1简述]**[核心结论]\n2. **[话题2简述]**[核心结论]\n3. **[话题3简述]**[核心结论]\n\
4. **[话题4简述]**[核心结论]\n5. **[话题5简述]**[核心结论]\n\n### \U0001F4B0 交易/资源快报\n\
\n* [@用户A] 出售 **[商品]**,价格 **[金额]**\n* [@用户B] 推荐 **[工具/资源链接]**\n\n### \U0001F4CC\
\ 今日总结\n\n大家在 **[主题]** 上形成 **[共识/存在分歧]** —— 建议后续关注 **[方向]**。\n\n---\n\n\
## \U0001F30C 话题详情\n\n### 1⃣ 【[话题1][话题主题]】\n\n* **时段**[开始时间] - [结束时间]\n\
* **参与人数**\U0001F465 [具体人数] 人参与\n\n#### \U0001F50D 核心观点回顾\n\n* **[@用户A]**:认为\
\ **[观点1]** (理由:**[简要原因]**)\n* **[@用户B]**:支持/反驳,提出 **[观点2]**\n* **[@用户C]**:补充\
\ **[观点3]**,并举了 **[实例/经验]**\n\n#### \U0001F9E9 客观分析\n\n* **共识点**:大多数人认同\
\ **[共识]**\n* **分歧点**:争论焦点在 **[矛盾点]**\n* **价值**:该讨论对 **[领域/问题]** 提供了参考\n\
\n#### \U0001F525 亮点瞬间\n\n> **[@用户D] 金句:** “**[精选金句]**”\n\n---\n\n###\
\ 2⃣ 【[话题2][话题主题]】\n\n* **时段**[开始时间] - [结束时间]\n* **参与人数**\U0001F465\
\ [具体人数] 人参与\n\n#### \U0001F50D 核心观点回顾\n\n* **[@用户X]**...\n* **[@用户Y]**...\n\
\n#### \U0001F9E9 客观分析\n\n* **共识点**...\n* **分歧点**...\n\n#### \U0001F525\
\ 亮点瞬间\n\n> **[@用户Z] 金句:** “**[精选金句]**”\n\n---\n\n## \U0001F4B0 交易与资源区\n\
\n集中收录卖货和资源分享方便用户直接定位\n\n* **[@用户X] 卖货****[商品名称 + 价格]**\n* **[@用户Y]\
\ 分享**[工具/文章/资源链接](推荐理由:[简要理由]\n* **[@用户Z] 提供****[优惠/活动信息]** (截止日期:[日期])\n\
\n---\n\n## \U0001F396 今日荣誉榜\n\n### \U0001F3C6 群聊 MVP[@用户N]\n\n* **理由**\n\
\ * 发起 [数量] 个话题\n * 提供 [数量] 个实用信息(资源/交易)\n * 最佳金句:“**[语录]**”\n\
\n---\n\n✨ *本总结由 AI 自动生成,帮助你 1 分钟快速补齐群聊重点!*\n"
- id: 79bea224-b4af-4eb2-83ff-64db7356f9ff
role: user
text: '{{#1775526517808.query#}}'
retry_config:
max_retries: 2
retry_enabled: true
retry_interval: 1000
selected: false
title: LLM (1)
type: llm
vision:
enabled: false
height: 118
id: '17766505156180'
position:
x: 704
y: 175
positionAbsolute:
x: 704
y: 175
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
- data:
outputs:
- value_selector:
- '17766505156180'
- text
value_type: string
variable: text
selected: false
title: 输出 2
type: end
height: 88
id: '1776650551808'
position:
x: 1046
y: 190
positionAbsolute:
x: 1046
y: 190
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 242
viewport:
x: 127.66537686601441
y: 381.7866425896775
zoom: 0.923655537541026
rag_pipeline_variables: []