Get the FREE Ultimate OpenClaw Setup Guide →
l

skill-ai-assistant

Scanned

@lyue82665-droid

npx machina-cli add skill @lyue82665-droid/skill-ai-assistant --openclaw
Files (1)
SKILL.md
1.9 KB

Conversation Summary - Agent Instructions

Use this skill to generate summaries for conversation content.

Usage

When the user requests any of the following:

  • "帮我总结一下这段对话"
  • "生成会话小结"
  • "对这些聊天记录做个摘要"
  • "总结一下我们刚才聊了什么"

Use the summarize_conversation tool to call the summary API.

Parameters

ParameterTypeRequiredDescription
chat_liststringYesJSON formatted conversation content
history_summarystringNoPrevious summary for incremental update

chat_list Format Example

[
  {"role": "user", "content": "今天天气怎么样?"},
  {"role": "assistant", "content": "今天天气晴朗,气温25度。"}
]

Response

The API returns JSON with:

  • code: Status code, 0 means success
  • message: Status message
  • data.summary: Generated conversation summary

Error Handling

  • If the API returns a non-zero code, report the error message to the user
  • If the request fails, check network connectivity
  • Ensure chat_list is valid JSON format before calling

Source

git clone https://clawhub.ai/lyue82665-droid/skill-ai-assistantView on GitHub

Overview

该技能通过 summarize_conversation 工具对对话内容进行要点提取,生成会话摘要。它支持在已有历史摘要的基础上进行增量更新,便于长对话的时效性存档与快速回顾。

How This Skill Works

用户触发摘要请求时,系统将 chat_list(JSON 字符串)以及可选的 history_summary 传给 summarize_conversation 工具。工具返回包含 code、message、data.summary 的 JSON;code 为 0 表示成功,data.summary 即为生成的会话要点。如遇非 0 码或请求失败,则需向用户展示错误信息。

When to Use It

  • 客服/支持对话结束后提取关键要点,便于回顾与转交给其他团队
  • 团队日常 standup 或客户会议记录的快速摘要分享给非技术成员
  • 对长篇对话进行增量更新摘要,以保持摘要与对话同步
  • 需要对对话进行归档并提炼行动项、下一步计划
  • 为培训、合规或知识库准备简明的对话摘要

Quick Start

  1. Step 1: 准备 chat_list 的 JSON 字符串,包含对话记录的 role 与 content
  2. Step 2: 调用 summarize_conversation 工具,传入 chat_list 和可选的 history_summary
  3. Step 3: 使用返回的 data.summary 进行展示、存档或分享

Best Practices

  • 确保 chat_list 以 JSON 字符串形式传入,格式应符合对话记录的 schema
  • 若有历史摘要,传入 history_summary 以实现增量更新
  • 在暴露给用户前清洗敏感信息,确保隐私合规
  • 检查 API 返回的 code 是否为 0,非 0 时展示 message 提示
  • 将 data.summary 保存到知识库或历史记录以便后续对比

Example Use Cases

  • 客服对话示例:从用户询问到解决方案的要点与后续跟进,形成简短摘要
  • 产品设计会议:提炼关键决策与待办事项,便于跨团队对齐
  • 销售咨询对话:摘取客户痛点、报价要点与后续行动
  • 技术支持会话:列出问题清单、原因分析与解决步骤
  • 团队 standup:把本日完成项、阻塞点和计划整理成简报

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers